Web Design Forum: Hover effects not working - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Hover effects not working

#1 User is offline   PhilStoz86 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 17-October 11
  • Reputation: 0

Posted 07 February 2012 - 09:12 PM

Hi!

See this code below:

#sectionTwoWrapper img {
	margin: 0px 20px 0px 0px;
	float: left;
	width: 254px;
}
#sectionTwoWrapper a {
	display: inline;
}
#sectionTwoWrapper a:link, #sectionTwoWrapper a:visited {
	display: inline;
}
#sectionTwoWrapper a:hover, #sectionTwoWrapper a:active {
	display: inline;
	background: #FFF;
	opacity: 0.5;
}


I have some images (as links to other pages in my site) sitting in 'sectionTwoWrapper'. All I want is to have a little hover effect on them but I cannot make it work!! I've never had this problem before and I just can't figure it out. Can anyone see any error in my code?

Help!!

Thank you!

This post has been edited by Renaissance-Design: 07 February 2012 - 09:13 PM
Reason for edit: Please use the code button or tags to format your code.

0

#2 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 07 February 2012 - 09:15 PM

You shouldn't need to set display: inline on your <a> elements - they're already inline.

Do you have a live link to the site? If not, can you put your code in a jsfiddle?

This post has been edited by Renaissance-Design: 07 February 2012 - 09:15 PM

0

#3 User is offline   PhilStoz86 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 17-October 11
  • Reputation: 0

Posted 07 February 2012 - 09:19 PM

Afraid not, I'm designing it locally.

You'll have to explain what a jsfiddle is - I'm new to this sorry!
0

#4 User is offline   PhilStoz86 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 17-October 11
  • Reputation: 0

Posted 07 February 2012 - 09:35 PM

If I wrap them in their own containers, the hover effect works perfectly.

Is there a reason for this?
0

#5 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 07 February 2012 - 09:36 PM

jsfiddle
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users