Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. How do I ensure that all the images are aligned correctly in differing browser windows/resolutions?
  2. <!doctype html>
  3.  
  4. <html>
  5. <head>
  6. <meta charset="UTF-8"/>
  7. <title> Foodstant Delivery </title>
  8. <link rel="stylesheet" type="text/css" media="screen" href="stylo.css" />
  9. <link rel="shortcut icon" href="favicon.ico" />
  10. </head>
  11.  
  12. <body>
  13.  
  14. <figure>
  15. <img id="del" src="images/delivery12.png" alt="Delivery" />
  16. <img id="foo" src="images/foostant2.png" alt="Foodstant" />
  17. <img id="chi" src="images/logochick.png" alt="Chick" />
  18. </figure>
  19.  
  20. <nav id="hnavbar">
  21. <ul id="hli">
  22. <li><a id="home" href="index.html">Home</a></li>
  23. <li><a id="menu" href="menu.html">Menu</a></li>
  24. <li><a id="cu" href="ContactUs.html">Contact Us</a></li>
  25. <li><a id="au" href="aboutus.html">About Us</a></li>
  26. <li><a id="tc" href="TC.html">Terms & Conditions</a></li>
  27. <li><a id="job" href="jobs.html" target="_blank">Jobs</a></li>
  28. <li><a id="yo" href="order.html">Your Order</a></li>
  29. </ul>
  30. </nav>
  31.  
  32. </body>
  33.  
  34. /* Foodstant Delivery */
  35.  
  36. * {
  37. margin: 0;
  38. padding:0;
  39. }
  40. body { font-family: 'Comic Sans MS',Verdana,Helvetica,Courier New,sans-serif;
  41. background:url("images/bg.jpg");
  42. }
  43. /* home page */
  44. #hnavbar{
  45. font-size:2em;
  46. margin-top:-13em;
  47. }
  48. #hnavbar ul li {
  49. list-style-type:none;
  50. width:325px;
  51. display:inline;
  52. padding:0 13px 0 13px;
  53. }
  54. #chi {
  55. position:relative;
  56. top:-30em;
  57. left:10em;
  58. }
  59. #foo {
  60. position:relative;
  61. top:1em;
  62. left:-11em;
  63. }
  64. #del {
  65. position:relative;
  66. top:10.5em;
  67. left:26em;
  68. }
  69. /* home page */
  70.  
  71. #hnavbar { position: relative; } //all "absolute" children will be relative to this hnavbar
  72. #home, #menu, ... { position: absolute; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement