Forums

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

Home Forums CSS CSS not showing up

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28546
    ibrahack
    Member

    I’m having an annoying issue with my css on Mac… I have got in my machine a folder called "CSS Tutorial" inside this i have my index.html, images folder and a css folder with my style.css inside… my style tag on the html is the following:
    <link rel="stylesheet" href="css/style.css" type="text/css" />

    and inside my CSS i am calling the images like this
    background-image: url(images/background_light.jpg) no-repeat;

    my final result is that the page is not showing up the background images… anyone can help me please…
    Thanks in advance

    #73070
    Devilelites
    Member

    Try┬Ęthis:

    background-image: url("../images/background_light.jpg") no-repeat;

    Its because, when you put your css in another folder, you have to link backwards with "../"

    I’m not very good, but that’s my guess.

    #73075
    ibrahack
    Member

    Thanks a lot man, it is working with ../images/
    Have a nice weekend =D

    "Devilelites" wrote:
    Try┬Ęthis:

    background-image: url("../images/background_light.jpg") no-repeat;

    Its because, when you put your css in another folder, you have to link backwards with "../"

    I’m not very good, but that’s my guess.

    #73076
    Devilelites
    Member

    NP, and you too :)

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