t888eddy Posted April 18, 2012 Report Share Posted April 18, 2012 (edited) Hi! I want to make this kind of list with links: link 1 (18, arial, with a background back.jpg when the user points the link with the mouse pointer the background should change in back_1.jpg and the link to be in red) link 2 (16, arial, with a background back_2.jpg when the user points the link with the mouse pointer the background should change in back_3.jpg and the link to be in blue) link 3 (14, arial, with a background back_4.jpg when the user points the link with the mouse pointer the background should change in back_5.jpg and the link to be in white) link 4 (12, arial, with a background back_6.jpg when the user points the link with the mouse pointer the background should change in back_7.jpg and the link to be in yellow) I tried something with rollover images (buttons), but if I want to modify the text I have to modify the whole image. So, how can I do this? Same list, multiple background images, multiple background images when touch the link, multiple format for all links... How can I do it? Thanks in advance and have a nice day! Edited April 18, 2012 by t888eddy Link to comment Share on other sites More sharing options...
eTianbun Posted April 19, 2012 Report Share Posted April 19, 2012 (edited) Example: .link1{font:18px arial; background-image:url('back.jpg')}.link1:hover{background-image:url('back_1.jpg'); color:red} To make sure all images loads properly when it is hovered, Use Image sprite! Edited April 19, 2012 by eTianbun Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now