CoffeeQuick
Programmer
Hi,
I am trying to change the display property of div via Javascript (to show and hide links).
This works fine when i use inline styles, but if i use a separate style sheet it does not work, can any one help?
Sample code
In-line:
css:
I have had the same problem before with other style properties, and have never managed to solve this problem, and had to resort to in-line styles, but as this div is on multiple pages i really want to use a style sheet.
Thanks.
I am trying to change the display property of div via Javascript (to show and hide links).
This works fine when i use inline styles, but if i use a separate style sheet it does not work, can any one help?
Sample code
In-line:
Code:
<div id="links" style="display:none"> .........
css:
Code:
#links {
display: none;
}
I have had the same problem before with other style properties, and have never managed to solve this problem, and had to resort to in-line styles, but as this div is on multiple pages i really want to use a style sheet.
Thanks.