[thelist] re:css - margin-right property

rudy limeback r937 at interlog.com
Thu Aug 24 00:35:44 CDT 2000


> does a CSS linked style sheet not overide any html?

hi lisa

um, i think the answer is "maybe" -- it depends on the individual
circumstances, the particular tags in question

sorry that's not all that helpful

in the case of body margins in the style sheet overriding the ie/nn
specific attributes in the body tag, i just plain don't know, and it's way
too late (it's like 1:30 a.m. here) for me to start testing

perhaps http://richinstyle.com can help...

anyhow, i'm hardly ever in a position to need to set the body margin to
zero, to get something out to the very edge of the window, so i guess i
would probably try it with css first, check it in ie4 and netscape 4.04 (a
notoriously bad browser for css) and go with the body tag attributes if it
didn't work in both of these browsers flawlessly the first time

i do use a style sheet to bring the margins *in* when there are large
blocks of text (long lines of text are hard to read) --

   body{margin-left:20%;margin-right:20%}

this is sort of like putting your text into a centered table with width=60%

by the way, did you figure out which one of the 5 body tag attributes you
had that was extraneous?  no harm done, by the way, because all browsers
will ignore tag attributes that they don't recognize

f'rinstance, when the day drags on and i get cranky, i sometimes write
stuff like

   <table cellpadding="0" cellspacing="0"
         penguin="i dunno, what's he look like?"
            bgcolor=FFFFFF border="0">

in the firm knowledge that it can't hurt the page and only another code
jockey will ever see it

;o)


rudy limeback
r937.com
evolt.org


















More information about the thelist mailing list