Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2013, 08:45 PM   PM User | #1
evilgandhi
New Coder

 
Join Date: Aug 2011
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
evilgandhi is an unknown quantity at this point
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
evilgandhi is offline   Reply With Quote
Old 03-06-2013, 11:11 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Old 03-07-2013, 12:51 PM   PM User | #3
evilgandhi
New Coder

 
Join Date: Aug 2011
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
evilgandhi is an unknown quantity at this point
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
evilgandhi is offline   Reply With Quote
Old 03-07-2013, 05:30 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Old 03-07-2013, 07:19 PM   PM User | #5
evilgandhi
New Coder

 
Join Date: Aug 2011
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
evilgandhi is an unknown quantity at this point
Leg-END!!!!! cheers for your help!!!
evilgandhi is offline   Reply With Quote
Reply

Bookmarks

Tags
firefox grrr

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:09 AM.


Advertisement
Log in to turn off these ads.