html/css site scrolt niet verticaal

Pagina: 1
Acties:
  • 112 views

Acties:
  • 0 Henk 'm!

  • AldoRaine
  • Registratie: Augustus 2007
  • Laatst online: 31-08 14:23
Ik heb dus een site gemaakt in css voor een project, maar de site scrolt niet.
Als je de site opent in een venster kleiner dan het main gedeelte van mijn website dan houd de site gewoon op, en kun je niet naar beneden scrollen.
Afbeeldingslocatie: http://img3.imageshack.us/img3/2131/capture1cj.png
Je ziet dus maar een deel van de site, en je kunt niet verticaal/horizontaal scrollen.

Dit is de code die ik gebruik

Cascading Stylesheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
body, html {
background-image:url('afbeeldingen/stripes.png');
background-repeat:repeat;
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
border: 0px;
}
#banner {
background: url('afbeeldingen/banner.png') no-repeat;
position: absolute;
overflow: auto;
top: 5%;
left:50%;
width: 650px;
height: 150px;
margin-left: -325px;
}
#menubox {
background-color: #333;
border-left: 5px;
border-right:0px;
border-top: 0px;
border-bottom: 0px;
border-style:solid;
height: 500px;
width: 150px;
left:50%;
margin-top: 150px;
top: 5%;
position: absolute;
margin-left: -325px;
}
#menu {
    background: #333;
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 12em;
}
#menu li {
    font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
#menu a {
    background: #333;
    border-bottom: 1px solid #393939;
    color: #ccc;
    display: block;
    margin: 0;
    padding: 8px 12px;
    text-decoration: none;
}
#menu a:hover {
    background: #2580a2 url("afbeeldingen/hover.gif") left center no-repeat;
    color: #fff;
    padding-bottom: 8px;
}
#main {
background-color: #A9A9A9;
position: absolute;
border-left: 5px;
border-right: 5px;
border-top: 0px;
border-bottom: 0px;
border-style:solid;
padding: 5px;
overflow: auto;
top: 5%;
margin-top: 150px;
left: 50%;
width: 480px;
height: 490px;
margin-left: -175px;
}
#footer {
background: url('afbeeldingen/footer.png') no-repeat;
position: absolute;
overflow: auto;
margin-top: 650px;
top:5%;
left:50%;
width: 650px;
height: 30px;
margin-left: -325px;
}
html {
overflow: hidden;
}



Ik hoop dat jullie mij met dit probleem kunnen helpen.

[ Voor 0% gewijzigd door MueR op 08-01-2010 17:29 ]


Acties:
  • 0 Henk 'm!

  • samo
  • Registratie: Juni 2003
  • Laatst online: 22-09 11:21

samo

yo/wassup

html {
overflow: hidden;
}
Volgens mij ligt t daar aan.

Bekend van cmns.nl | ArneCoomans.nl | Het kindertehuis van mijn pa in Ghana


Acties:
  • 0 Henk 'm!

  • MueR
  • Registratie: Januari 2004
  • Laatst online: 02:01

MueR

Admin Tweakers Discord

is niet lief

Debuggen debuggen debuggen. Dit had je makkelijk zelf kunnen vinden met wat debugwerk. Overigens had je kunnen raden dat overflow hidden op het html element niet zo heel verstandig was.

De Devschuur is geen quickfix afhaalchinees. Ik verzoek je dan ook vriendelijk om Webdesign, Markup & Clientside Scripting Beleid nog eens te lezen, waar je onder andere kan lezen hoe je de code tag gebruikt, en dat je alleen relevante code moet posten, niet je hele CSS.

[ Voor 15% gewijzigd door MueR op 08-01-2010 17:28 ]

Anyone who gets in between me and my morning coffee should be insecure.


Dit topic is gesloten.