half border bottom

div {
    width: 500px;
    height: 100px;
    position: relative;
    padding-top: 20px;
    margin-top: 50px;
}

div::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    width: 50%;
    left: 25%;
    border-top: 1px solid red;
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
half bottom border how to add a border to only half the bottom in css css border bottom only half css half bottom border how to make bottom border on half an element how to get half border bottom in css how to have half of the bottom border in css border bottom make 50 half width border bottom color set div bottom border half width make only bottom border css add half border bottom css css only half border at bottom border bottom half width half border bottom css border bottom width half thin border bottom css border top bottom css how to add a border around a div and make a div take up half a screen css border only on bottom css border top and bottom only border bottom gam css border bottom half size css border top half width div border bottom row border bottom in html border bottom table how to get bottom boarder in css tr bottom border td border bottom half width how to override border-bottom css border-bottom full width bottom border in css only bottom border css css div border bottom wave border-bottom-style double border bottom style css css border bottom width bottom border width css border only on the bottom css border bottom and top title border bottom half css how to make border half width css make border bottom half width border bottom bottom border entire page half border bottom how to use half border in the bottom of the div how to keep border half width of the div show the border only half width of the container css border half width border css half width css half border bottom half border bottom using css after half bottom border css
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source