login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Header en banner

Offline Rob - 28/09/2005 21:32
Avatar van RobHTML interesse
  1. <link rel="stylesheet" href="css.css" type="text/css" />
  2. </head>
  3.  
  4. <body>
  5. <div class="container">
  6. <div class="header"><img src="banner.gif" alt="0"></


Het probleem is dat mijn banner wel mooi in het midden (rechts-links) komt te staan, maar dat hij niet mooi in het midden (boven-onder) komt te staan.

Kan iemand mij helpen?

NB: Mijn bannerformaat is 468 x 60

7 antwoorden

Gesponsorde links
Offline marten - 28/09/2005 21:34
Avatar van marten Beheerder ZOu je dan je css eens willen posten?
Offline Steven - 28/09/2005 21:34
Avatar van Steven HTML interesse valign="middle"
Offline Rob - 28/09/2005 21:41
Avatar van Rob HTML interesse @marten dit is mijn css

  1. <html>
  2. <head>
  3. <title>Pokemon site</title>
  4. <link rel="stylesheet" href="css.css" type="text/css" />
  5. </head>
  6.  
  7. <body>
  8. <div class="container">
  9. <div class="header"></div>
  10.  
  11. <div class="box">
  12. <div class="boxtop">Boxtop</div>
  13. <div class="boxcontent">Boxcontent</div>
  14. <div class="boxbottom"></div>
  15.  
  16. <div class="boxtop">Boxtop</div>
  17. <div class="boxcontent">Boxcontent</div>
  18. <div class="boxbottom"></div>
  19. </div>
  20.  
  21. <div class="content">
  22. <div class="contenttop">contenttop</div>
  23. <div class="contentmid">contentcontent</div>
  24. <div class="contentbottom"></div>
  25. <div class="footer">Copyright Ultimatum, 2005 - 2006 ©</div>
  26. </div>
  27.  
  28. <div class="box">
  29. <div class="boxtop">Boxtop</div>
  30. <div class="boxcontent">Boxcontent</div>
  31. <div class="boxbottom"></div>
  32.  
  33. <div class="boxtop">Boxtop</div>
  34. <div class="boxcontent">Boxcontent</div>
  35. <div class="boxbottom"></div>
  36. </div>
  37.  
  38. </div>
  39. </body>
  40. </html>
Offline marten - 28/09/2005 21:44
Avatar van marten Beheerder nee dat is je code

Post hiervan de code --> bestand --> css.css
Offline Rob - 28/09/2005 21:48
Avatar van Rob HTML interesse
  1. body {
  2. font-family: Arial, Helvetica, sans-serif;
  3. font-size: 10px;
  4. color: #000000;
  5. text-align: center;
  6. background-color: #A35A3D;
  7.  
  8. }
  9.  
  10. .container {
  11. width: 1000px;
  12. margin-left: auto;
  13. margin-right: auto;
  14. }
  15.  
  16. width: 1000px;
  17. height: 200px;
  18. background-image: url("images/header.gif");
  19. margin-left: auto;
  20. margin-right: auto;
  21. border: 1px #000000 solid;
  22. }
  23.  
  24. .box {
  25. margin-top: 10px;
  26. width: 150px;
  27. float: left;
  28. }
  29.  
  30. .boxtop {
  31. background-image: url("images/top.gif");
  32. background-repeat: repeat-x;
  33. height: 20px;
  34. width: 150px;
  35. float: left;
  36. border: 1px #000000 solid;
  37. }
  38.  
  39. .boxcontent {
  40. background-image: url("images/content.gif");
  41. width: 150px;
  42. float: left;
  43. border-left: 1px #000000 solid;
  44. border-right: 1px #000000 solid;
  45. }
  46.  
  47. .boxbottom {
  48. background-image: url("images/bottom.gif");
  49. width: 150px;
  50. height: 15px;
  51. float: left;
  52. margin-bottom: 5px;
  53. border: 1px #000000 solid;
  54. }
  55.  
  56. .content {
  57. margin-top: 10px;
  58. width: 690px;
  59. float: left;
  60. margin-right: 5px;
  61. margin-left: 5px;
  62. }
  63.  
  64. .contenttop {
  65. background-image: url("images/top.gif");
  66. height: 20px;
  67. width: 690px;
  68. float: left;
  69. border: 1px #000000 solid;
  70. }
  71.  
  72. .contentmid {
  73. background-image: url("images/content.gif");
  74. width: 690px;
  75. float: left;
  76. border-left: 1px #000000 solid;
  77. border-right: 1px #000000 solid;
  78. }
  79.  
  80. .contentbottom {
  81. background-image: url("images/bottom.gif");
  82. width: 690px;
  83. height: 15px;
  84. float: left;
  85. border: 1px #000000 solid;
  86. margin-bottom: 10px;
  87. }
  88.  
  89. .footer {
  90. width: 690px;
  91. height: 20px;
  92. background-image: url("images/footer.gif");
  93. background-repeat: repeat-x;
  94. border: 1px #000000 solid;
  95. }
Offline Ultimatum - 28/09/2005 21:51
Avatar van Ultimatum PHP expert dan doe je bij header: margin-top: aantalpixels;
Offline Steven - 28/09/2005 21:53
Avatar van Steven HTML interesse http://sitemast...mp;id=9548
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.198s