Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<div id="content">
<p>This is inside the content div.</p>
<p>This, too, is inside the content div.</p>
<div id="absrel"><p>This absrel div will be within the content div</p>
</div>
</div>
<div id="other">This is outside the content div.</div>
body {
margin: 0px 0px 0px 25px;
padding: 0px 0px 0px 0px;
font-family: verdana, arial, helvetica, sans-serif;
color: #ccc;
background-color: #333;
}
#content {
position: relative;
top: 0px;
left: 0px;
padding: 10px;
margin: 20px;
background: #666;
border: 5px solid #ccc;
width: 400px;
}
#absrel{
position: absolute;
bottom: 15px;
right: 20px;
padding: 10px;
margin: 20px;
background: #AAA;
border: 5px solid #ccc;
width: 100px;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<div style="position: absolute; width: 50px; height: 50px; top: 0; left: 0; background: red;"></div>
<div style="position: relative; margin: 200px auto; width: 400px; height: 200px; border: 1px solid black;">
<div style="position: absolute; width: 50px; height: 50px; top: 0; left: 0; background: brown;"></div>
<div style="position: absolute; width: 50px; height: 50px; bottom: 0; right: 0; background: purple;"></div>
</div>
<div style="position: absolute; width: 50px; height: 50px; bottom: 0; right: 0; background: blue;"></div>