|
|||||||
| HTML Discussion and technical support for building, using and deploying HTML sites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
centering content of the website
I have started to build a site and need a little help centering the content. I tried using a <div> with style="margin-left:auto; margin-right:auto" with no luck in IE and firefox. I find it odd because when I style the <div> with a pixel amount it will move the content over by that amount specified. Ex: margin-left:50px. Just need help moving the content from the left to the center. I have included the files any help would be greatly appreciated. Thank you
|
|
#2
|
||||
|
||||
|
To apply the margins auto values your div must have a certain width. Has it?
Last edited by Kor; 11-09-2009 at 03:57 AM. |
|
#3
|
|||
|
|||
|
ur right
WOW im dumb, thank you I definitely forgot to add the width attribute. It worked when I set it. Thank you again
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|