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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.