Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: firefox issue

  1. #1
    New Coder
    Join Date
    Aug 2011
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    firefox issue

    hello people,

    i'm having a problem with firefox.....

    http://gandhiproductions.herobo.com/...4/mapping.html

    the page above displays fine in chrome...... but not in firefox

    can anyone help please?

    thank you

    gandhi

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello evilgandhi,
    When posting a question to a forum like this it would be a good idea to describe the problem as if you were explaining it to someone who's seeing it for the first time and may have no idea what the desired layout should be.

    "Doesn't display right in FF" is pretty vague.

    When I look at it in FF and compare it to IE, it looks pretty similar all the way down to IE7 where it breaks because of lack of support for inline-block.

    Just guessing, I say your wanting to fix that last li that doesn't line up right???
    Have a look at adding this bit highlighted in red -
    Code:
    ul.psel li {
        background: none repeat scroll 0 0 #6194AA;
        display: inline-block;
        height: 120px;
        margin: 4%;
        vertical-align: top;
        width: 120px;
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey dude, yeah sorry that was vague basically it displays fine in chrome, everything is straightened up.

    awesome that fixed most of it!!!

    now if you hover over each of the boxes the rollover elements appear about 5-10px off.

    anychance you can help me fix it?

    thank you for your help

    gandhi

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by evilgandhi View Post
    now if you hover over each of the boxes the rollover elements appear about 5-10px off.

    anychance you can help me fix it?
    You are mis-using positions relative and absolute. I also prefer to stay away from negative margins unless they are really needed.

    By making the parent li relative, you can position child .details where you like. Look at it this way -
    Code:
    ul.psel li {
        background: #6194AA;
        display: inline-block;
        height: 120px;
        margin: 4%;
        position: relative;
        vertical-align: top;
        width: 120px;
    }
    .psel .details {
        color: #FFFFFF;
        height: 120px;
        opacity: 0;
        position: absolute;
        top: 0;
        text-align: center;
        transition-duration: 0.5s;
        transition-timing-function: ease-in-out;
        width: 120px;
    }

    Look here for more on the relation between relative and absolute positions.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    New Coder
    Join Date
    Aug 2011
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Leg-END!!!!! cheers for your help!!!


  •  

    Tags for this Thread

    Posting Permissions

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