Full Size Background Image

Full Size Background Image

Now we want to have a background image on a website that covers the entire browser window at all times.
The requirements are as follows:
  • Fill the entire page with the image (no white space)
  • Scale image as needed
  • Center image on page
  • Do not cause scrollbars
The following example shows how to do it; Use the <html> element (the <html> element is always at least the height of the browser window). Then set a fixed and centered background on it. Then adjust its size with the background-size property:

Example

html {
  background: url(img_man.jpg) no-repeat center fixed; 
  background-size: cover;
}







Full Page Background Image

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.


html css Bootstrap Exampls eng Badie Mousa Ragye part1 part2

html css exampls 1 html css exampls 1 مسلسل اسم الملف لينك التاريخ ملاحظات ...