Semester 3 pog
This commit is contained in:
21
Semester 1/Chapter ZIPs/HTML/chapter7/relative.html
Normal file
21
Semester 1/Chapter ZIPs/HTML/chapter7/relative.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Relative Positioning</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
h1 { background-color:#cccccc;
|
||||
padding:5px;
|
||||
color: #000000;
|
||||
}
|
||||
p { position: relative;
|
||||
left:30px;
|
||||
font-family:Arial,sans-serif;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Relative Positioning</h1>
|
||||
<p>This paragraph uses CSS relative positioning to be placed 30 pixels in from the left side.</p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user