html div

Definition and Usage.
The div element is a generic container for flow content that by itself does not represent anything.
1
2
3
<div id="div1">
the div element is very often used together with CSS, to layout a web page.
</div>
the div element is very often used together with CSS, to layout a web page.

Add background and border color to div element.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<style>
.box1{
 width:200px;
 height:100px;
 font-size: 12px;
 color:black;
 background:#D7E5F0;
 border:.1em solid red;
}
</style>
<body>
<div id="div1" class="box1">
the div element is very often used together with CSS, to layout a web page.
</div>

the div element is very often used together with CSS, to layout a web page.


see how to:
Change div border width, style and color
specify border-color for each border
specify border-style for each border
specify border-width for each border


If this post was good and helpful for you, Please give it Like.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment