Author -  Sai gowtham

How to add a vertical line in Html using CSS

In this tutorial, we will learn how to add a vertical line to an HTML page with the help of CSS.

Consider we have a div element with a container class.

<div class="container"></div>

To add a vertical line to the div element, we can use the height and border-left CSS properties.

Here is an example:

.container{
   height: 50px;
   border-left: 1px solid #0000;
}

The above code adds the vertical line on the left side of an HTML element.

In case, if you want to add the vertical line to the right side of an element, we can use the border-right CSS property.

.container{
   height: 50px;
   border-right: 1px solid #0000;
}

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2023 (Beginner + Advanced)
JavaScript - The Complete Guide 2023 (Beginner + Advanced)
116,648 students enrolled
52 hours of video content
$14.99 FROM UDEMY
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
631,582 students enrolled
49 hours of video content
$24.99 FROM UDEMY
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
203,937 students enrolled
31.5 hours of video content
$14.99 FROM UDEMY