Jump to content

How to change border lenght using css ?


atulthakre

Recommended Posts

How to change border lenght using css ?

i have a simple code shown below

 

HTML and CSS

<h4>Headin</h4>
h4{border-bottom:2px solid red;}

Now this code will give a border below <h4> tag but how can i adjust the lenght of that border using css ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...