Solved

h4 element not rendering at the correct position in firefox

Posted on 2013-01-05
12
353 Views
Last Modified: 2013-01-11
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?
0
Comment
Question by:mmalik15
  • 4
  • 4
  • 2
  • +2
12 Comments
 
LVL 16

Accepted Solution

by:
s8web earned 150 total points
ID: 38748412
First of all, you need a doctype.

Make this the first line:

<!DOCTYPE html>

Open in new window

0
 
LVL 16

Expert Comment

by:s8web
ID: 38748415
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.
0
 
LVL 16

Expert Comment

by:s8web
ID: 38748421
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.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 16

Expert Comment

by:s8web
ID: 38748424
Try commenting out your js and see if your h4's show up if it's not the missing doctype.
0
 
LVL 30

Assisted Solution

by:LZ1
LZ1 earned 200 total points
ID: 38749462
I would personally try giving the #ProjectsGrid ul li a position:relative.

Then set the h4 to position:absolute; top:0;left:0; and see where that puts you.
Also remove the div container. All you really need is the h4.
0
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38750083
0
 

Author Comment

by:mmalik15
ID: 38751580
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.
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38767454
Hi,

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

Do i need to do anything else?
0
 

Author Comment

by:mmalik15
ID: 38767479
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
0
 
LVL 23

Assisted Solution

by:Roopesh Reddy
Roopesh Reddy earned 150 total points
ID: 38767663
Hi,

i tried the same in Firefox 17.0.1, and here is the result!

Firefox
Check the screenshot and let me know, whether is the desired result?
0
 

Author Comment

by:mmalik15
ID: 38767686
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.
0
 

Author Comment

by:mmalik15
ID: 38767707
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;
      
}
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question