View Full Version : how do i...
RareWolf
13-11-2006, 07:53 PM
i know how to code a layout but how do i get the layout to touch the top and bottem of the page so theres no gaps.
+rep to helpers
omgDAN!
13-11-2006, 07:59 PM
<style>
body {margin-top:0;}
</style>
in the head.
that puts it at the top
RareWolf
13-11-2006, 08:01 PM
can you change it to like left and stuff to so it sticks to the left?
+rep
omgDAN!
13-11-2006, 08:58 PM
<style>
body {margin-top:0;margin-left:0;margin-right:0;margin-bottom:0;}
</style>
RareWolf
13-11-2006, 09:00 PM
THXSS
wud rep u agan but cnt
Panther
13-11-2006, 09:01 PM
HTML GEEK +rep i dident know that eaither lol i do now
omgDAN!
13-11-2006, 09:23 PM
it's not HTML it's CSS
LOL
Panther
13-11-2006, 10:43 PM
Lol ermm I knew that.
Heinous
14-11-2006, 12:29 AM
And it's 0px not 0.
Yes most browsers assume it's px, but not all.
omgDAN!
15-11-2006, 07:41 AM
And it's 0px not 0.
Yes most browsers assume it's px, but not all.
No your wrong, for it to be valid css you don't.
http://jigsaw.w3.org/css-validator/
Heinous
15-11-2006, 11:52 AM
No your wrong, for it to be valid css you don't.
http://jigsaw.w3.org/css-validator/
And it's 0px not 0.
Yes most browsers assume it's px, but not all.
Re-read what I said, now why did I say it?
YouFail
15-11-2006, 04:12 PM
If you want it for left and right you can do it in one tag.
body {
margin: 0 0 0 0px;
}
It works.
omgDAN!
15-11-2006, 05:03 PM
Re-read what I said, now why did I say it?
Because your not a coder who codes valid.
And all valid coding is cross-browser.
Heinous
16-11-2006, 04:49 AM
Because your not a coder who codes valid.
And all valid coding is cross-browser.
Oh, right, I don't code validly.. I forgot. I mean, ask ANYONE who I've coded for, and at time of giving them the files, it was 100% valid CSS and XHTML 1.1, no warnings or errors.
And no, not all valid code is cross-browser. Get your facts right.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.