0

Hi all,

I'm trying to align a table centrally within a div and/or fieldset. I've tried various things but I've not had any luck so far.

I've been trying

#mydiv table {
    marging-left:auto;
    margin-right:auto;
}

but it hasn't shown any effect, thought this is the suggested method according to the websites I've browsed.

Thanks in advance for any help offered.

3
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by Tinnin
1

You need to assign a width as well.

 {width:##px:margin:0 auto;}

As an example.

0

I only spelt it wrong here. It was just an example :). But I've done stuff like that before :D.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.