login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Div probleempje

Offline kasper90 - 26/06/2006 10:47
Avatar van kasper90Nieuw lid test.php
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. <link href="style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8.  
  9. <body>
  10. <div class="midden">
  11. <div class="logo"></div>
  12. <div class="links"> Home | Nieuws | Informatie | Forum | Foto's </div>
  13. </div>
  14. </body>
  15. </html>


style.css
  1. body {
  2. font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
  3. font-size: 10pt;
  4. background-color: #EFF3FC;
  5. }
  6.  
  7. div.midden {
  8. width: 990px;
  9. height: 100%;
  10. margin: auto;
  11.  
  12. }
  13. div.logo {
  14. position:relative;
  15. width: 990px;
  16. height: 175px;
  17. background-image: url(img/logo.jpg);
  18. margin: 0px;
  19. }
  20.  
  21. div.links {
  22. position: relative;
  23. width: 990px;
  24. height: 20px;
  25. background-color: #CCCCCC;
  26. text-align: center;
  27. }


output: www.meputrecht.nl/test.php
Probleem: Ik wil dat de site direct tegen de bovenkant aan staat, maar nu zit er nog zo'n 15 px witruimte tussen.

1 antwoord

Gesponsorde links
Offline eXziBit - 26/06/2006 10:49
Avatar van eXziBit Onbekend Style.css:
  1. body {
  2. font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
  3. font-size: 10pt;
  4. background-color: #EFF3FC;
  5. margin: 0;
  6. }
  7.  
  8. div.midden {
  9. width: 990px;
  10. height: 100%;
  11. margin: auto;
  12.  
  13. }
  14. div.logo {
  15. position:relative;
  16. width: 990px;
  17. height: 175px;
  18. background-image: url(img/logo.jpg);
  19. margin: 0px;
  20. }
  21.  
  22. div.links {
  23. position: relative;
  24. width: 990px;
  25. height: 20px;
  26. background-color: #CCCCCC;
  27. text-align: center;
  28. }
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.214s