
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
Set the style of the bottom border using CSS
To set the style of the bottom border, use the border-bottom-style property. The values for the border you can set is, dotted, double, dashed, solid, etc.
Example
You can try to run the following code to style bottom border
<!DOCTYPE html> <html> <head> <style> p.dotted {border-bottom-style: dotted;} p.double {border-bottom-style: double;} p.dashed {border-bottom-style: dashed;} p.solid {border-bottom-style: solid;} p.inset {border-bottom-style: inset;} p.outset {border-bottom-style: outset;} </style> </head> <body> <p class = "dotted">Dotted bottom border.</p> <p class = "double">Double bottom border.</p> <p class = "dashed">Dashed bottom border.</p> <p class = "solid">Solid bottom border.</p> <p class = "inset">Inset bottom border.</p> <p class = "outset">Outset bottom border.</p> </body> </html>
Output
- Related Articles
- Change the style of bottom border with CSS
- Set the style of the border with CSS
- Usage of border-bottom-style property in CSS
- How to set the style of the bottom border with JavaScript?
- Set bottom-right corner border with CSS
- Set bottom-left corner border with CSS
- Set the width of the left border using CSS
- Set the color of the right border using CSS
- Change the color of the bottom border with CSS
- Change the width of the bottom border with CSS
- The border-style Property in CSS
- Change the style of top border with CSS
- Change the style of left border with CSS
- Change the style of the right border with CSS
- Animate CSS border-bottom property

Advertisements