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
Old 11-29-2010, 07:21 AM list item background
Ultra Talker

Posts: 254
Trades: 0
please look at this link http://www.sudhakargolakaram.co.in/files/list.html

what i need is i would like the left and right corners of the image to be as background image for each list items current page

i have used top left as background image for the list item and for the anchor i have used the same background image and positioned top right

but i am not getting the complete top left curve till the top right curve for the current list item

also for the hover on the links i am not getting the complete image from top left curve to top right curve

please advice
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2010, 02:43 PM Re: list item background
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Why use images at all? Why not use css3 rounded corners for the good browsers that render it correctly, and just leave IE7 and 8 with square corners - or use a jquery solution to make it work in IE.
__________________
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 11-30-2010, 02:17 PM Re: list item background
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
you can use something like this
Code:
<ul .menu>
....
<li><a href="link1"><span>&nbsp;</span>[YOUR link1]</a></li>
<li><a href="link2"><span>&nbsp;</span>[YOUR link2]</a></li>
</ul>
and
Code:
.menu li a { display:block and your background image on left (default), with left corners visible }
.menu li a span { display:inline; float:right; width:3px and your background image positioned at left }

.menu li a:hover { display:block and your background image on left (default), with left corners visible }
.menu li a:hover span { display:inline; float:right; width:3px and your background image positioned at left }
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 12-01-2010, 01:52 PM Re: list item background
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
That's a lot of extraneous code just to do something that css3 does very easily.
__________________
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 12-02-2010, 05:00 AM Re: list item background
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
In his case, it cannot (or maybe I don't know how).
He has some shadows at those rectangles [see the right bottom one].
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 12-02-2010, 08:41 AM Re: list item background
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
CSS3 does shadows quite handily too
__________________
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
 
Reply     « Reply to list item background
 

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.88047 seconds with 12 queries