Tables centered by CSS
by Robert Donatelle <bdonatelle(at)yahoo.com>
|
Date: |
Tue, 24 Apr 2001 14:45:09 -0700 (PDT) |
To: |
hwg-basics(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Am in my second semester of HTML using BBEdit from a
strict code purist and everything must validate as
well as the stylesheets. Stayed up nights trying to
get tables to center through a stylesheet only to find
that the only way to do this is to use DIV tags on the
document and in the stylesheet use: DIV {text-align:
center;} and then enter your table tag with summary
and whatever. The problem was that strict 4.01 won't
allow an "align" in the stylesheet and the only
non-deprecated CSS property to center is "text-align"
and it works.
Am also taking my first semester in Dreamweaver and
once I learned the above, things went much better. In
Dreamweaver, however, it's necessary to enter a fixed
width for the table for some reason before the above
works.
The unsolved problem I have is how to get those blue
borders from appearing in Netscape without having to
use border="0" in the image tag. Does anyone know of a
CSS workaround that satisfies both NN4.75 and IE5.0
(not interested in how things look in NN6.0, sorry)??????
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA