Cobra23 Posted February 9, 2012 Share Posted February 9, 2012 I never thought i'd ask for css help. However i have a problem with setting the background image to display. Css is: float: left; padding: 15px 0; position: absolute; left: 0; top:45px; display: none; width: 600px; height: 300px; background: url (images/navbg.png) repeat; color: #fff; -moz-border-radius-bottomright: 5px; -khtml-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; -moz-border-radius-bottomleft: 5px; -khtml-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 9, 2012 Share Posted February 9, 2012 I'd have to guess it's a path issue. Have you tried using the full URL to the image file? Quote Link to comment Share on other sites More sharing options...
Cobra23 Posted February 9, 2012 Author Share Posted February 9, 2012 strangely .... i never have a css problem i couldn't solve. I tried the path three different ways !! Copied image to two folders and then put in both full paths and it still doesn't work !! If i use background-colour then the colour will be shown instead. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 9, 2012 Share Posted February 9, 2012 When I say full URL, I mean http://www.yoursite.com/path/to/image.jpg, not a filesytem path. Is that what you tried? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 9, 2012 Share Posted February 9, 2012 I just tried something else too, when I put a space between url and the parenthesis, it prevented the image from loading. Remove the space and try it again . . . Quote Link to comment Share on other sites More sharing options...
Cobra23 Posted February 9, 2012 Author Share Posted February 9, 2012 Thats weird !! The space solved the problem. However other images are not affected with the space there. That is surely very strange. Cheers mate. Do you know why that is? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted February 9, 2012 Share Posted February 9, 2012 No, I didn't look into it any further than adding/removing the space. 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.