Created
March 18, 2022 14:07
-
-
Save phloreenm/fa75c758d70629a5af51607bcd271d4e to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header { | |
background: lightblue; | |
} | |
section { | |
background: #ccc; | |
} | |
footer { | |
position: absolute; | |
bottom: 0px; | |
left: 0px; | |
background: lightgreen; | |
} | |
.logo { | |
position: absolute; | |
bottom: 0px; | |
right: 0px; | |
background: yellow; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Position the footer at the bottom and the logo in the bottom right corner of the page --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Absolute Positioning</title> | |
<link rel='stylesheet' href='index.css'> | |
</head> | |
<body> | |
<div class="logo"> | |
<span>Our Logo</span> | |
</div> | |
<header> | |
<p>A page header is a common place to put navigation menus and company logos.</p> | |
</header> | |
<section> | |
<p>Oftentimes a page will have its body divided into a header, a number of sections, and a footer. This particular section is the only one on this page, but most pages would have several sections that logically divide the page into chunks.</p> | |
</section> | |
<footer>The footer of the page sits at the very bottom</footer> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment