Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Changing sidebar "background image" with mouse-over link?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 4, 2010, 01:41 PM
49Monsters's Avatar
49Monsters
 
41 posts · Aug 2010
MN
I have a text widget in sidebar containing nav buttons. Each button in the widget has a blank/normal/hover versions.

I want an image in the sidebar background.

Is there a way that "each" button's hover view could have it's own unique sidebar background? So on mouse-over not only would the button image change, the background it sits on would as well???
  #2  
Old Nov 4, 2010, 05:12 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
not that I'm aware of because the widget background is an parent element of the button. think of nested boxes: the widget is the outer box and the buttons are the inside box - anything that happens to the outside box is applied to the inside box unless you override them. However, things applied to the inside can not effect the outside box
  #3  
Old Nov 4, 2010, 06:26 PM
49Monsters's Avatar
49Monsters
 
41 posts · Aug 2010
MN
OK JD. Thats kinda what I expected.

Let me ask you this then. Right now each button has a div in the text widget containing a "button_blank". Then I have code in "Add HTML/CSS". Like so:

<div
id="Button2">
<a href="http://mylink" target= "_self"><img src="./wp-content/themes/atahualpa353/images/Button2_blank.gif" ></a>
</div>



/*---------------- MY BUTTON2 button CSS - START --------------*/

div#Button2 {z-index: 4; position: top left; float: left; width: auto; margin-right: 0px; margin-left: 145px;
margin-top: 10px;
}

div#Button2 {
height: 90px; width: 90px; border-width: 0; z-index:999;}

div#Button2 img {
background: url(./wp-content/themes/atahualpa353/images/Button2_normal.png) top left no-repeat;}

div#Button2 :hover img {
background: url(./wp-content/themes/atahualpa353/images/Button_hover.png) top left no-repeat;
}


All three button views are 90X90. Is there a way to have the "hover" view much larger without having the blank larger? In other words, I would like to be able to have the hover active only within the 90x90 size of the normal view, but once active, the hover image would be a much larger. image.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing "leave a comment" at the bottom of post on homepage gwpad Forum How-To 1 May 31, 2010 03:59 AM
Background color "sub-pages" and "whole menu bar" gxxfy Page & Category Menu Bars 1 Nov 24, 2009 02:46 AM
"About" row, footer links, sidebar background, logos in a line ctenos Header configuration & styling 1 Jul 28, 2009 01:21 PM
Changing Hover Color of "Submit Comment" Button adum Comments, trackbacks & pings 2 Jun 21, 2009 02:37 PM
modifying font size of "Today's Events" and "Upcoming Events" in sidebar ritland Forum How-To 0 Mar 16, 2009 03:23 PM


All times are GMT -6. The time now is 03:50 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.