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 02-10-2013, 12:22 PM   PM User | #1
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
Question Show and hide arrows in header fader?

Hi,

I was wondering how to go about hiding my left and right arrows on my header image until mouse hover over then show?
Please help?

thanks

http://www.jbiddulph.com/mrh/home.html
jarv is offline   Reply With Quote
Old 02-10-2013, 12:59 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
The > and < arrows do not seem to do anything in IE9.
But it does not seem a good idea to hide anything to do with navigation until the user (fortuitously) mouses over it.

If you insist you can use CSS.

Quizmaster: What car company was originally known as Beyerishe Motoren Werke?
Contestant: Audi.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 02-10-2013, 04:41 PM   PM User | #3
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
Anyone know of any ways to do this?
jarv is offline   Reply With Quote
Old 02-10-2013, 05:14 PM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
As I say, post this request in the CSS forum.

It is simple using the CSS hover selector. IE7+ supports the :hover pseudo-class on arbitrary Elements as do FF, GC and Opera.

But I still question whether it is a good idea.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-10-2013 at 05:19 PM..
Philip M is offline   Reply With Quote
Old 02-10-2013, 05:22 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,615
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by Philip M View Post
But I still question whether it is a good idea.
Well, I think it’s not that crucial that it would hurt too much. Also, the visitor is most likely crossing the area with their mouse anyway so they will notice. It is only not obvious if you are on a touch-enabled device.

But anyway, would this work?
Code:
#banneroverlay > a {display: none;}
#banneroverlay:hover > a {display: block;}
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-10-2013, 05:35 PM   PM User | #6
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
You can't hover over an element which does not exist (not displayed).
You could do something like this:-

Code:
<!DOCTYPE html>
<head>

<style type = "text/css">
.mydiv  {display: none;}
a:hover + .mydiv {display: block;}
</style>

</head>
<body>

<a>Hover over me!</a>
<div class = "mydiv">Stuff shown on hover</div>

</body>

</html>
You could do instead of some text
<a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp></a>
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-10-2013 at 05:43 PM..
Philip M is offline   Reply With Quote
Old 02-10-2013, 07:29 PM   PM User | #7
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
Thumbs up

thank you very much!

I tried what VIP Stephen suggested and it worked!
jarv is offline   Reply With Quote
Reply

Bookmarks

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 08:17 AM.


Advertisement
Log in to turn off these ads.