Jump to content

image and CSS


dsci2000
 Share

Recommended Posts

Hi all,on my site I'm tring to create a div tag width a background image.The code is the following<div id="idVoice">.....</div>in the css#idVoice{background-image:url('images/myimage.png');}The site run correctly but the image is not shown.Someone can help me?thanks to all.

Link to comment
Share on other sites

There shouldn't be quotation marks around the file path in the URL:

background-image:url(images/myimage.png);

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...