473,695 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1843
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...@centra lva.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.LittleWorks Studio.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************ *****@yahoDELET ETHATo.fr>
Nov 13 '07 #5
On Nov 13, 5:24 pm, "André Gillibert"
<tabkanDELETETH IS...@yahodelet ethato.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
<tabkanDELETETH IS...@yahoDELET ETHATo.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
10115
by: DaWoE | last post by:
Hi, I want to place a div centered of another div in IE. I get this to work in Mozilla, but not in IE. The code i use for mozilla is the following : <html> <head> <style type="text/css">
8
11093
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use layers, that get visible when something is clicked. All works fine. Problem:
4
9727
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background I built a two column layout with nested navigation and content divs. The background image is centered via "background: ... center;", the divs are centered over it via "margin: 0 auto 0 auto;". The problem I'm having in IE6 is inconsistent...
6
1879
by: The Bicycling Guitarist | last post by:
I've used and loved the webmaster tools at Delorie.com for some years now. I just added some more text content to my home page, but in the web page "purifier" the text doesn't render as I thought it should. It looks fine in MSIE 6, lol. I didn't want the text to be centered, and specified a css class to clear the floats above and text-align to the left. Does it look that way for other people using other browsers than MSIE? If not, is it a...
10
2049
by: Matt Silberstein | last post by:
I am trying to make a page that will be 800px wide. That is, I have an 800px image. I want the content of the page centered. I can do that fine. On the top, I want an image logo with a text menu placed on top. Right now I have that working just fine in Mozilla and horrible in IE. The page validates just fine for both CSS and HTML. This should be easy, but somehow I just don't get positioning. Here is the link to the page:...
7
4306
by: Sean | last post by:
Hi, I have a tab control containing few tab pages. On each tab pages, I put an image on the tab page's title bar (the area on top of a tab page, ie where tooltip will appear). If i put both an image and a text, they both will be centered nicely. However, if I put only image without the text, the image will position itself more to the left and it is not centered.
7
2011
by: TheLongshot | last post by:
I just recently converted a few pages of my application to using master pages. Problem is, in all of my content pages, the contents are centered. I can't figure out why. The markup in the content page seems to ignore any attempts to manually align right. So what's the deal?
3
1614
by: a-ok-site | last post by:
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
3
2315
by: gentsquash | last post by:
I'm trying to display a paragraph that has a centered phrase, such as this one, in the middle of the paragraph. An example is the section "End of semester project" on my course-page http://www.math.ufl.edu/~squash/course.calc3.html
0
8649
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8586
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2289
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.