1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Firefox display issue

Discussion in 'HTML & Website Design' started by roger_inkart, Jul 30, 2011.

  1. #1
    OK, I'm several years late to convert my website from tables to div, but I'm having a minor display problem in Firefox. Here's the page:

    http://www.inkart.net/illustration/wildlife/aardvark/

    The four animal icons at the bottom don't maintain the white background, and the uneven edge look pretty sloppy. Here's the CSS page:

    http://www.inkart.net/styles_20.css

    (relevant styles here are on the bottom of the page.)

    It looks fine in IE, but I would like to eliminate the uneven edges if in Firefox possible. Any help is appreciated!
     
    roger_inkart, Jul 30, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    The web developer's mantra: If it works in IE, but not Firefox, your code is wrong.
    (Haven't looked at it yet.)
     
    drhowarddrfine, Jul 30, 2011 IP
    roger_inkart likes this.
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    And w'ere back. As expected, your markup is wrong. Parent containers are never to expand to contain floated elements. Your page doesn't display correctly in any of the modern browsers. (IE is not a modern browser.)

    To do what you want, you need to "clear floats". The easiest way here is to add 'float:left' to the parent container, the div with the class of 'base'.

    Never, ever use IE as a reference for how things should work. Never, ever trust IE to do ANYTHING right.
     
    drhowarddrfine, Jul 30, 2011 IP
  4. roger_inkart

    roger_inkart Peon

    Messages:
    383
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Much thanks for the lesson!
     
    roger_inkart, Jul 30, 2011 IP
  5. zudhire

    zudhire Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    drhowarddrfine is right.
    Always check the page with firefox and if you have a problem you have to use clear:both;
     
    zudhire, Jul 31, 2011 IP