Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?
Valid alternative for marginwidth="0" marginheight="0" leftmargin="0"
Collapse
X
-
Don't forget bottommargin="0".Originally posted by punkworld
Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Comment
-
You really need to use CSS for the presentation part with XHTML. Dreamweaver MX can generate XHTML 1.0 tran pretty easily and that is not too hard to get validated. Getting the associated CSS file to validate is some real work.Originally posted by punkworld
Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?
Using XHTML is a smart move since everything is eventually moving in the XML direction and XHTML is a good way to transition.
Comment
-
Getting CSS to validate isn't really that much of a problem, if you write it yourself. The only problem is scrollbar manipulation, since that officially doesn't existOriginally posted by ronbotx
You really need to use CSS for the presentation part with XHTML. Dreamweaver MX can generate XHTML 1.0 tran pretty easily and that is not too hard to get validated. Getting the associated CSS file to validate is some real work.
Using XHTML is a smart move since everything is eventually moving in the XML direction and XHTML is a good way to transition.
/(bb|[^b]{2})/Comment
-
What I do is define a custom class, that way I can apply it different elements on a page using the "class =" attribute.Originally posted by punkworld
I'm already using CSS, ofcourse. Just didn't know the:
body { margin: 0; }
Doh!
This book
"Cascading Style Sheets (CSS) by Example by Steve Calihan"
help make this complicated subject a lot clearer for me. CSS is the way to to go. Have fun!Last edited by ronbotx; 09-21-2003, 07:51 AM.Comment
-
Yes, everyone does that.Originally posted by ronbotx
What I do is define a custom class, that way I can apply it different elements on a page using the "class ="
This book
"Cascading Style Sheets (CSS) by Example by Steve Calihan"
help make this complicated subject a lot clearer for me. CSS is the way to to go. Have fun!/(bb|[^b]{2})/Comment



Comment