forked from kikithedeveloper/HTML-CSSLesson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path004.html
More file actions
27 lines (27 loc) · 697 Bytes
/
004.html
File metadata and controls
27 lines (27 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<head>
<style>
body{margin:0;}
div{ width:100px;
height:200px;
display:inline-block;
border-top:5px;
border-top-color:black;
border-top-style:solid;
border-bottom:5px;
border-bottom-color:black;
border-bottom-style:solid;
margin-right:-4px;
}
</style>
<!-- margin-right setting is to remove spacing between divs -->
</head>
<body>
<div style="background-color:green;border-left: 5px;border-left-color:black;border-left-style:solid">
</div>
<div style="background-color:white">
</div>
<div style="background-color:red; border-right:5px;border-right-color:black;border-right-style:solid">
</div>
</body>
</html>