HighDots Forums  

Page centered in IE7 but not in Firefox 2.0

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Page centered in IE7 but not in Firefox 2.0 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
a-ok-site
 
Posts: n/a

Default Page centered in IE7 but not in Firefox 2.0 - 11-13-2007 , 03:26 PM






I am in the process of trying to build a template for my web site
using only CSS, but when it is viewed with IE7 it is centered, but
with Firefox 2.0 it is floated left. I really don't mind which way it
is but I would like it to be the same across browsers. Does anybody
have a suggestion or cure? Any help will be appreciated? The url is a-
ok-site.com.

Thanks,

Daniel


Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Page centered in IE7 but not in Firefox 2.0 - 11-13-2007 , 03:52 PM






In article
<1194989178.787360.225220 (AT) 50g2000hsm (DOT) googlegroups.com>,
a-ok-site <a.ok.site (AT) gmail (DOT) com> wrote:

Quote:
I am in the process of trying to build a template for my web site
using only CSS, but when it is viewed with IE7 it is centered, but
with Firefox 2.0 it is floated left. I really don't mind which way it
is but I would like it to be the same across browsers. Does anybody
have a suggestion or cure? Any help will be appreciated? The url is a-
ok-site.com.

In your case, you can do this:

change the max-width on #page and #logo to width and add
margin:auto; to both too.

That is one strategy, there are others that will deliver a more
fluid page, just em width your #page and add margin:auto;
(perhaps about 40em will do in your case).

You can also get more sophisticated and use a wrapper, %
dimension the logo to fill it 100% and em size the wrapper to
about 40em... but better stop here. Try the above and see if you
like.

--
dorayme


Reply With Quote
  #3  
Old   
a-ok-site
 
Posts: n/a

Default Re: Page centered in IE7 but not in Firefox 2.0 - 11-13-2007 , 04:29 PM



On Nov 13, 3:52 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
1194989178.787360.225... (AT) 50g2000hsm (DOT) googlegroups.com>,

a-ok-site <a.ok.s... (AT) gmail (DOT) com> wrote:
I am in the process of trying to build a template for my web site
using only CSS, but when it is viewed with IE7 it is centered, but
with Firefox 2.0 it is floated left. I really don't mind which way it
is but I would like it to be the same across browsers. Does anybody
have a suggestion or cure? Any help will be appreciated? The url is a-
ok-site.com.

In your case, you can do this:

change the max-width on #page and #logo to width and add
margin:auto; to both too.

That is one strategy, there are others that will deliver a more
fluid page, just em width your #page and add margin:auto;
(perhaps about 40em will do in your case).

You can also get more sophisticated and use a wrapper, %
dimension the logo to fill it 100% and em size the wrapper to
about 40em... but better stop here. Try the above and see if you
like.

--
dorayme
Thanks for the assist.

Later,

Daniel




Reply With Quote
  #4  
Old   
a-ok-site
 
Posts: n/a

Default Re: Page centered in IE7 but not in Firefox 2.0 - 11-13-2007 , 04:49 PM



On Nov 13, 3:52 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
1194989178.787360.225... (AT) 50g2000hsm (DOT) googlegroups.com>,

a-ok-site <a.ok.s... (AT) gmail (DOT) com> wrote:
I am in the process of trying to build a template for my web site
using only CSS, but when it is viewed with IE7 it is centered, but
with Firefox 2.0 it is floated left. I really don't mind which way it
is but I would like it to be the same across browsers. Does anybody
have a suggestion or cure? Any help will be appreciated? The url is a-
ok-site.com.

In your case, you can do this:

change the max-width on #page and #logo to width and add
margin:auto; to both too.

That is one strategy, there are others that will deliver a more
fluid page, just em width your #page and add margin:auto;
(perhaps about 40em will do in your case).

You can also get more sophisticated and use a wrapper, %
dimension the logo to fill it 100% and em size the wrapper to
about 40em... but better stop here. Try the above and see if you
like.

--
dorayme
Thanks for the assist.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.