This is a discussion on "using tables in a css document" within the Web Page Design section. This forum, and the thread "using tables in a css document are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
using tables in a css document
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
using tables in a css document
Good day,
I`ve got two pages on my site (Questions Answered, and the french translation Questions, Réponses- same prob) that don`t validate because I`m not using proper coding for tables. I`m using h4 to keep them inline, but I know that`s not right. Can someone explain the correct way to code the tables so they`ll stay inline, and validate? http://pyxnet.ath.cx/robin |
|
|
|
|||
|
Re: using tables in a css document
Ok, before I added the <h4></h4>, the tables would appear completely out of place, on the right above the sidebar. When I added the h tags, the tables appeared where they were supposed to be- in the main content. I`m sure this is not the way this is supposed to be done.
Also, the pages don`t validate because of something wrong with the tables` coding- I assumed it to be the h tags being used incorrectly. I`ll go try removing the h tags again, just to check... Thanks herkalees |
|
|||
|
Re: using tables in a css document
Ok, same result- the tables go completely haywire.
Btw, what is wrong with this? <h4><table width="60%" border="0"> Apparently what does not validate is in that line.(xhtml) |
|
|||
|
Re: using tables in a css document
A table in a heading probably gives the "block element in inline element" error I'd imagine, can you post what the validator says?
Could try something like : table { float: left } in your CSS. I'd have to try it to make sure it works. |
|
||||
|
Re: using tables in a css document
Quote:
|
|
|||
|
Re: using tables in a css document
Thanks herkalees and drd,
Here are the validator`s results:
|
|
||||
|
Re: using tables in a css document
Quote:
|
|
|||
|
Re: using tables in a css document
yeah its bad practice. You need to find another way of positioning your table. Its hard to say from here, but if you set the margins and width in the css the table should reside within your content div without problems.
If you still have trouble then can you show us what happens? |
|
|||
|
Re: using tables in a css document
The float left suggestion worked- my pages all validate now, in fact my whole site now validates. Woohoo!
Thanks drd and herkalees Now I just need to make a decent banner. And then take a looksee at it in ie- I`m frightened! |
|
|||
|
Re: using tables in a css document
glad to hear it worked, and good luck with IE!
|
![]() |
| Tags |
| using, tables, css, document |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help using document.getElementById | jonnymorris | JavaScript Forum | 3 | Mar 28th, 2008 22:52 |
| document.getElementById and document.getElementByName is not working in FF | dhineraj | JavaScript Forum | 3 | Jul 26th, 2007 20:23 |
| Help with Downloadable document | fallregatta | Starting Out | 2 | Jun 11th, 2007 12:46 |
| can i add word document? | monstermunch | Starting Out | 8 | Apr 20th, 2007 16:49 |
| Document Information | ClaireB | Classic ASP | 0 | Oct 24th, 2006 17:46 |