Re: Centring a table on a page with CSS
by "Raj Bhaskar" <raj(at)lordofthemoon.com>
|
| Date: |
Tue, 12 Mar 2002 14:56:55 -0000 |
| To: |
"Bert" <bert(at)betterwebdesign.com.au> |
| Cc: |
hwg-basics(at)hwg.org |
| In-Reply-To: |
|
| |
todo: View
Thread,
Original
|
|
> <.table align="center">
> ... usual table stuff here ...
> <./table>
Yes, that's what I went with eventually. It still didn't make any difference until I removed the table
align="top" that was already in the table tag (it's not my code -- I'm just rewriting it a bit to make
better use of CSS. Honest :o) ).
> Or is the table inside another table or div, with a left aligned cell
> perhaps?
Yes, it was an (unnecessary) align="top" attribute. D'oh!
> > Also, I don't want to put in an explicit width here,
>
> That is strange. A table will only stretch to 100% if you TELL it to,
> or if its contents are so large that it's needed.
I had a bit of a break over lunch and then came back to it. The problem here was the text in one
cell of the table. I restricted the size of this cell and it looks fine now.
If you still want to have a look at it, you can see it at http://citscapes.ac.uk/citscapes/new/ (note:
only the front page has been changed to the new style).
Note: the menu doesn't work properly at all in NN4.7 (I've tested it in IE5.5, Mozilla 0.9.8 and
Opera 6). Does anybody know of any way that I can specifiy the main image inline and have the
menu float on top of it (using standards-compliant HTML/CSS)
Raj.
--
Rajnish Bhaskar
r.bhaskar(at)compserv.gla.ac.uk, http://lordofthemoon.com
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
What you have here is an example of that well known phenomenon, A Bookshop
Assistance Who Knows Buggerall But Won't Admit It
(probably some kind of arts graduate).
-- (Terry Pratchett, alt.fan.pratchett)
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.