<

[Last Call] Learn how to a build a cloud-first strategyRegister Now

x

Creating Scalable Full-Page Backgrounds in CSS3

Posted on
6,212 Points
112 Views
1 Endorsement
Last Modified:
Experience Level: Beginner
3:57
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3.

Video Steps

1. Create a new HTML document with an internal stylesheet.

2. In CSS, define the html element to have a background image. Use a high resolution image.

3. In the same background property specify it as no-repeat, centered, and fixed.

4. Define the background-size property (unique to CSS3) as "cover".

5. Redefine the background-size property with prefixes of -webkit-, -moz-, and -o- for browser compatibility.

6. Create a div and name it Content. Set its width as 40%, height as 100%, position to absolute, and left to 25%. Define its background color as white.

7. In the HTML type the tag for the Content div.

1
Comment
0 Comments

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

Suggested Videos

Title Views Activity
Custom List Bullets in CSS 77
Using Google Font API in CSS 58
Introduction to HTML (Part 1) 91
Lists and Links 86
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month