[Ajuda] Dreamweaver

alexandrepereir

Power Member
Pessoal estou com um pequeno problema, não sou pro nenhum nisto, mas quando tento posicionar o texto (body) onde quero, altera tudo, o header, body e footer.

Outra questão, reparei que o dreamweaver coloca o css utilizado na mesma pagina do website, não pode ser colocado noutro ficheiro á parte? Espero ter sido claro
 
Pessoal tive a ver as divs e continua a dar erro, aqui esta o código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
font: 100% Agency FB, Arial, Helvetica, sans-serif;
background: #ffffff url('../Os meus documentos/portfolio2/Templates/Ambiente de trabalho/Arts2/some_Grunge_by_Solea_ru copy.png') repeat-x;
margin: 0px; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
background-image: url(../Os%20meus%20documentos/portfolio2/some_Grunge_by_Solea_ru%20copy.png);
margin-bottom: 250px;
}

/* Tips for Elastic layouts
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.oneColElsCtrHdr #container {
width: 46em; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColElsCtrHdr #header {
padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.oneColElsCtrHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColElsCtrHdr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */}
padding-top: 150px;
}
.oneColElsCtrHdr #footer {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
}
.oneColElsCtrHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
-->
</style></head>

<body class="oneColElsCtrHdr">

<div id="container">
<div id="header">
<h1><img src="../Os meus documentos/portfolio2/header.png" width="600" height="176" />
<!-- end #header -->
</h1>
</div>
<div id="mainContent">
<h2> Bem vindo </h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.</p>
<!-- end #mainContent --></div>
<div id="footer">
<p>Footer</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
 
oi no caso do texto, creio que pode estar relaccionado com a formatação do teu layout, se tiveres retirado da net tens que fazer atençao a estrutura que pretendes que o teu site tenha.
 
[
Outra questão, reparei que o dreamweaver coloca o css utilizado na mesma pagina do website, não pode ser colocado noutro ficheiro á parte? Espero ter sido claro[/quote]

Para colocares o código que o Dreamweaver colocou na zona <head> do teu ficheiro, basta criares uma nova folha de estilos e guardas onde quiseres. Depois seleccionas clicas o código que pretendes ( estilos criados pelo dreamweaver) e clicas com o botão direito do rato em cima dessa selecção. Vai aparecer um serie de opções, escolhes Css Styles / Move Css Rules e depois fazes Browse e escolhes essa nova folha de estilos que criaste ou outra para onde queiras enviar essa formatação. Deste modo já fica "linKada" a folha de estilo, pois é criada automaticamente no <head> o link.

Espero ter podido ajudar.
cumps
 
Back
Topo