Posted By


LukeLarsen on 02/27/08

Tagged


Statistics


Viewed 519 times
Favorited by 0 user(s)

css - three col


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #container{
  2. background-color:#0ff;
  3. float:left;
  4. width:500px;
  5. border-left:150px solid #0f0; »
  6. /* The width and color of the left rail */
  7. border-right:200px solid #f00; »
  8. /* The width and color of the right rail */
  9. }
  10. #leftRail{
  11. float:left;
  12. width:150px;
  13. margin-left:-150px;
  14. position:relative;
  15. }
  16. #center{
  17. float:left;
  18. width:500px;
  19. margin-right:-500px;
  20. }
  21. #rightRail{
  22. float:right;
  23. width:200px;
  24. margin-right:-200px;
  25. position:relative;
  26. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.