The tutorial to be introduced in this article is about the layout of absolute CSS positioning. The advantage of absolute CSS positioning is that the content displayed inside the page is not distorted no matter how large or small the webpage window is, browsing is replaced by dragging bars. When there are high requirements on layout display, absolute positioning is still very good. The CSS code using the absolute positioning technology will tell you how to do it.
See the example:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <Html xmlns =" http://www.w3.org/1999/xhtml "> <Head> <meta http-equiv =" Content-Type "content =" text/html; charset = gbk "/> <title> absolutely find the css layout instance-Liehuo.net </title> <style> body {margin: 0 ;}# header {position: absolute; top: 2px; left: 5px; height: 80px; width: 780px; }# nav {position: absolute; top: 87px; left: 5px; height: 400px; width: 180px ;} # content {position: absolute; top: 87px; left: 195px; height: 400px; width: 590px ;}# footer {position: absolute; top: pixel PX; left: 5px; height: 80px; width: 780px;} div {border: 2px solid #000000 ;} </style>
Tip: the code can be modified before running!