dukxud Posted May 29, 2008 Share Posted May 29, 2008 I've recently been trying to build a sit from scratch and to be honest noob is giving me way to much credit.But i have read threw the W3 files and tried using google but it seems to keep routing me back here aswell but my question is in refrence to the tag <div> i've seen it used in many diffrent ways and the w3 doesn't go to indepth with it but here's what i got so far and try not to laugh i just started learning this stuff the other day <html><head><style type="text/css">body {background-color: grey}p,pre {font-family: times}p.leftlinks {align: right}div. container{width:100% margin:0px;border:0px solid sliver;line-height:100%;}div.header,div.footer{padding:0.5em;color:white;background-color:green;clear:left;}div.content{margin-left:190px; border-left:1px solid green;padding:1em;}</style></head><body><div class="container">` <div class="header"><p class="leftlinks"><b>|<a href="Webpage.html">Eco-Tips</a>|<a href="http://www.microsoft.com/">Buy</a>| <a Href="http://www.microsoft.com/">Catalog</a>|<a Href="http://www.microsoft.com/">Customer Service</a>|</p></b></div><p> he he he </p><div class="footer"> copyright bla bla </div></div></body></html>and what i'm wanting to figure out is how to resize the the top header i guess its called so it doesn't have a border..and also how do i get my links to stay at the far right do i need to make tables???? Link to comment Share on other sites More sharing options...
shadowayex Posted May 29, 2008 Share Posted May 29, 2008 div.header{height: whatever; width: whatever} And your align: right needs to be text-align: right Link to comment Share on other sites More sharing options...
rangana Posted May 29, 2008 Share Posted May 29, 2008 Also, DTD is important to keep IE away from quirksmode.Now, in your links, you can used unordered list.You should strive not to use tables, as it was'nt intended for layouts :)Hope that helps Link to comment Share on other sites More sharing options...
dukxud Posted May 29, 2008 Author Share Posted May 29, 2008 Also, DTD is important to keep IE away from quirksmode.Now, in your links, you can used unordered list.You should strive not to use tables, as it was'nt intended for layouts :)Hope that helps ya i'll give it a try thanks a lot man!!! Link to comment Share on other sites More sharing options...
dukxud Posted May 29, 2008 Author Share Posted May 29, 2008 one more quick question does anyone know how to align="center" and <div container? Link to comment Share on other sites More sharing options...
Synook Posted May 29, 2008 Share Posted May 29, 2008 You mean in CSS? <div style="margin:0px autp; width:500px; "> Blah</div> Link to comment Share on other sites More sharing options...
jlhaslip Posted June 1, 2008 Share Posted June 1, 2008 fix a typo in Synook's code <div style="margin:0px auto; width:500px; "> Blah</div> "auto" has no 'p' in it. Link to comment Share on other sites More sharing options...
Synook Posted June 1, 2008 Share Posted June 1, 2008 Oops Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.