Dashed border : border « CSS « HTML / CSS

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
HTML / CSS » CSS » border 
Dashed border
   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">

body {
 font-family: Arial, Helvetica, sans-serif;
 color: #666666;
 font-size: 12px;
 padding: 0; margin: 0;
 background: #eef1ed;
}
#wrapper {
 width: 770px;
 margin: auto;
 border: 1px solid #eef1ed;
 background: url(images/forest.jpgrepeat-x bottom;
}
/* Begin Parent Left Column --------------------------------------------------------------------- */
#leftcolumn 
 padding: 10px;
 display: inline; /* IE Fix */
 float: left;
 border-left: 1px dashed #ccc;
 border-right: 1px dashed #ccc;
 border-bottom: 1px dashed #ccc;
 border-right: 1px dashed #ccc;
 background-color: #fff;
}
#leftcolumn .logo {
 margin: 0px 0px 10px 0px;
 width: 180px;
 border: 1px dashed #ccc;
 background-color: #EEF1ED;
}
#leftcolumn .logo img display: block; }
#leftcolumn .leftbox2 /* Generic Box */
 margin: 0px 0px 10px 0px;
 border-top: 1px dashed #ccc;
}
/* Begin Left Navigation */
#leftcolumn ul.mainnav 
 margin: 0px;
 padding: 0;
 list-style: none;
}
#leftcolumn ul.mainnav .heading {
 background-color: #9FAF9A;
 padding: 5px;
 color: #fff;
 font-size: 16px;
}
#leftcolumn ul.mainnav li 
 border-bottom: 1px dashed #ccc;
 border-right: 1px dashed #ccc;
 border-left: 1px dashed #ccc;
}
#leftcolumn ul.mainnav li a:link, #leftcolumn ul.mainnav li a:visited
 color: #333;
 background-color: #F9F9F9;
 text-decoration: none;
 padding: 5px;
 display: block;
}
#leftcolumn ul.mainnav li a:hover
 display: block;
 background-color: #EEF1ED;
 text-decoration: none;
 padding: 5px;
}
/* End Left Navigation */
/* End Parent Left Column ----------------------------------------------------------------------- */


/* Begin Parent Right Column ----------------------------------------------------------------------- */
#rightcolumn {
 border-left: 1px dashed #ccc;
 border-right: 1px dashed #ccc;
 margin: 0 0 0 10px;
 display: inline; /* IE Fix */
 width: 514px;
 float: left;
 background-color: #fff;
}
#rightcolumn p.content {
border: 1px solid #fff;
 margin: 10px;
}
#rightcolumn p.content img {
 float: left;
 margin: 0px 10px 10px 0px;
}
#rightcolumn h1 {
 margin: 10px;
 padding: 3px 10px;
 border: 1px dashed #ccc;
 font-size: 24px;
 background: #EEF1ED;
}
#rightcolumn .banner {
 margin: 10px;
 border: 1px dashed #ccc;
 background-color: #EEF1ED;
}
#rightcolumn .banner img display: block; }
/* End Parent Right Column ----------------------------------------------------------------------- */
.clear {
 clear: left;
}
#footer {
 background: #fff;
 border: 1px dashed #ccc;

}
#footer .text {
padding: 10px;
 margin: auto;
 width: 710px;
 border: 1px solid #fff;
}
#footer .text a:link, #footer .text a:visited color: #333; text-decoration: none; }
#footer .text a:hover {  color: #333; text-decoration: underline; }
#footer .text img border: none ; }
</style>
</head>
<body>


   <!-- Begin Wrapper -->
   <div id="wrapper">
   
      <!-- Begin Left Column -->
    <div id="leftcolumn">
    
       <!-- Begin Logo -->
       <div class="logo">
        <img src="http://java2s.com/style/logo.png" alt="Code-Sucks.com - logo" />
     </div>
     <!-- End Logo -->
     
     <!-- Begin Left Box -->
       <div class="leftbox">
        <ul class="mainnav">
         <li class="heading">Heading One </li>
         <li><a href="#">Link Two</a></li>
         <li><a href="#">Link Three</a></li>
         <li><a href="#">Link Four</a></li>
         <li><a href="#">Link Five</a></li>
         <li><a href="#">Link Six</a></li>
         <li><a href="#">Link Seven</a></li>
         <li class="heading">Heading Two </li>
         <li><a href="#">Link Two</a></li>
         <li><a href="#">Link Three</a></li>
         <li><a href="#">Link Four</a></li>
         <li><a href="#">Link Five</a></li>
         <li><a href="#">Link Six</a></li>
         <li><a href="#">Link Seven</a></li>
      </ul>
     </div>
     <!-- End Second Left Box -->
    
    </div>
    <!-- End Left Column -->
    
    <!-- Begin Right Column -->
    <div id="rightcolumn">
    
       <!-- Begin Top Banner -->
       <div class="banner">
        <img src="http://java2s.com/style/logo.png" alt="Forest banner" />
     </div>
     <!-- End Top Banner -->
     
     <h1>Keith Donegan with Pale Forest </h1>
     <p class="content">
        <img src="http://java2s.com/style/logo.png" alt="Code-Sucks.com - Thumbnail" />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque 
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
      <br /><br />
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
     </p>
     
     <h1>CSS / XHTML Strict Templates </h1>
     <p class="content">
        <img src="http://java2s.com/style/logo.png" alt="Code-Sucks.com - Thumbnail" />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque 
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
      <br /><br />
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
     </p>
     
     <h1>CSS Layouts </h1>
     <p class="content">
        <img src="http://java2s.com/style/logo.png" alt="Code-Sucks.com - Thumbnail" />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque 
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
      <br /><br />
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
     </p>
     
     <h1>Pale Forest </h1>
     <p class="content">
        <img src="http://java2s.com/style/logo.png" alt="Code-Sucks.com - Thumbnail" />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque 
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
      <br /><br />
      laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
      architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas 
      sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione vol. 
     </p>
    
    </div>
    <!-- End Right Column -->
      
    <div class="clear"></div>
    
   </div>  
   <!-- End Wrapper -->
   
   <div id="footer">
      <p class="text">
         <a href="">Valid XHTML</a> &nbsp;<a href="">Valid CSS</a>Copyright </p>
   </div>


   
</body>

</html>

   
    
    
  
Related examples in the same category
1.'border' Example
2.border width, border style shorthand four values
3.border width, border style shorthand one value
4.border width, border style shorthand, three values
5.border width, border style shorthand two values
6.border: thin solid rgb(0, 0, 0)
7.border: 1em solid black
8.border: medium solid black
9.border: thin solid black
10.border: 1px solid rgb(0, 0, 0);
11.border: 1px solid crimson;
12.border: 1px solid gold;
13.border: 1px solid rgb(200, 200, 200);
14.Style sheet for border properties
15.border-color: red green purple blue; border-width: thin medium thick .25cm;
16.border overwrite
17.Use border-bottom to draw line
18.border: 1px dashed #8a795d;
19.Using image for border
20.Border page border
21.border: 1px solid green;
22.When no border-color is specified, the border color is the value of the color property.
23.border-style: solid dashed double inset;
24.Border with default color
25.border sets the size, pattern, and color of the border surrounding the padding.
26.border: thick solid black
27.Border shortcut setting
28.border shortcut property takes three space-delimited values that represent the border's width, style, and color.
29.border: 40px double black; creates a black, 40-pixel, double-line border.
30.Border with specific setting for four directions
31.This paragraph has a 1 pixel thick, solid black border around it.
32.Border direction
33.Set border to '3px dotted #33333;'
34.Body border: 50px #666 ridge
35.Add border for different columns together
36.Combined style
37.border:none is the default.
38.Border's width cannot be negative because they are inside the margin.
39.Use nested border
40.border property, can be used to specify border-width, border-style, and border-color for all four sides at once.
41.Border cascade
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.