Guest User

Untitled

a guest
Mar 15th, 2011
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.07 KB | None | 0 0
  1. #latest{    
  2.     margin: 0 auto;
  3.     width: 50%;
  4.     border: 1px solid black
  5. }
  6. #latest .title{
  7.     background-color: #285FA5;
  8.     color: white;
  9.     height: 20px;
  10.     padding: 0px 10px 0px 10px;
  11. }
  12. #latest .content{
  13.     background-color: #EEEEEE;
  14.     padding: 10px 10px 10px 10px;
  15. }
  16.  
  17. <div id="latest" class="myCorner" >
  18.     <div class="title">Latest Logos</div>
  19.     <div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
  20. </div>
  21.  
  22. Using the above example will not create the round edges with the background color, meaning that the border of #latest will be cut.
Advertisement
Add Comment
Please, Sign In to add comment