Background Image Website
$25.00
Creative background designs for websites, blogs or personal pages.
Big Image Design Service
Background image website is ideal for web designers and developers that need a customized background for web pages. We can include your 3D logo image as a texture (just send us your logo in high definition) or send us a photo or picture you want to use.
Background image website
Full screen image backgrounds are a must if you are creating a portfolio or a photography website. This usually involves using a jQuery plugin, which will properly resize the image with the browser window. Do the necessary calculations so that the image covers the entire width and height of the page. We can create a nice image using a photo, landscape picture or any 3D image or effect.
The background-size property
With background-size, you can tell an element how large its background image must be. This is the code:
#elem{
background:url('bigimage.jpg') center center no-repeat;
background-size:100px 150px;
}
But even more convenient, this property supports two magical values: contain and cover:
- Contain resizes the background image so that it fits entirely in the element;
- Cover is more interesting – it makes so that the element’s background is entirely taken up by the image. The image is resized to the smallest size that allows it to cover the element entirely (see the illustration below). This is also the property we will be using for our full screen background.
So all we have to do, is to set the image we want displayed full screen as a background to the html element:
html{
/* This image will be displayed fullscreen */
background:url('background.jpg') no-repeat center center;
/* Ensure the html element always takes up the full height of the browser window */
min-height:100%;
/* The Magic */
background-size:cover;
}
body{
/* Workaround for some mobile browsers */
min-height:100%;
}
You must be logged in to post a review.
Reviews
There are no reviews yet.