CSS: Lesson 11 - Borders


You can add borders to div to make coupon like deals or having a border around nav bar.  You can find many uses for them.   to add a border  you can specify it as such:
border:2px black dashed;
or just use
border-style: dotted;
<html>
 <head>
 <title>Borders</title>


 <style >

 div {
 width:100px;
 height:100px;
 float:left;
 margin:20px;
 }

 .Yellow {
  background-color:yellow;
  border:2px black dashed;
 }
 
 .orange {
  background-color:orange;
  border-style: dotted;
   
 }
     .black{
          background-color:red;
  border-style: solid;
     }

 </style>

 </head>

 <body>

0 comments:

TUTORIALS

  • HTML
  • CSS
  • Javascript
  • JQuery
  • PHP
  • MySQL

Labels