atulthakre Posted June 11, 2014 Share Posted June 11, 2014 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 More sharing options...
dsonesuk Posted June 11, 2014 Share Posted June 11, 2014 You can turn it into inline, or float it with clear: both; so it stretches to content and not full available width which as a block element it does by default. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now