Forums

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

Home Forums CSS Problem, background-Image ?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #157203
    hasbi
    Participant

    my image does’nt show on page. here, my site folder structure

    index.html css (folder)
    -> template.css | i use @import to call head.css
    -> cssOne (folder) head.css in cssOne (folder)

    images(folder) -> header.jpg

    in head.css , i write code

    pageOne {

    background-image : url(../images/header.jpg); height : 452px; width : 100%; }

    but it does’nt work , please help

    #157205
    Alen
    Participant

    So something like this:

    /cssOne
    /cssOne/head.css
    /images/
    /images/header.jpg
    /template.css (this file imports /cssOne/head.css)
    /index.html

    right?

    So the background-image code should be:

    .pageOne{
     background-image : url('images/header.jpg);
     height : 452px;
     width : 100%;
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.