2 replies [Last post]
Jackount
Jackount's picture
Offline
newbie
Denmark
Last seen: 1 year 23 weeks ago
Denmark
Timezone: GMT+2
Joined: 2011-11-07
Posts: 7
Points: 13

I have this website, http://usefulurl.com, where I have a table with one row and three cells, containing respectively an ad, the content of the page, and on more ad. Check it out.
THe problem is, that the position of the ads change from each site. Try using the links in the header to see it for yourself.

I made it with a table - ain't there some better way to do it, where it would work?
Thanks in advance.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 1 week 2 days ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Yes there is a better way,

Yes there is a better way, use semantic markup and CSS, lose the table and recode the site using div elements to create the main structure and regions of the site or 'section' if you want to go the html5 route.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Jackount
Jackount's picture
Offline
newbie
Denmark
Last seen: 1 year 23 weeks ago
Denmark
Timezone: GMT+2
Joined: 2011-11-07
Posts: 7
Points: 13

...

I've tried the div alternative for some other projekt, but it didn't really work out. I just couldn't get them placed.
In this site, I have a div tag surrounding the whole site with a width of 1000px, with three cells with a respectively width of 200,600 and 200 px... Only the center cell has a relative height.