Link to home
Start Free TrialLog in
Avatar of mmalik15
mmalik15

asked on

h4 element not rendering at the correct position in firefox

on this web page http://109.109.245.194/nkarch/the-work.aspx I m using  h4 element inside list li element. Its rendering fine in Chrome but not in firefox or IE. Any ideas what changes I need to make in the CSS?
ASKER CERTIFIED SOLUTION
Avatar of s8web
s8web

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of s8web
s8web

You really need to validate the page and correct the reported errors before you troubleshoot further. Otherwise you're working with a house of cards.

http://validator.w3.org/check?uri=http%3A%2F%2F109.109.245.194%2Fnkarch%2Fthe-work.aspx&charset=%28detect+automatically%29&doctype=Inline&group=0

Some of your scripts aren't loading (404).

Make sure you add the doctype before you validate.
You probably don't need the extra containers inside your li's.

In your attached classes. is
all HealthAndFitness

Open in new window

supposed to be two classes, all and HealthAndFitness? That's how the parser will see that.
Try commenting out your js and see if your h4's show up if it's not the missing doctype.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmalik15

ASKER

Thanks for all the comments.

The issue is mainly sorted except in firefox when I hover over the heading h4 inside ul li, its not working but working fine in IE and Chrome.
Hi,

I tested in Firefox and IE and seems to be working fine!

Do i need to do anything else?
thanks for the comment again roopeshreddy.

the page has moved here http://nkarch.lifeintheuktest.co/the-work.aspx

all i m looking is when we hover over the list li the h4 element should have red background. At the moment the background is changing only when we hover over h4 not the whole li element
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for the comment again but what i m asking is if we hover over the image the h4 element should turn red. At the moment when we hover over h4 element, only then it is turning red.
the following css has got it working

#ProjectsGrid ul li:hover h4
{
      cursor: pointer;
      opacity: 1; /* css standard */
      filter: alpha(opacity=100);
      background-color:#760602 !important;
      
}