Last active
February 24, 2024 13:54
-
-
Save thinkphp/caa7f0de00feaf64732185531885bb86 to your computer and use it in GitHub Desktop.
layout 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
<!DOCTYPE html> | |
<head> | |
<title>HTML Layout</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: arial | |
} | |
header { | |
background-color: lightgreen; | |
color: white; | |
text-align: center; | |
padding: 40px; | |
font-size: 30px | |
} | |
footer { | |
background-color: green; | |
color: white; | |
padding: 30px; | |
text-align: center; | |
} | |
nav { | |
float: left; | |
background: orange; | |
width: 30%; | |
height: 300px; | |
padding: 20px; | |
} | |
article { | |
float: left; | |
width: 70%; | |
height: 300px; | |
padding: 20px; | |
background-color: yellow | |
} | |
section:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
nav ul { | |
list-style-type: none; | |
font-size: 30px; | |
} | |
</style> | |
</head> | |
<html> | |
<body> | |
<header> | |
<h2>Orase: Header</h2> | |
</header> | |
<section> | |
<nav> | |
<ul> | |
<li><a href="#">Bucharest</a></li> | |
<li><a href="#">Timisoara</a></li> | |
<li><a href="#">Caransebes</a></li> | |
<li><a href="#">Brasov</a></li> | |
<li><a href="#">Sibiu</a></li> | |
</ul> | |
</nav> | |
<article> | |
<h1>London</h1> | |
<p> | |
London is the capital and largest city of England, and the United Kingdom, with a population of around 8.8 million,[1] and the largest city in Western Europe by metropolitan area, with a population of 14.8 million.[9][note 1] It stands on the River Thames in south-east England at the head of a 50-mile (80 km) estuary down to the North Sea and has been a major settlement for nearly two millennia.[ | |
</p> | |
<p> | |
London is the capital and largest city of England, and the United Kingdom, with a population of around 8.8 million,[1] and the largest city in Western Europe by metropolitan area, with a population of 14.8 million.[9][note 1] It stands on the River Thames in south-east England at the head of a 50-mile (80 km) estuary down to the North Sea and has been a major settlement for nearly two millennia.[ | |
</p> | |
</article> | |
</section> | |
<footer> | |
<h2>Footer: @copyright 2024</h2> | |
</footer> | |
</body> | |
<html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment