4 replies [Last post]
aareth
Offline
newbie
Last seen: 13 years 9 weeks ago
Joined: 2007-06-14
Posts: 3
Points: 0

Hi,

This is the first time I am trying to create a CSS based website. When I load it using Firefox it works perfectly fine (the page is in the middle of the screen). But when I use IE the page goes to left side of the page Sad I don't know how to fix this problem.

Can you please help?

You can find the website below:

Website: www.thoth-solutions.com/abc

Stylesheet: www.thoth-solutions.com/abc/style1.css

I am using latest Internet Explorer and Firefox on 1152x864 resolution.

Thank you very much for your help

Alex

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 41 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

Hi Change the body to just

Hi

Change the body to just margin:0

add text-align:center to body and min-width:760px

add text-align:left to #wrap (I assume this wraps the whole page?)

Should work

aareth
Offline
newbie
Last seen: 13 years 9 weeks ago
Joined: 2007-06-14
Posts: 3
Points: 0

Hi I am sorry but I dont

Hi I am sorry but I dont understand exactly where to change..

Can you please show me exactly where (by posting original and then modified).

Thank you very much.

Alex

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 41 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

This is the new:

This is the new:

body {background:url(img/bg.gif) repeat-y top center #eaeaea; color:#3a3a3a; font:76% Verdana,Tahoma,Arial,sans-serif; margin:0; padding:0; min-width:760px; text-align:center;}

/* Main layout and header */
#wrap {background:#fff; color:#303030; margin:0 auto; padding:1px 5px; width:760px; text-align:left;}

and this is the old:

body {background:url(img/bg.gif) repeat-y top center #eaeaea; color:#3a3a3a; font:76% Verdana,Tahoma,Arial,sans-serif; margin:0 auto; padding:0;}

/* Main layout and header */
#wrap {background:#fff; color:#303030; margin:0 auto; padding:1px 5px; width:760px;}

aareth
Offline
newbie
Last seen: 13 years 9 weeks ago
Joined: 2007-06-14
Posts: 3
Points: 0

It worked nicely! Thank you

It worked nicely!

Thank you very very much!!!

Very much appraciated.

Alex