Jump to content

[SOLVED] background image questione


ngreenwood6

Recommended Posts

I am trying to use a background image in css on a div. I am able to get it to work but I was wondering if I am missing something. Basically I have this:

 

css

#something{
background:url(images/image.png) no-repeat;
}

 

template

<div id="something"> </div>

 

If you notice in between the div tabs I have a non breaking space. The reason for that is because without it the background image isnt showing up. Is that the proper way to do it or is there something I am missing?

Link to comment
https://forums.phpfreaks.com/topic/182237-solved-background-image-questione/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.