Welcome to Gaia! ::

BloodTsuki's avatar

IRL Noob

How do I make it so my background is not tiled and does not scroll with the screen?
kittymmeow's avatar

Fashionable Fatcat

s k y y l i n e
How do I make it so my background is not tiled and does not scroll with the screen?

body,html{
background: url('your image url') no-repeat fixed;
}
BloodTsuki's avatar

IRL Noob

kittymmeow
s k y y l i n e
How do I make it so my background is not tiled and does not scroll with the screen?

body,html{
background: url('your image url') no-repeat fixed;
}


thank you! heart do you know how to make the image fit to screen?
kittymmeow's avatar

Fashionable Fatcat

s k y y l i n e
kittymmeow
s k y y l i n e
How do I make it so my background is not tiled and does not scroll with the screen?

body,html{
background: url('your image url') no-repeat fixed;
}


thank you! heart do you know how to make the image fit to screen?

body,html{
background: url('your image url') no-repeat fixed top center;
background-size:cover;
}
The background-size property sets the size of the background, and the value cover makes it so it fits no matter the size of the screen.
BloodTsuki's avatar

IRL Noob

kittymmeow
s k y y l i n e
kittymmeow
s k y y l i n e
How do I make it so my background is not tiled and does not scroll with the screen?

body,html{
background: url('your image url') no-repeat fixed;
}


thank you! heart do you know how to make the image fit to screen?

body,html{
background: url('your image url') no-repeat fixed top center;
background-size:cover;
}
The background-size property sets the size of the background, and the value cover makes it so it fits no matter the size of the screen.


ahh sorry I have one more question. How do I make it so everything on the page stays in place no matter what the size of the screen is? sorry I am asking so maning questions, you are helping out a lot

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games