You can do this with box-shadow
.
Output:
CSS:
#borders {
border-bottom: 20px solid black;
box-shadow: 20px 0 0 0 red;
height: 150px;
margin: 30px;
width: 150px;
}
HTML:
<div id="borders"></div>
More Related Contents:
- Can I debug by CSS code in easy way for beginner?
- Setting columns in bootstrap grid
- How to write a:hover in inline CSS?
- Change color of PNG image via CSS?
- Use images instead of radio buttons
- Positions fixed doesn’t work when using -webkit-transform
- Is it possible to have two background colors for a single html element? [duplicate]
- Why does overflow:hidden not work in a ?
- Rotate objects around circle using CSS?
- How to prevent scrollbar from repositioning web page?
- Fixed header, footer with scrollable content
- Two inline-block, width 50% elements wrap to second line [duplicate]
- How to hide image broken Icon using only CSS/HTML?
- Display HTML child element when parent element is display:none
- Why does overflow hidden stop floating elements escaping their container?
- How to draw a trapezium/trapezoid with css3?
- All widths set to width of widest element
- HTML-Tooltip position relative to mouse pointer
- text-align: right; only for placeholder?
- How to calculate required hue-rotate to generate specific colour?
- CSS Styling text areas like notebook-look
- Generate scroll bar for overflow to the left
- Bootstrap full-width text-input within inline-form
- Can you style html form buttons with css?
- Internet Explorer and clip-path
- Pseudo class :hover does not work in IE7
- How to get rid of x and up/down arrow elements of a input date?
- HTML CSS Invisible Button
- CSS After Element to insert mailto link?
- Which browsers support data URIs and since which version?