Web Analytics Made Easy -
StatCounter Work around for margin x - CodingForum

Announcement

Collapse
No announcement yet.

Work around for margin x

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Work around for margin x

    I'm trying to make my page html 4.01 valid over at w3c. I knew that margin width, height etc wasn't valid from a long time ago. I remember reading on here. I know there is a work around using css but if I remember correctly ns 4.x won't render it properly.

    Is there a way of getting the same results of margin x without using margins?
    whittys.com
    Nomsane?
    That is all

  • #2
    I saw this definition once at newsgroups :
    Code:
    <style type="text/css">
    	body	{
    		margin:0px;
    		padding:0px;
    		position:absolute;
    		left:0px;
    		top:0px;
    		}
    </style>
    but I think there were some problems with absolutely positioned body fragment. Try that, though.
    Last edited by Zvona; Jul 4, 2002, 04:31 AM.
    Zvona
    First Aid for
    Web Design

    Comment


    • #3
      css margins are problematic - if you query the offsetLeft or offsetTop of an object, the margin is not accounted for.
      "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

      Comment

      Working...
      X