Home | All Fwiends | Random | Music | Blog | Search

Bubbles's Blog

"Why does unrequited love feel so empty."
Other
101 years old
Interzone
Last Login: 1624896259000
Contacting Bubbles
Message
Report
Add
Block
All Blogs (1/10)
1618906873000

Background tip ;)

hi lovesss,
i've seen quite some people struggling with their background because their gif/pic isnt big enough to cover their whole background.
here is some code so it does cover your whole background:

body {
background: url();
background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
font-family: monospace;
padding-top: 45px;
font-size: 15px;
}

you basically add:

background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;

to your code and this will make it so your gif/pic only shows up once instead of multiple times next to each other.
however it does happen that your gif/pic is not the right format to stretch it the right way. im not sure about this, but try playing with the 100% (making it a higher number) it might fix the problem :)

No comments