The Boosh!
ClioSport Admin
Elise, Duster
I'm trying to learn the very basics of putting a website together, and i'm now onto CSS.
I'm trying to use an image as a back ground.
The image its self is massive.
I want the image to fill the screen in the web browser - BUT I want it to keep its aspec ratio (i.e not just be a massive picture only showing me a section.)
In essence, you know when you set an image as your desktop backgruond and you can select stretch and it fits to what ever size your screen is?
Thats what i'm attempting to acheive
I'm trying to use an image as a back ground.
The image its self is massive.
I want the image to fill the screen in the web browser - BUT I want it to keep its aspec ratio (i.e not just be a massive picture only showing me a section.)
Code:
body {
background-position: center top;
background-image: url(images/background.jpg);
background-repeat: no-repeat;
background-attachement: fixed
}
In essence, you know when you set an image as your desktop backgruond and you can select stretch and it fits to what ever size your screen is?
Thats what i'm attempting to acheive