471,605 Members | 1,406 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Page centered in IE7 but not in FF2.0

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

Nov 13 '07 #1
6 1808
a-ok-site 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.
because IE gets it wrong. You do not center a block by using text-align
on its parent. text-align is for...aligning the text, left right or
center and some poems...
to center a block, set a width and set it;s left and right margin to auto.
#page, #logo { margin: 0 auto; }
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Nov 13 '07 #2
a-ok-site wrote:
>
[to at least 3 newsgroups]
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

--
Berg
Nov 13 '07 #3
On Nov 13, 4:06 pm, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
a-ok-site 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.

because IE gets it wrong. You do not center a block by using text-align
on its parent. text-align is for...aligning the text, left right or
center and some poems...
to center a block, set a width and set it;s left and right margin to auto.

#page, #logo { margin: 0 auto; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Thanks for the assist.

Nov 13 '07 #4
a-ok-site 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.

Thanks,

Daniel
Cross-posting is often a bad idea.
Multi-posting is always evil.

You asked the same question on alt.html.
Please, read the netiquette.

--
If you've a question that doesn't belong to Usenet, contact me at
<ta*****************@yahoDELETETHATo.fr>
Nov 13 '07 #5
On Nov 13, 5:24 pm, "André Gillibert"
<tabkanDELETETHIS...@yahodeletethato.frwrote:
a-ok-site 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.
Thanks,
Daniel

Cross-posting is often a bad idea.
Multi-posting is always evil.

You asked the same question on alt.html.
Please, read the netiquette.

--
If you've a question that doesn't belong to Usenet, contact me at
<tabkanDELETETHIS...@yahoDELETETHATo.fr>
I was unaware of the evil I was creating. I think I fixed it before
the world came to an end by deleting the other posts. I am not used to
asking for help, but at least Johnathan got over it, and I really
appreciate his help because the problem is fixed and I can carry on
with the work.

Thanks again,

Daniel

Nov 13 '07 #6
a-ok-site wrote:
.. I think I fixed it before the world came to an end by deleting the
other posts.
You can't do that. Your multi-posts have already propagated to thousands
of news servers all around the planet.

This isn't Google, ya know... this is Usenet.

--
-bts
-Motorcycles defy gravity; cars just suck
Nov 13 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by The Bicycling Guitarist | last post: by
10 posts views Thread by Matt Silberstein | last post: by
7 posts views Thread by Sean | last post: by
7 posts views Thread by TheLongshot | last post: by
3 posts views Thread by a-ok-site | last post: by
3 posts views Thread by gentsquash | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.