Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Vegas Jquery Slide Background / divs on page background

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242757
    chrchcol
    Participant

    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;
        }
    
    
    #242769
    Atelierbram
    Participant

    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?

    #242781
    chrchcol
    Participant

    Here is a live copy of the code

    http://chriscollins.xyz/

    #242782
    Shikkediel
    Participant

    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…

    #242785
    chrchcol
    Participant

    Thank you! I hadn’t ran across that issue before.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.