Ik heb een probleem met mn content div,
en ik ben 2 oplossingen aan het proberen:
Het probleem is dat danwel de div (content) danwel het iframe content zich niet aanpast.
de 2 oplossingen hebben verschillenden code;
Te beginnen met een iframe style defenitie, die later opgroepen wordt
door de iframe tag, het iframe wordt een combinatie tussen iframe en div...
Maar de omvang van het iframe past zich niet automatisch aan, aan de paginas
die erin opgeroepen worden....
voorbeeld: http://www.polyfonetunes.nl/surfsite/left2.htm
Mijn 2e oplossing behoudt de meer traditionele iframe methode, en er wordt gewoon een iframe
in een div geladen. Maar ook hier past de div zich niet aan, aan de in de iframe opgeroepen pagina.
Noch het iframe doet dit overgens....
voorbeeld: http://www.polyfonetunes.nl/surfsite/indexCSS2.html
-Laad de pagina Q&A om te zien dat er niet geresized wordt, terwijl heights
wel auto staan... Echt al van alles geprobeerd.
code:
Nu heb ik een java script gevonden voor auto iframe resizen, maar dat gaf al errors in FF en IE.
Ook een aardige div handleiding met lange teksten in de content div gezien, echter is mijn pagina te complex voor het voorbeeld en werkte het ook niet
->http://steve.pugh.net/test/test57.html.
Niks lijkt te werken, en word tureluurrrrr van.
en ik ben 2 oplossingen aan het proberen:
Het probleem is dat danwel de div (content) danwel het iframe content zich niet aanpast.
de 2 oplossingen hebben verschillenden code;
Te beginnen met een iframe style defenitie, die later opgroepen wordt
door de iframe tag, het iframe wordt een combinatie tussen iframe en div...
Maar de omvang van het iframe past zich niet automatisch aan, aan de paginas
die erin opgeroepen worden....
voorbeeld: http://www.polyfonetunes.nl/surfsite/left2.htm
code:
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<STYLE>
ul.menu
{
margin-left:2px;
padding: 10px 5px 10px 5px;
margin: 0;
list-style-type: none;
}
li.menu
{
margin: 0;
padding: 0;
}
h5.menu2
{
font-family:arial, verdana, sans-serif;
font-size: 14pt;
color: #DAF0A6;
text-decoration: none;
margin: 0 0 0 2px;
padding: 0;
border-bottom: 2px solid #DAF0A6;
}
iframe {
position:absolute;
width:auto;
height:auto;
top:30px;
bottom:auto;
left:300px;
right:auto;
border: 1px #000 solid; /* ff checkuh ;) */
overflow:invisible;
}
</STYLE>
</head>
<body bottommargin="" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" link="white" vlink="white" alink="white" text="#AEC2E6" bgcolor="#F9C100">
<table border="0" cellpadding="0" cellspacing="0">
<center>
<tr><td>[img]"./site_images/topleft.jpg"></td></tr>
<tr><td><img[/img]</td></tr>
<tr><td>[img]"./site_images/topleft_3.jpg"></td></tr>
<tr><td><BR>
<table>
<tr>
<td[/img]
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">[img]"./site_images/products.jpg"></td>
</tr>
<tr>
<td><img[/img]</td>
<td width="196" bgcolor="#E4CE8F" valign="top">
<BR>
<h5 class='menu2'>Boards</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='Fish'>Fish</a></li>
<li class='menu'><a href='' class='menu' title='Short Boards'>Short Boards</a></li>
<li class='menu'><a href='' class='menu' title='Mini Malibu'>Mini Malibu</a></li>
</ul>
<h5 class='menu2'>Bags</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='Travelbags'>Travel Bags</a></li>
<li class='menu'><a href='' class='menu' title='Simpel protection'>Simpel Protection</a></li>
</ul>
<h5 class='menu2'>Clothing</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='T-Shirts'>T-Shirts</a></li>
<li class='menu'><a href='' class='menu' title='tank tops'>Tank tops</a></li>
<li class='menu'><a href='' class='menu' title='Longsleeves'>Long Sleeves</a></li>
<li class='menu'><a href='' class='menu' title='Sandals'>Sandals</a></li>
</ul>
</td>
<td>[img]"./site_images/prod_right_bar.jpg"></td>
</tr>
</table>
</td>
<td>
</td>
</table>
</tr>
</td>
<td></td>
</tr>
</table>
</center>
<iframe[/img]</iframe>
</body>
</html> |
Mijn 2e oplossing behoudt de meer traditionele iframe methode, en er wordt gewoon een iframe
in een div geladen. Maar ook hier past de div zich niet aan, aan de in de iframe opgeroepen pagina.
Noch het iframe doet dit overgens....
voorbeeld: http://www.polyfonetunes.nl/surfsite/indexCSS2.html
-Laad de pagina Q&A om te zien dat er niet geresized wordt, terwijl heights
wel auto staan... Echt al van alles geprobeerd.
code:
code:
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<title> Maluka Customs Surfboards </title>
<meta name="Author" content="Stu Nicholls" />
<style type="text/css">
body {
margin:0;
border:0;
padding:0;
height:100%;
max-height:100%;
background:#F9C100;
font-family:arial, verdana, sans-serif;
font-size:78%;
overflow: auto;
}
#left {
position:absolute;
bottom:0;
left:0;
top:0;
width:256px;
height:100%;
overflow:invisable;
text-align:left;
background:#F9C100;
font-color: white;
}
A:link {text-decoration: none; color: #FFFFFF;}
A:visited {text-decoration: none; color: #FFFFFF;}
A:active {text-decoration: none; color: #FFFFFF;}
A:hover {text-decoration: none; font-weight: bold ; color:#FFFFFF;}
#header {
margin:0;
border:0;
padding:0;
position:absolute;
top:0;
left:256px;
width:750px;
height:150px;
overflow:invisable;
background:#F9C100;
color:#fff;
}
#content {
position:absolute;
bottom:0;
top:140px;
left:255px;
width:546px;
height:100%;
overflow:invisible;
text-align:left;
background:#F9C100;
}
#right {
position:absolute;
bottom:0;
top:144px;
left:805px;
right:0px;
width:202px;
height:100%;
overflow:no;
text-align:left;
background:#F9C100;
}
tr.decoration img {display: block;}
td.decoration img {display: block;}
ul.menu
{
margin-left:2px;
padding: 10px 5px 10px 5px;
margin: 0;
list-style-type: none;
}
li.menu
{
margin: 0;
padding: 0;
}
h5.menu2
{
font-family:arial, verdana, sans-serif;
font-size: 14pt;
color: #DAF0A6;
text-decoration: none;
margin: 0 0 0 2px;
padding: 0;
border-bottom: 2px solid #DAF0A6;
}
</style>
</head>
<div id="header">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">[img]"./site_images/pt.jpg"> <img[/img] [img]"./site_images/nl.jpg"> <img[/img]</td>
<td width="0" valign="top" align="right">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="center"></p>
<p align="right"></p>
-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="265" height="82" id="random2" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="random2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="random2.swf" quality="high" bgcolor="#ffffff" width="265" height="82" name="random2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>
<tr class="decoration">
<td>[img]"./site_images/bar.jpg"[/img]</td><td align="right">[img]"./site_images/mapmid.jpg"></td>
</tr>
<tr><td[/img]<a href="./main.htm" target="content">[img]"./site_images/home.jpg"[/img]</a><a href="./qanda.htm" target="content">[img]"./site_images/qanda.jpg"[/img]</a>[img]"./site_images/contact.jpg"></td>
<td[/img][img]"./site_images/mapbottom.jpg">
</td>
</tr>
</table>
</div>
<div[/img]
<iframe src="./main.htm" height="100%" width="100%" scrolling ="no" frameborder="0" name="content"></iframe>
</div>
</td>
<td>[img]"./site_images/news_right_bar.jpg"[/img]
</td>
</TR>
</table>
</div>
<div id="right">
<BR>
<table border="0" cellpadding="0" cellspacing="0">
<tr class="decoration">
<td colspan="3">[img]"./site_images/image_gallery.jpg"></tr>
<tr[/img]
<td align="center">[img]"./site_images/image_gallery_left_bar.jpg"[/img]</td>
<td width="194" bgcolor="#E4CE8F" valign="top">
The factory
<BR> The Shaper & Crew
<BR> Customers with boards
</td>
<td align="right">[img]"./site_images/image_gallery_right_bar.jpg"[/img]</td>
</tr>
<tr class="decoration">
<td colspan="3">[img]"./site_images/gallery_bottom.jpg"></tr[/img]
</table>
</BR>
</div>
<div id="left">
<table border="0" cellpadding="0" cellspacing="0">
<center>
<tr class="decoration"><td height="88" width="256">[img]"./site_images/topleft.jpg"></td></tr>
<tr[/img]<td height="32" width="256">[img]"./site_images/topleft_2.jpg"></td></tr>
<tr[/img]<td height="97" width="256">[img]"./site_images/topleft_3.jpg"></td></tr>
<tr><td><BR>
<table>
<tr>
<td[/img]
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr class="decoration">
<td colspan="3">[img]"./site_images/products.jpg"></td>
</tr>
<tr[/img]
<td>[img]"./site_images/prod_left_bar.jpg"></td>
<td[/img]
<BR>
<h5 class='menu2'>Boards</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='Fish'>Fish</a></li>
<li class='menu'><a href='' class='menu' title='Short Boards'>Short Boards</a></li>
<li class='menu'><a href='' class='menu' title='Mini Malibu'>Mini Malibu</a></li>
</ul>
<h5 class='menu2'>Bags</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='Travelbags'>Travel Bags</a></li>
<li class='menu'><a href='' class='menu' title='Simpel protection'>Simpel Protection</a></li>
</ul>
<h5 class='menu2'>Clothing</h5>
<ul class='menu'>
<li class='menu'><a href='' class='menu' title='T-Shirts'>T-Shirts</a></li>
<li class='menu'><a href='' class='menu' title='tank tops'>Tank tops</a></li>
<li class='menu'><a href='' class='menu' title='Longsleeves'>Long Sleeves</a></li>
<li class='menu'><a href='' class='menu' title='Sandals'>Sandals</a></li>
</ul>
</td>
<td>[img]"./site_images/prod_right_bar.jpg"></td>
</tr>
</table>
</td>
<td>
</td>
</table>
</tr>
</td>
<td></td>
</tr>
</table>
</font>
</div>
</body>
</html[/img] |
Nu heb ik een java script gevonden voor auto iframe resizen, maar dat gaf al errors in FF en IE.
Ook een aardige div handleiding met lange teksten in de content div gezien, echter is mijn pagina te complex voor het voorbeeld en werkte het ook niet
->http://steve.pugh.net/test/test57.html.
Niks lijkt te werken, en word tureluurrrrr van.
[ Voor 29% gewijzigd door menn0 op 28-11-2005 22:05 ]