Forum Moderators: not2easy

Message Too Old, No Replies

Using a div within a table

         

tonyrolfe

2:32 pm on Feb 7, 2010 (gmt 0)

10+ Year Member



Hi there,

I am currently helping a friend design a very quick website. I only do this as a hobby and taught myself a long time ago using tables (yes I know this is bad!)

Anyway to cut a long story short, he has given me a CSS slider that he wants to use as a div. I have placed this into the table but once inside it moves everything over to the left of the page.

What I would like it to keep the table centred in the middle of the page.

Below is a link to help you understand what I mean (the yellow is just to show the table siz and position)

<snip>

Thanks

Tony

[edited by: limbo at 8:18 pm (utc) on Feb 7, 2010]

limbo

8:21 pm on Feb 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Tony

Welcome to WebmasterWorld :)

If you DIV has a width try margin:0 auto; on the container.

tonyrolfe

9:38 pm on Feb 7, 2010 (gmt 0)

10+ Year Member



Hi Limbo,

Thanks for the welcome :)

I really have no idea when it comes to divs - the main outer div is called #slider-outer. I have tried adding as you suggested, but nothing - everything still left aligns?

Any more ideas?

Cheers

Tony