Home | Computer Science

<
CSS Border Side

Defination

n CSS, there are also properties for specifying each of the borders (top, right, bottom, and left).


BORDER SIDE Syntax of Border Side is
h1{
border-top-style : ;
border-left-width : ;
border-right-color: ;
}
Types of Border Side are
For eg:
Program
INPUT

<!DOCTYPE html> <html> <head> <style> body { text-align: center; } /* Four values */ p.four { border-style: dotted solid double dashed; } /* Three values */ p.three { border-style: dotted solid double; } /* Two values */ p.two { border-style: dotted solid; } /* One value */ p.one { border-style: dotted; } </style> </head> <body> <p class="one">Some text.</p> <p class="two">Some text.</p> <p class="three">Some text.</p> <p class="four">Some text.</p> </body> </html>

OUTPUT