Solved

CSS issue

Posted on 2011-02-15
5
322 Views
Last Modified: 2012-08-13
Here's my page: http://www.aurorahealthaccess.org/health-and-wellness-resources/

Firefox 3 in OSX is rendering everything properly (see GOOD-FF3_OSX.jpg). In IE7 on the PC, however, some positioning is breaking (see BAD-IE7_PC.jpg): notice the position of div#logo and div#branding. Any ideas what nastiness in my CSS is causing this?

Any help is much appreciated. Thank you in advance. Looking good in OSX. Notice the position of div#logo nestled to the left of div.menu-header, and div#branding tucked up into the corner of div#container This is broken. div#logo and div#branding are out of position.
0
Comment
Question by:PitaMaria
5 Comments
 
LVL 9

Assisted Solution

by:CCSOFlag
CCSOFlag earned 250 total points
ID: 34897124
I'm getting the impression something is taking up too much space.  Try to lower the width by a couple pixels of the list items and see if it fixes it.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 34899547
It looks like the "width" on the "#access .menu-header" is causing IE7 to wrap the UL and push it down the page.
0
 
LVL 16

Expert Comment

by:HagayMandel
ID: 34902195
Change the doctype toL
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
0
 
LVL 9

Expert Comment

by:CCSOFlag
ID: 34902469
I'm just curious, but why do people suggest changing the doctype to transitional.  People should be using strict.  transitional uses deprecated elements.  Why do we continue to encourage people building sites with deprecated code?  I don't get it...  Transitional was only meant for old web sites so you didn't have to completely rewrite them to have them work in browsers.

I'd suggest using strict instead:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
0
 

Author Comment

by:PitaMaria
ID: 34902484
@HagayMandel: Are you suggesting to change my doctype simply for best practices or because it will fix my specific problem? Please advise.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hovering effect 9 47
FIx alignment of two texts 1 26
jQuery detect if it is a mobile device 3 103
Error in script 11 46
This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now