| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| First Time Poster! Join Date: Mar 2005 Location: Idaho
Posts: 1
![]() | Please help with CSS problem Hi. First, thanks to everyone who is reading this post and to anyone who can (will) help! I have decided to make my web site more compliant to web standards. This means that I have to change from HTML 4.01 to XHTML 1.0 (done) and change my table layout to CSS (almost done). I had to use Dreamweaver to convert because I'm still not comfortable with CSS. However, I don't know how to center the layers/layout so that it's in the middle of the page and yet will work with all resolutions. http://www.helenhunt.org/main3.html There's a link. Any help would be appreciated! |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Oct 2003 Location: Sweden
Posts: 395
![]() ![]() | Make a fixed width layer to hold your entire layout and set margin:auto for that layer. In correct browsers that will center the layout. However IE does not support that correctly. To solve that you most commonly add text-align:center to the body tag. (This should not center the layer at all in a correct browser). |
| |
| | #3 (permalink) |
| New Member Join Date: Mar 2005
Posts: 3
![]() | Yeah, as above but don't forget to set the correct doc-type at the top of the page or else you'll have problems.... ----------------------------------------------------- www.neilturnerfreelance.com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| css problem horizontally centered website | lomokev | Programming | 0 | 03-08-2005 07:21 AM |
| div positioning + css + IE problem? | countcobolt | Programming | 0 | 12-22-2004 07:55 AM |
| Mozilla Engine, CSS, Scrolling problem | crache | Programming | 7 | 06-06-2004 09:28 PM |
| CSS Alignment problem | wistow | Programming | 4 | 05-21-2004 01:02 PM |
| Css layout problem | biovelocity | Programming | 5 | 01-06-2004 11:20 PM |