Nov 21, 2009

IE6 display:block hides other image BUG

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

IE6 display:block hides other image BUG

suicide
Hi everyone,

I have a problem. I have two images, and one has the 3px IE bug. Turning this to a block level element fixes it but then an image to the right disapears. Another fix I have tried is an IE hack with -3px margin which makes the bottom line up but then the top is off.

Here is the CSS in question.



code:--------------------------------------------------------------------------------#masthead {
width:100%;
background-color:#4F6DB1;
background-image: url(../images/layout/blg_gradient.jpg);
background-repeat:repeat-x;
}
#logo {
position:relative;
z-index:1;
display:block;
}
#mastheadImages {
position:absolute;
top:17px;
left:0;
width:100%;
}
#mastheadImages img {
margin-right:10px;
float:right;
}
--------------------------------------------------------------------------------


And a small chung of markup.


code:--------------------------------------------------------------------------------
<div id="masthead">
<a href="index.php"><img id="logo" src="../images/layout/blg_logo.gif" width="418" height="152" border="0" alt="The Beaches Living Guide" /></a>
<div id="mastheadImages"><img src="../images/layout/blg_title_images.jpg" alt="photos" width="544" height="105" />
<div id="topSmallNav"><div><?=getPageLinks();?></div></div>
</div>
--------------------------------------------------------------------------------


If I take the block out of #logo the image image blg_title_images shows up but blg_logo has a 3px space under it. If I leave block in the space goes away and so does blg_title_images.

Sorry I don't really have a working example as I am using a hack to get around it right now, but it doesn't look perfect.

Any ideas? Oh and should I even bother mentioning that it works fine in Fire Fox.

 

 

 


Comment/Reply (w/o sign-up)

FirefoxRocks
Have you tried making both images display: block? From what you mentioned, you can try:

CODE
#logo {margin-bottom: -3px;}
or
CODE
img { display: block}


Also, you have absolute positioning there. Unless absolutely necessary, you shouldn't need to use position: absolute. IE6 support is becoming less and less, because most people use either IE7 or alternative browsers now. You may want to consider dropping support for IE6, and let the browser render the page the way it wants to.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : ie6, display, block, hides, image, bug

  1. Stage.scalemode
    When my image scale down my stage doesn't follow. How to make it w (1)
  2. Searching For Alternate Flash Image Viewer
    Tired of using default viewer, would like to find something new... (2)
    Hello everyone! I am posting regarding Dreamweaver extensions... I have been using the Flash Image
    Viewer, the default viewer of Dreamweaver, and I would LOVE to have a change of pace. I don't
    really do too much with Flash at the moment... I would also like to play around with Flash and
    applications a lot more in the future. I just don't see it being too near. I have looked
    around many professional sites, and have seen many different types. I have seen images that place
    previous, play/pause, and next buttons on corners of the panel... and they loop at pre....
  3. Imagemap With Image As Other Link
    (0)
    Hi, I have an imagemap with a couple of links to other pages, but I would also like the whole image
    to be a link, for example the code below My
    aim is to have a user brought to link2 or link3 by clicking on the specific areas of the map, or
    else brought to link1 by clicking anywhere else. This works in FireFox 2.0, but Internet Explorer 6
    ignores the link1. I can achieve the effect that I am looking for by defining an AREA on the
    imagemap that covers all the image, and is overridden by the specific areas, but the li....
  4. Image Positioning...help?
    (3)
    HELLO does anyone know how you can like...position an image wherever you want? I'd prefer not
    to put it into its own "div" box.................. is there a code or something for it?....
  5. Jscript/html/css Code Help
    irritating gaps in spliced image (8)
    Here is a link to one of the pages i am designing for my parents business website. all the other
    pages - except the main page - are just imagemaps. this page and the main are spliced images - the
    main contains a iframe blog - but in this one in xp/ ie and firefox/ all the images are pulled apart
    the idea for the page is that the user mouse-over's the cartons and the blank box of grass in
    the bottom has the details of the product printed in it. i am totally able to git rid of the
    splicing if nessisary and use div's but i cant figure how. could someone help me s....
  6. How To Display Clear Image On Web Site
    (4)
    I uesed "image ready" to creat an animated gif and put it into my web site design. The problem is
    when I pre-browse from image ready, the images effect is very good, the color is fresh and the
    displaying is clear, but when I put it into the webpage and browse it from IE(Safari), the images
    showing faded and non-clear enough. The resolution of those images I used in animated gif is 72.
    Dose anyone have idea about it? Thank you very much. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
  7. Image operation via MySql database
    (1)
    The starter hosting at astahost.com supports only 20M space for the pages. But thanks OpaQue, the
    MySql database space is not limited. These days, I conducted an evaluation using MySql database to
    operate the image. First, create the database and table(which I had already introduce at the
    database session), upload the images and insert them into MySql database. When review the pages,
    these images are retrieved from the database and shown in the pages. The code is as following:
    table structure: CREATE TABLE `files` ( `id` int(10) NOT NULL auto_increment, `name` varc....

    1. Looking for ie6, display, block, hides, image, bug

See Also,

*SIMILAR VIDEOS*
Searching Video's for ie6, display, block, hides, image, bug
advertisement



IE6 display:block hides other image BUG

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com