a href not working in Google Chrome aaarghhh!
Discussion
I've been working on this most of the day, and what little hair I had left has now gone.
I'm sure this is going to be a beginners mistake, but I can't find a thing about it anywhere.
The site works in IE8, displays OK in Chrome and Firefox, but the <a href > tag for images and text in the main body doesn't work in Chrome or Firefox. They both recognise that its there, as the text does pick up the a class styles from the CSS sheet, but the links don't prompt a cursor change for clicking.
Pages is here
I've used the same code and techniques on other parts of the page and they work , but that damned image just wont do it.
Any ideas?
I'm sure this is going to be a beginners mistake, but I can't find a thing about it anywhere.
The site works in IE8, displays OK in Chrome and Firefox, but the <a href > tag for images and text in the main body doesn't work in Chrome or Firefox. They both recognise that its there, as the text does pick up the a class styles from the CSS sheet, but the links don't prompt a cursor change for clicking.
Pages is here
I've used the same code and techniques on other parts of the page and they work , but that damned image just wont do it.
Any ideas?
Maybe caused by the unclosed <div> ?:
http://validator.w3.org/check?uri=http://www.sprin...
The errors on line 106 look a bit suspicious..
http://validator.w3.org/check?uri=http://www.sprin...
The errors on line 106 look a bit suspicious..
mondeoman said:
Thanks,
caught that one, but its not the prob.
Could it be a height / block issue?
Developer tools in Chrome don't seem to be acknowledging the <a> tags in the left nav at allcaught that one, but its not the prob.
Could it be a height / block issue?
I would try making the <a> display:block with a fixed width, height & line-height and setting the PNG as the background image in the CSS.
Then you'll just end up with <td><a href="contents-help.shtml">Contents and Help</a></td>
Right:
- Remove "height:100%;" from the html,body stylesheet entry
- Comment out the #page-background entry
...and the links work
If you are using the #page-background div as a place to put a background image, try using the background-image attribute in the stylesheet rather than within the main body. That is:
In the stylesheet for example:
<div id="page-background"> </div>
Sorry, in a bit of a hurry, hth.
ETA: Ah, sorted with the z-index, cool
- Remove "height:100%;" from the html,body stylesheet entry
- Comment out the #page-background entry
...and the links work
If you are using the #page-background div as a place to put a background image, try using the background-image attribute in the stylesheet rather than within the main body. That is:
In the stylesheet for example:
- page-background { background-image:url('images/image.gif'); margin:0; padding:0; }
<div id="page-background"> </div>
Sorry, in a bit of a hurry, hth.
ETA: Ah, sorted with the z-index, cool
Edited by evenflow on Tuesday 2nd February 22:33
evenflow said:
Right:
- Remove "height:100%;" from the html,body stylesheet entry
- Comment out the #page-background entry
...and the links work
If you are using the #page-background div as a place to put a background image, try using the background-image attribute in the stylesheet rather than within the main body. That is:
In the stylesheet for example:
<div id="page-background"> </div>
Sorry, in a bit of a hurry, hth.
ETA: Ah, sorted with the z-index, cool
Aye, that and using "position:absolute" instead of "position:fixed" which kept the header at the top of the screen as the body scrolled up, but the body was going over the top of the header, so I was trying to work around that with z-index and ended up tying it all in knots.- Remove "height:100%;" from the html,body stylesheet entry
- Comment out the #page-background entry
...and the links work
If you are using the #page-background div as a place to put a background image, try using the background-image attribute in the stylesheet rather than within the main body. That is:
In the stylesheet for example:
- page-background { background-image:url('images/image.gif'); margin:0; padding:0; }
<div id="page-background"> </div>
Sorry, in a bit of a hurry, hth.
ETA: Ah, sorted with the z-index, cool
Edited by evenflow on Tuesday 2nd February 22:33
Thanks to all for the quick responses, much appreciated.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



