Lena Stanley posted: " The CSS border-top-style property settles the style of an element's top border. Demo: https://codepen.io/lenasta92579651/pen/OJgpemd Syntax: border-top-style: dotted|dashed|solid|double|groove|ridge|inset|outset|none|hidden; none (de"
<!DOCTYPE html> <html> <head> <style> div { border-top-style: dotted; } p { border-style: solid; border-top-style: dotted; } </style> </head> <body> <div>A div element with a dotted top border</div> <p>A paragraph with a dotted top border.</p> </body> </html>
Output:
A div element with a dotted top border
A paragraph with a dotted top border.
Example2:
A double top border:
<!DOCTYPE html> <html> <head> <style> div { border-top-style: double; } p { border-style: solid; border-top-style: double; } </style> </head> <body> <div>A div element with a double top border</div> <p>A paragraph with a double top border.</p> </body> </html>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.