HTML/CSS Help ($0.01)

Status
This thread has been locked.

_ItsZach_

Banned
Feedback score
0
Posts
68
Reactions
15
Resources
0
Hello I am having problems with my code! I am trying to make my header have a banner but when I insert the following code the image doesn't show up!


HTML:
.intro {
    background-image: url ("https://i.imgur.com/WYbqAjw.jpg");
    background-position: center;
    background-repeat: no-repeat;
    display: table;
    width: 100%;
    height: auto;
    margin-top: -18px;
    padding: 180px 0;
    text-align: center;  
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

Thanks,
Zach
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Canadian

Developer
Supreme
Feedback score
11
Posts
95
Reactions
60
Resources
0
Is it possible that space between url and the url messes it up?
 

polarline

Premium
Feedback score
46
Posts
835
Reactions
157
Resources
20
remove space after 'url'
Code:
.intro {
    background-image: url("https://i.imgur.com/WYbqAjw.jpg");
    background-position: center;
    background-repeat: no-repeat;
    display: table;
    width: 100%;
    height: auto;
    margin-top: -18px;
    padding: 180px 0;
    text-align: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}
 

_ItsZach_

Banned
Feedback score
0
Posts
68
Reactions
15
Resources
0
Is it possible that space between url and the url messes it up?
remove space after 'url'
Code:
.intro {
    background-image: url("https://i.imgur.com/WYbqAjw.jpg");
    background-position: center;
    background-repeat: no-repeat;
    display: table;
    width: 100%;
    height: auto;
    margin-top: -18px;
    padding: 180px 0;
    text-align: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}
LOL, I'm smart, thanks it's late
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/__itszach_-scam-report.416574/)
Status
This thread has been locked.
Top