Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Hover image change buttons
Old 06-04-2009, 08:33 PM Hover image change buttons
Junior Talker

Posts: 2
Name: Joe
Trades: 0
I am developing a site, the development link is here...
http://u.univers.net.au/johnking
I need the three large dots second, third and forth from the left on the top row to act like a hover menu. When you hover over them, the grid of dots changes, and text appears at the bottom of the grid.
It's almost working, but I am not a css guru, and need the last 10% to make it happen. I know this can be done in JS or Flash, but I want/need this to be pure css.
How would you do this in pure css? Have I got something wrong somewhere?
Here are some images showing how it should work.
akzidenz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2009, 09:03 PM Re: Hover image change buttons
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You have <div>s stuck inside <li> tags -- this is invalid coding.
You should be able to do all of that with the list items and links alone, no divs necessary.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-04-2009, 10:01 PM Re: Hover image change buttons
Junior Talker

Posts: 2
Name: Joe
Trades: 0
Thanks for taking a look.

I've changed the <div>s to <li>s, and made what I thought were the right css changes, but that is not working.

You can see it at the dev link http://u.univers.net.au

The relevant css is this...

/* floats */
#logo, #image, #nav, .dotsmall, .dotlarge, .dotspace, .dotactive, .dotline, #contact, #credits, #email {
position:relative;
float:left;
}
/* Postions */
#logo {
width:560px;
height:39px;
}
#image {
width:560px; /* note: actual image is 515px wide */
height:204px;
}
#nav {
width:560px;
height:300px;
}
#nav ul {
margin:0px;
padding:0px;
position:relative;
width:100%;
}
#nav ul li {
display:inline;
float:left;
}
#nav ul ul {
position:absolute;
left:-93px;
display:none;
z-index:100;
}
#nav ul ul li {
width:560px;
}
#contact a:hover {
display:block;
}
#contact, #credits, #email{
width:93px;
height:93px;
position:relative;
z-index:1000;
cursorointer;
background: #000 url('images/dot_large.gif') no-repeat center;
}
.dotsmall, .dotlarge, .dotspace, .dotline, .dotactive{
width:93px;
height:93px;
}
.dotsmall {
background: #000 url('images/dot_small.gif') no-repeat center;
}
.dotlarge {
background: #000 url('images/dot_large.gif') no-repeat center;
}
.dotline {
background: #000 url('images/dot_large_line.gif') no-repeat center;
}

Last edited by akzidenz; 06-04-2009 at 11:22 PM.. Reason: Updated reply
akzidenz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hover image change buttons
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11647 seconds with 12 queries