473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

can't get content centered

saputello
hello

i am dying to get this page to look right. i seem to have tried everything, but don't see why the banner, footer and content don't sit perfectly centered on the page. Everything measures 800px wide, but it looks different on firefox as opposed to safari and opera. It looks different still in IE. please help! The rest of the page isn't finished, so not to worry about the links etc!


http://www.nostramerica.com/course2.html

thank you my savior!!
Apr 1 '08 #1
7 1208
drhowarddrfine
7,435 Expert 4TB
Remove the closing slash
<style type="text/css" />

You are trying to align your background image to the foreground container but the image is uneven.
Apr 1 '08 #2
thank you for taking the time to reply to me! i have since fixed the bg image.

the image is 1600px wide, and i have an 800px banner so there should be an even 400px on each side of the container. somehow it's off... it's perfect on firefox, but on safari and opera it doesn't fit right.

thanks again!
Apr 1 '08 #3
Death Slaught
1,137 1GB
I don't have time to look at your code right now, but your page displays perfectly centered in my Opera. I don't have Safari on this computer, but I'll check it in a few minutes on my other one.

Thanks, Death
Apr 1 '08 #4
i guess you're right about opera. i haven't seen it in ie yet but in safari it's definitely off.
Apr 2 '08 #5
Death Slaught
1,137 1GB
It's fine in IE as well. I checked on my Safari and the only problem I see is that your navagation is off a little. Try decreasing the width of the container by a pixel.

Thanks, Death

PS - I just noticed that it's a giant image. You could move it to the right a pixel but I'm not sure how this would affect the other browsers.
Apr 2 '08 #6
i can't thank you enough! i struggled and struggled on that, messing with the bg image and every div other than the container!!!!!!

it can take so long just to get past such a minor problem! thanks very much man.
Apr 2 '08 #7
Death Slaught
1,137 1GB
No problem, it's what I'm here for.

Thanks, Death
Apr 7 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Don | last post by:
Hi, I have the following script that displays a popup window centered in the middle of the screen. I am getting a script error in both IE and Netscape but I don't know what it means. Thanks in...
5
by: Haines Brown | last post by:
I want a centered body, 680px wide, having a red bottom margin. The following works well in galeon, but not in IE5, where the bottom margin steals the full width of the viewpoint. That is, the red...
20
by: Tyler Carver | last post by:
I would like to do something that seems so basic with two div's but I don't think it can be done. Tables can do it in a snap. I was convinced that css was the way to go for layout but without...
2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
11
by: Olav Tollefsen | last post by:
In HTML, I could use <div align="center">. How do I center everything contained in a <div> tag using XHTML 1.1? Are there any newsgroup for XHTML authoring? Olav
2
by: dave | last post by:
trying to make adjustments to my 'position fixed' nav menu, but can't seem to get it centered: this jumbled-mess can be viewed at: http://hardwares.po.gs/menu_test/ where a couple of...
4
by: axlq | last post by:
Suppose I had to lay out a part of a page where I wanted to retain the horizontal and vertical relationship of the elements. Yes, this is what tables are for. I was curious if it can be done in...
7
by: Terry | last post by:
Hi again folks. I have a couple of issues now. I am not sure why I can't get my menu to overlap the content area. I tried using z-index. The effect I want occurs in Firefox but not IE. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.