Creation of Horizontal and Vertical line in HTML

Creation of Horizontal and Vertical line in HTML
You can use the following code for the creation of horizontal and vertical line in html.

<html>
<head>
<title>Vertical line and horizontal line</title>

<style type="text/css">
.vertical-line1
{
/*display: inline;*/
background-color: #000;
width: 1px;
height: 100%;
}

.vertical-line2
{
/*display: inline;*/
background-color: #000;
width: 3px;
height: 233px;
}

</style>

<body>
<h2>How to create Vertical and Horizontal Line in Html</h2>
Horizontal Lines Below
<p>
<div style="border-top:2px solid #736F6E; border-left:2px solid #736F6E;"></div>
<p></p><br>
<div style="border-top:2px solid #151B54; border-left:2px solid #151B54;"></div>

<p></p><br>

<div style="border-bottom: 2px solid #736F6E;border-left: 2px solid #151B54;border-right: 2px solid #151B54;border-top: 2px solid #151B54;width: 335px;height: 135px;">
Some Text
<p></p>
<div style="border-top:2px solid #736F6E; border-left:2px solid #736F6E;"></div>
</div>

<p></p><br>

Vertical Line

<div class="vertical-line1"></div>

<p></p><br>

<div class="vertical-line2"></div>
</body>
</head>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s