Catherine Lynn Smith wrote:
Quote:
I notice as I delve deeper into CSS that many property definitions are
redundant between the HTML tags and the CSS properties. I was
wondering if there was a recommended preference as to which to use.
(things such as widths/heights, background colors and images, etc.) |
Ideally, CSS can completely replace layout-HTML3.2, and if possible in
your target-browser, that's always the better way. (If you know why you
are using CSS, then you should also know why this is better.)
Some things cannot be implemented in CSS for certain browsers, and
HTML-workarounds might be your choice (depending how much you/ your
customer cares about certain layout details -- like, getting rid of a
border around a linked image in Netscape 4 via CSS can be tough, and
you might want to have a more relaxed doctype to support a hack --
personally I don't care about Netscape 4 and don't use workarounds on
private pages, but many clients will care).
Quote:
I can see where either or would have benefits depending on how you
wanted to manipulate it |
So where do you see benefits in HTML tags that could be implemented as
CSS? Mostly, they will make the site slower to manage.
By the way, if you are just using inline-styles like <p
style="...">...</p> indeed you might as well stick to "HTML tags" for
layout-definiton.
--
Google Blogoscoped
http://blog.outer-court.com