Solved

CSS issue

Posted on 2011-02-15
5
344 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why "Mobile First"? 5 63
CSS in HTML 5 68
Web page design problem 3 42
How does this modal work? 3 34
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

710 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