tarun Posted February 2, 2007 Share Posted February 2, 2007 So This Is My Code: <STYLE> .Menu A { BACKGROUND-IMAGE: URL('images/bottombar_start.png') WIDTH: 97PX HEIGHT: 30PX } .Menu A:HOVER { BACKGROUND-IMAGE: URL('images/bottombar_startover.png') } </STYLE> <DIV CLASS="Menu" ALIGN="CENTER"><A HREF="#"> </A></DIV> But It Doesnt Display Right The Background Image Size Is All Wrong Can Anyone Please Correct The Code Or Tell Me Where Im Going Wrong Thanks Tarun Link to comment https://forums.phpfreaks.com/topic/36790-background-image-help/ Share on other sites More sharing options...
jcombs_31 Posted February 2, 2007 Share Posted February 2, 2007 first off, make everything lower case. While I don't think CSS is case sensative, it is better practice because XHTML is, and I've never seen CSS written in caps. Second, you didn't explain the problem clearly, but I would guess you need to make the anchor tag a block element (e.g., display:block). I'm guessing the width and height you specified is the size of the background image, yes? And remove the single quotes in the url declaration (e.g., url(images/bottombar_start.png). Please be more specific about the problem. It could very well be another part of your css playing games somewhere else if you have anything else. Link to comment https://forums.phpfreaks.com/topic/36790-background-image-help/#findComment-175640 Share on other sites More sharing options...
tarun Posted February 3, 2007 Author Share Posted February 3, 2007 OK Sorry But Thank You For Your Help Tarun Link to comment https://forums.phpfreaks.com/topic/36790-background-image-help/#findComment-176011 Share on other sites More sharing options...
FierceBlade Posted February 4, 2007 Share Posted February 4, 2007 Maybe if you are to post a link with the images we could help Link to comment https://forums.phpfreaks.com/topic/36790-background-image-help/#findComment-176448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.