Solved

CSS issue

Posted on 2011-02-15
5
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses

627 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