DivWrapper

In this example below you will see how to do a DivWrapper with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by -_-Nina-_-, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright -_-Nina-_- ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>DivWrapper</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <title>Setting Up a Page Wrapper</title>

  <link href='https://fonts.googleapis.com/css?family=Aclonica' rel='stylesheet'>
  <link href='https://fonts.googleapis.com/css?family=Baumans' rel='stylesheet'>



<body>
<div id="wrapper">
  
<h1>Headline YEA</h1><br>

<h4>The key to success is to keep your head above the water, never give up. In life you have to take the trash out, if you have trash in your life, take it out, throw it away, get rid of it, major key. They don’t want us to win. In life there will be road blocks but we will over come it. Surround yourself with angels, positive energy, beautiful people, beautiful souls, clean heart, angel. You do know, you do know that they don’t want you to have lunch. I’m keeping it real with you, so what you going do is have lunch.
</h4>

<p>A link to <a href="http://www.crunchyroll.com/">CrunchyRoll</a>.</p><br>
  
<div class="polaroid">
  <img src="http://www.mhswebdesign.com/wp-content/uploads/2015/10/ocean1.jpg" alt="What is this???" style="width:100%" >
  <div class="container">
    <h2>I don't know what this is but I will pretend that I know.</h2>
  </div>
  
  
  
  
  
  
  
  
</body>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/-_-Nina-_-/divwrapper-ZXpmNp */
body {
	background-color: #DFFFEB; /* change this color */
	font-size: 13px;
	font-family: Consolas;
	color: green;
}

#wrapper {
        	background-color: #DCE6FF; /* background */
        	border-color: #FF0000;  /* ridgesssss */
        	border-style: ridge; /* RIDGEEEE */
        	border-width: 15px; /* isn't the best but gets the job done lolololol that should work pretty weelllll */
        	margin-top: 30px; /* distance from top of page */
margin-right: auto; /* this tells the browser to center the page and determine equal margins from the left & right */
	margin-bottom: 0px; /* distance from bottom of page */
margin-left: auto; /* this tells the browser to center the page and determine equal margins from the left & right */
	padding: 35px; /* BREATHING ROOOOOMMM CHANGED ITT GOT EMM */
	height: 100%; /* this is included so the wrapper will take up the entire page */
	width: 1400px; /* CHANGED IT TOOO GOT EM .      this sets the width of the page wrapper */
}

h1 {
	background-color: #FFFBCA; /* changed it CIQUE yELLLLLOW */
        	border-color: #1C9EE3; /* CIQUEEEEEEEE BLUE */
        	border-style: double; /* yYYEAAAA */
        	border-width: 6px; /* YEe 5 to 6 awesomeeee */
        	margin-top: 10px; /* YEEEEEEE */
	margin-right: 30px; /* distance from right of page wrapper; change this value */
	margin-bottom: 0px; /* distance from bottom of page wrapper */
	margin-left: 30px; /* AYY CHANGED IT CIQUEEE distance from left of page wrapper; change this value */
	padding: 19px; /* UHHH CHANGEEEEED this value */
	width: 1235px; /* this is how wide the section is around the headline; I did itt.... */
	height: 100px; /* this is how tall the section is around the headline; Changed it no woooooorrrrriessss */
        	font-size: 90px; /* changed it no worries! */
	font-family: Aclonica;
	color: purple;
	text-shadow: 4px 5px #cccccc; /* size of shadow and color */
  text-align:center;
}

h4 {
  background-color: #F3B7C3; /* yea I did it */
    border-color: #E33053; /* dsakfa; got lazyr */
    border-style: dashed; /* a;dfjlkfjalk;fjase */
    border-width: 3px; /* sureeee */
    margin-top: 10px; /* did it */
	margin-right: 30px; /* ayyy  */
	margin-bottom: 0px; /* distance from bottom of page wrapper */
	margin-left: 30px; /* sheesh D; */
	padding: 8px; /* yeaa yeeaaaa I did change this value */
	width: 1265px; /* this is how wide the section is around the paragraph; ay I DID CHANGE IT */
	height: 98px; /* im too lazy my brain is ded */
	font-size: 20px;
	font-family: Baumans;
	color: #000000; /* yea my hand to lazyblack */
}

p {
  	background-color: #F3B7C3; /* yea I did it */
    border-color: #E33053; /* dsakfa; got lazyr */
    border-style: dashed; /* a;dfjlkfjalk;fjase */
    border-width: 3px; /* sureeee */
    margin-top: 10px; /* did it */
	margin-right: 30px; /* ayyy  */
	margin-bottom: 0px; /* distance from bottom of page wrapper */
	margin-left: 30px; /* sheesh D; */
	padding: 8px; /* yeaa yeeaaaa I did change this value */
	width: 1265px; /* this is how wide the section is around the paragraph; ay I DID CHANGE IT */
	height: 90px; /* im too lazy my brain is ded */
	font-size: 18px;
	font-family: Baumans;
	color: #000000; /* yea my hand to lazyblack */
  
  background-image: url("https://photos-4.dropbox.com/t/2/AABXHMshcelsEGIy8zLJhKoaJhsL5lriiJqTafFg1lg0UA/12/699187057/jpeg/32x32/1/_/1/2/opacity%20crunchyrolllllll.jpg/EIS_nuEFGBUgBygH/PIW70kIO74W3QkgEWaP59ElW2XPmt-Zi8F0_lrEhVzQ?size=2048x1536&size_mode=3");
	background-attachment: fixed;
	background-repeat:no-repeat;
	background-position:center center;
  
}

/* add your img code here to style your image */

img {
    display:block;
    margin: auto;
    max-width: 90%;
    padding:50px;
    height: auto;
}

/* a normal link before it is clicked on */
a:link {
	text-decoration: none;
	color: purple;
}

/* a link after it has been clicked on */
a:visited {
	text-decoration: none;
	color: #435FED;
}

/* what the link looks like when a mouse is on it */
a:hover {
	text-decoration: underline;
	color: #7AA96A;
}

/* what the link looks like the moment it is clicked */
a:active {
	text-decoration: underline;
	color: green;
}



/* the thingyyyy */

div.polaroid {
  margin: auto;
  width: 80%;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin-bottom: 25px;
  margin-top:25px;
}

div.container {
  text-align: center;
  padding: 10px 20px;
}

Comments