code_junkie

floating images in a layer, inside another layer

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <style> body {
  2. background-color:#000;
  3.  
  4. color: #FFF;
  5.  
  6. } a { font-family: "Broadway",
  7. Broadway,monospace; font-size:
  8. 14px; color:
  9.  
  10. #FFF; }
  11.  
  12. #images a {
  13.  
  14. width: 24.99%; display: block;
  15. float: left; text-align: center; }
  16.  
  17. #container; { top: 30%; left: 15%; }
  18. #main { position: absolute; width: 800px; height: 600px; }
  19. #logo { float:left; background-image:url("1.jpeg");
  20. width: 104; height: 100; }
  21.  
  22.  
  23. </style> <div id="main"> <div
  24. id="logo"> </div> <div
  25. id="container"> <div id="images">
  26. <a href="1.html" >
  27. <img src="1.gif" alt="x" width="181" height="173" border="0"
  28. /><br />
  29. One </a> <a href="2.html" >
  30. <img src="2.gif" alt="x" width="181" height="173" border="0"
  31. /><br />
  32. Two </a> <a href="3.html" >
  33. <img src="3.gif" alt="x" width="181" height="173" border="0"
  34. /><br />
  35. Three </a> <a href="4.html" >
  36. <img src="4.gif" alt="x" width="181" height="173" border="0"
  37. /><br />
  38. Four </a> </div></div></div>
Add Comment
Please, Sign In to add comment