Current location: Hot Scripts Forums » General Web Coding » CSS » Change Background on Mouseover


Change Background on Mouseover

Reply
  #1 (permalink)  
Old 04-15-10, 02:26 AM
xavier039 xavier039 is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Change Background on Mouseover

I am trying to change the color behind the titles in the boxes when you mouseover anywhere in the picture. Right now I only have it setup to change when you mouseover the actual text. What is a work around?

Thank you.

Here is a link to the site. Thrive - The 12 Sectors

HTML Code:
#canvas #main.twelve_sectors #sectors .body a.sector {
  display: block;
  width: 214px;
  height: 137px;
  float: left;
  margin: 5px;
  font-size: 16px;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

#canvas #main.twelve_sectors #sectors .body a.sector:hover {

}

#canvas #main.twelve_sectors #sectors .body a.sector .label {
  background: url('images/default/opacity_50_black.png');
  color: #fff;
  width: 110px;
  padding: 5px 0 5px 10px;
  text-transform: uppercase;
  
  -webkit-border-radius: 5px 0;
  -moz-border-radius: 5px 0;
  border-radius: 5px 0;
}

#canvas #main.twelve_sectors #sectors .body a.sector .label:hover {
	background-color: #d7abff;	
}
Reply With Quote
Reply

Bookmarks

Tags
background, css, mouseover


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu change background color Frogger CSS 6 03-02-10 01:26 AM
Change background on select text input pms JavaScript 4 06-17-09 11:28 AM
Converting to ems spyke01 CSS 0 11-09-07 02:48 PM
td background change on mouseover HoT DaWg CSS 1 05-08-05 01:14 PM
Need ONE mouseover event to change TWO graphics on the page AccessGuy JavaScript 1 06-19-03 02:45 AM


All times are GMT -5. The time now is 02:28 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.