- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am using the Vegas Jquery slider for the background on a webpage, it is working well. The problem I am having is in the body of the web page I am assigning a box of content a class and in the css trying to give it a background image. The background image will not show. Here is the code I am using
.content-box{
width: 60%;
height:650px;
background-image:url(back2.png);
border: 1px solid #a29415;
float:right;
margin-right:10px;
}
.content-box-enter{
padding: 10px;
color:333;
}
Hard to tell from this code-snippet what the issue is. Can you maybe post a link to the live site, or make a demo?
Here is a live copy of the code
That’s a relative path with url(back2.png)
, meaning the image would have to be in the same directory as the css. Try an absolute path instead…
Thank you! I hadn’t ran across that issue before.