반응형

image full screen css - How TO - Full Page Image

 

https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_full_page 

 

Tryit Editor v3.6

body, html { height: 100%; margin: 0; } .bg { /* The image used */ background-image: url("img_girl.jpg"); /* Full height */ height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: co

www.w3schools.com

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
  height: 100%;
  margin: 0;
}

.bg {
  /* The image used */
  background-image: url("img_girl.jpg");

  /* Full height */
  height: 100%; 

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
</style>
</head>
<body>

<div class="bg"></div>

<p>This example creates a full page background image. Try to resize the browser window to see how it always will cover the full screen (when scrolled to top), and that it scales nicely on all screen sizes.</p>

</body>
</html>

반응형
반응형
Windows — Full-screen scrolling windows

 

http://nick-jonas.github.io/windows/

 

Windows is a jQuery plugin for creating full-screen scrolling windows. It sets up the basic SASS for sequential full screen windows and a jQuery plugin for managing their positions while the user scrolls.

 

windows

반응형

'프로그래밍 > Script' 카테고리의 다른 글

30+ Innovative New jQuery Plugins  (0) 2013.06.10
[JAVASCRIPT] select 관리  (0) 2013.06.05
Cytoscape.js  (0) 2013.06.03
How to enable JavaScript in your browser  (0) 2013.05.30
[jQuery] 30 jQuery Plugins for Amazing Website Design  (0) 2013.05.30

+ Recent posts