This is a discussion on "a simple question (I think)" within the Web Page Design section. This forum, and the thread "a simple question (I think) are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
a simple question (I think)
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
hallo
I'm new here. I've been coding HTML for a long time, but never used forums much before. So I have a question which is very basic, but I've never found an answer yet. Within my HTML 4 Transitional page, there is one main table. I want this table to appear in the middle of the page, however wide it is. The following don't work: a) <body align="center"> b) <body> <table class="maintable"> and in the CSS: .maintable {text-align: center;} The only way I can get it to work is to say: <table align="center"> Surely there's a way I can do this in CSS, so that it will be centered in any browser? TIA :-) |
|
|
|
#2
|
|||
|
|||
|
Re: a simple question (I think)
Try this with inline css.
|
|
#3
|
|||
|
|||
|
Re: a simple question (I think)
Thank you very much, Ward, that works a treat :-)
|
![]() |
| Tags |
| simple, question, think |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hopefully a simple question | newoptical | Hosting & Domains | 9 | Sep 21st, 2007 22:02 |
| simple question | Daniel | Web Page Design | 29 | Feb 6th, 2007 17:23 |
| Simple CSS Question | welshie | Web Page Design | 9 | Jan 31st, 2007 12:22 |
| A simple Question... | Lizard- | Classic ASP | 11 | Aug 11th, 2004 08:45 |