Reply LinkBack Thread Tools Search this Thread
Old 26-09-2005, 12:19   #1 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
rounded corners on a hover state on a list element

i need to put rounded corners on a hover state on a list element. i can only think that i'd need 2 background images but can't figure out how to put the bottom image in place.

i tried adding a span and targetting that but either i've not got it right or it won't work anyway.

any thoughts?

http://junk.anyoldshit.com/list/test.html

ta.
  Reply With Quote
Old 26-09-2005, 12:34   #2 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,537
Not sure what you're after.

Do you want plain text links with image backgrounds on hover? You worried about resizing the text?
Even better, have you got a mockup showing all the states and dimensions?

MSN if you want.
  Reply With Quote
Old 26-09-2005, 12:36   #3 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
Quote:
Originally Posted by Stickman
You worried about resizing the text?
yep. i can fix the height of the li's but then on re-size is fucks up.
  Reply With Quote
Old 26-09-2005, 12:50   #4 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
Code:
li { height: 70px; width: 120px; } li:hover a { background-image: url(img/test-top.gif); background-repeat: no-repeat; color: #fff; padding: 5px; display: block; } li:hover { background-color: #666; background-image: url(img/test-bot.gif); background-repeat:no-repeat; background-position: bottom; }

With a bit of javascript to sort make ie play ball... I can dig it out if you want, but same as suckerfish.
  Reply With Quote
Old 26-09-2005, 18:55   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
cheers guys, getting there...
  Reply With Quote
Old 27-09-2005, 05:09   #6 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,639
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
shorthand:

li:hover a {
background:#666 url(img/test-bot.gif) no-repeat bottom;
}

instead of:

li:hover {
background-color: #666;
background-image: url(img/test-bot.gif);
background-repeat:no-repeat;
background-position: bottom;
}
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8