de site: http://berlboth.12gbfree.com/
als je op foto klikt komt er in de content een tabel van 472px breed. het iframe heeft een breedte (die 18px is de scrollbar) maar, zoals je ziet is er bij msie 6 onderin een verticale scrollbar.
Als ik het iframe 600px maak is deze scrollbar er nog steeds. De scrollruimte is altrijd 18px. Deze komt door het plaatsen van de vertical scrollbar. Maar de content is max 472px breed.
Hoe kan dit?
en de html:
definitie iframe in de index:
als je op foto klikt komt er in de content een tabel van 472px breed. het iframe heeft een breedte (die 18px is de scrollbar) maar, zoals je ziet is er bij msie 6 onderin een verticale scrollbar.
Als ik het iframe 600px maak is deze scrollbar er nog steeds. De scrollruimte is altrijd 18px. Deze komt door het plaatsen van de vertical scrollbar. Maar de content is max 472px breed.
Hoe kan dit?
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
| body.content{ background-color:#a618a3; margin-top: 0px; margin-right: 0px; margin-left: 0px; margin-bottom: 0px; } table.foto{ visibility: visible; margin-top: 15px; margin-right:5px; margin-left: 5px; margin-bottom: 5px; width: 472px; left: 0px; top: 0px; } td{ width: 118px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center; height: 118px; vertical-align: middle; padding-left: 0px; } th{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 30px; font-weight: bold; height: 40px; width:472px; } |
en de html:
HTML:
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
| <body class="content"> <table class="foto" cellspacing="0" cellpadding="0" border="0"> <tr><th colspan="4">Test</th></tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> <tr> <td>5</td> <td>6</td> <td>7</td> <td>8</td> </tr> <tr> <td>5</td> <td>6</td> <td>7</td> <td>8</td> </tr> <tr> <td>5</td> <td>6</td> <td>7</td> <td>8</td> </tr> <tr> <td>5</td> <td>6</td> <td>7</td> <td>8</td> </tr> </table> </body> |
definitie iframe in de index:
HTML:
1
| <iframe ALLOWTRANSPARENCY id="contentframe" name="content" src="content.html" scrolling="auto" frameborder="0" width="500px" height="500px" marginwidth="0" marginheight="0"></iframe> |
if broken it is, fix it you should