Menu

Downloads

Links



Borders



How do I use borders with CSS?

Don't forget the start tags and end tags. All the codes on this page go in between these two tags!
Start Tag
<style type="text/css">
End Tag
</style>



Basic Borders
Add this attribute into your text, link or image tags to add a uniform border.

border: 5px solid #000000;


Specific Bordering
Add this attribute into your text to add borders that are more detailed. You can use all 4, or only 1, or a combination of them.

border-bottom: 5px solid #000000;
border-top: 5px solid #000000;
border-right: 5px solid #000000;
border-left: 5px solid #000000;