HTML and CSS Reference
In-Depth Information
top
left
height
height
width
Figure 14.23 Absolute positioning.
EXAMPLE 14.22
<html>
<head>
<title>layers</title>
<style type="text/css">
1
#first {
background-color: red;
border-style: solid;
font-weight:bold;
top: 20;
2
position: absolute;
left: 20;
height: 100;
width: 100;
}
3
#second {
background-color: blue;
border-style: solid;
font-weight:bold;
top: 30 ;
position: absolute;
left: 60;
height: 100;
width: 100;
}
 
 
Search WWH ::




Custom Search