Results 1 to 2 of 2

Thread: IE CSS positioning issue

  1. #1
    Join Date
    Feb 2008
    Posts
    5

    IE CSS positioning issue

    Hello everyone.

    I am using html and css (wordpress site). I am using an image as a header with a list of text links that need to go on top. I decided to use <img> for the header image instead of placing at as a background.

    I am using a negative relative positioning for the text links to put them back on top of the <img> that just came before it in the code.

    It looks fine on firefox, but IE leaves a big space where the text links WOULD go relatively (you can even select the "space" with your mouse") right under the header. This pushes the content down. Plus, the text links don't even appear in the right place.

    Anyone know what could be causing this?

    see for yourself:

    http://www.listopublicidad.com

    the code:

    Code:
    <div id="header">
    <a href="http://www.listopublicidad.com"><img src="/wp-content/themes/adtheme2/images/ad-header.jpg" alt="Rio Grande Valley Visual Arts" border="0" /></a>
    	<div id="ad-navigation">
    		<a href="#">featured articles</a> &nbsp; | &nbsp;
    		<a href="#">arts calendar</a> &nbsp; | &nbsp;
    		<a href="#">ongoing exhibitions</a> &nbsp; | &nbsp;
    		<a href="#">mailing list</a> &nbsp; | &nbsp;
    		<a href="#">submissions</a> &nbsp; | &nbsp;
    		<a href="#">donate</a> &nbsp; | &nbsp;
    		<a href="#">about a.d.</a>
    	</div>
    </div>
    the css:

    Code:
    #ad-navigation {
    	margin: 0px;
    	padding: 8px;
    	width: 884px;
    	position: relative;
    	top: -40px;
    	left: 10px;
    	font-size: 14px;
    	color: #333333;
    	line-height: 14px;
    }

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    It looks fine on IE6, IE7, Firefox, Opera and Safari. I can't see anything wrong with your strategy.

    You've just changed the code, the image isn't a background-image in the CSS in your post above.

    You now have a main image at the top and another image ad-navigation-bg.jpg underneath (paler green) which is a background-image in <div id="ad-navigation"> with the links inside. This is OK.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Javascript and CSS Positioning
    By jwalker80 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 23 Feb 2007, 10:59 AM
  2. Problems Positioning with CSS
    By kirstybandm in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 17 Jan 2006, 05:33 AM
  3. Having Problems with CSS Positioning
    By kirstybandm in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 13 Jan 2006, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •