PayneLess_Designs

PayneLess Designs - Images - Side By Side and With Links

Sep 8th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.58 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  4. <title>Images - Side By Side and With Links</title>
  5. <meta name="description" content="">
  6. <meta name="keywords" content="">
  7. <meta name="author" content="">
  8. <style type="text/css">
  9. * { margin: 0; padding: 0; border: 0; }
  10.  
  11. #wrapper {
  12. width: 960px;
  13. margin: 0 auto;
  14. }
  15.  
  16. h1, h3, p {
  17. margin: 3% 0;
  18. text-align: center;
  19. }
  20. </style>
  21. </head><body>
  22. <div id="wrapper">
  23.  
  24. <h1>Images - Side By Side and With Links</h1>
  25. <p>Note: Do NOT <a href="http://en.wikipedia.org/wiki/Inline_linking" title="Hotlinking Information">hotlink</a> to images!</p>
  26.  
  27. <h3>Side by Side Images:</h3>
  28. <div style="width: 480px; height: 360px; margin: 0 auto;"><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></a><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></></div>
  29.  
  30. <h3>Side by Side and Spaced 50 Pixels</h3>
  31. <div style="width: 530px; height: 360px; margin: 0 auto;"><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></a><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="margin-left: 50px; width: 240px; height: 180px;" alt=""></a></div>
  32.  
  33. <h3>Side by Side Images with Comments</h3>
  34. <div style="width: 720px; height: 360px; margin: 0 auto; font-family: arial, 'times new roman', sans-serif; font-size: 1.25em; color: #080;"><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></a><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></a><a href="#nogo" title="Mouseover Description"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px;" alt=""></a><p style="float: left; margin-left: 60px;">Comment 1</p><p style="float: left; margin-left: 120px;">Comment 2<p style="float: left; margin-left: 180px;">Comment 3</p></div>
  35.  
  36. <h3>Image with Right-Side Links:</h3>
  37. <div style="width: 350px; height: 180px; margin: 0 auto; border: 1px solid #f0f;"><img src="http://i.imgur.com/Ii3Oy.jpg" style="width: 240px; height: 180px; float: left; clear: right;" alt=""><p><a href="#nogo" title="Mouseover Description">Link 1</a><br><a href="#nogo" title="Mouseover Description">Link 2</a></p></div>
  38.  
  39. </div>
  40. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment