Ik heb dus gezocht naar een simpele oplossing maar kon er helaas geen vinden, is er geen oplossing waarbij dynamisch een div een iframe kan omvatten?quote:Op maandag 3 november 2008 11:49 schreef spaceninjapirate het volgende:
Als je al jquery in je site gebruikt kun je bijv gebruik maken van:
http://plugins.jquery.com/project/bgiframe
Of anders even verder zoeken, er zijn heel wat paginas over te vinden
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 | <head> <script type="text/javascript"> // make the specified div a windowed control in IE6 // this masks an iframe (which is a windowed control) onto the div, // turning the div into a windowed control itself function makeWindowed(p_div) { var is_ie6 = document.all && (navigator.userAgent.toLowerCase().indexOf("msie 6.") != -1); if (is_ie6) { var html = "<iframe style=\"position: absolute; display: block; " + "z-index: -1; width: 100%; height: 100%; top: 0; left: 0;" + "filter: mask(); background-color: #ffffff; \"></iframe>"; if (p_div) p_div.innerHTML += html; // force refresh of div var olddisplay = p_div.style.display; p_div.style.display = 'none'; p_div.style.display = olddisplay; }; } </script> </head> <body> <div id="test" style="position: absolute; z-index: 2; top: 50; left: 30; width: 200px; height: 200px; background-color: red"> </div> <select style="position: absolute; z-index: 1; top: 50;"> <option>test</option> </select> <a href="javascript:makeWindowed(document.getElementById('test'));"> Make Windowed</a> </body> </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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <h3>Hoofdmenu</h3> <ul class="menu"> <li class="item1"> <a href="http://gooimeer.no-ip.info/olavtestsite/"> <span>Home</span></a> </li> <li class="parent active item3"> <a href="/olavtestsite/index.php?Itemid=3"><span>Speltakken</span></a> <ul> <li class="item4"> <a href="/olavtestsite/index.php?Itemid=4"><span>Bevers</span></a> </li> <li class="item5"> <a href="/olavtestsite/index.php?Itemid=5"><span>Dolfijnen</span></a> </li> <li id="current" class="active item8"> <a href="/olavtestsite/index.php?Itemid=8"><span>Zeeverkenners Ochtend</span></a> </li> <li class="item9"> <a href="/olavtestsite/index.php?Itemid=9"><span>Zeeverkenners Middag</span></a> </li> <li class="item10"> <a href="/olavtestsite/index.php?Itemid=10"><span>Wilde Vaart</span></a> </li> <li class="item11"> <a href="/olavtestsite/index.php?Itemid=11"><span>Loodsenstam</span></a> </li> <li class="item14"> <a href="/olavtestsite/index.php?Itemid=14"><span>Vaarschool Seal</span></a> </li> <li class="item12"> <a href="/olavtestsite/index.php?Itemid=12"><span>Bestuur</span></a> </li> <li class="item13"> <a href="/olavtestsite/index.php?Itemid=13"><span>Olav klusteam</span></a> </li> </ul> </li> <li class="parent item6"> <a href="/olavtestsite/index.php?Itemid=6"><span>Onderkomens</span></a> </li> <li class="parent item7"> <a href="/olavtestsite/index.php?Itemid=7"><span>Verhuur</span></a> </li> <li class="parent item20"> <a href="/olavtestsite/index.php?Itemid=20"><span>Vrienden</span></a> </li> <li class="item2"> <a href="http://gooimeer.no-ip.info/olavtestsite/administrator/index.html"><span>Site beheren</span></a> </li> </ul> </div> |
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 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | padding: 0; margin: 0; } body { text-align: center; font-size: 76%; font-family: Arial, sans-serif, Verdana, Helvetica; line-height: 1.3; } h1, h2, h3, h4, h5, h6, p, blockquote, form, label, ul, ol, dl, fieldset, address { margin: 0.5em 0; } a img { border: 0px; } li, dd { margin-left: 1em; } li { list-style-type:circle; } fieldset { padding:5em; } td { padding:1px; } #wrap { min-width: 960px; max-width: 960px; width: auto !important; width: 960px; margin: 0 auto; text-align: left; } #header { background:#fff url(../images/hbg.jpg) 0 0 no-repeat; position:relative; height:180px; margin-top:10px; margin-bottom:5px; color:#fff; } #header .logo { margin-top:55px; } #header h1 { font-variant: small-caps; font-stretch: expanded; padding-left: 20px; color:#fff; font-weight: bold; font-size: 50px; } #header input { background: url(../images/search.png) no-repeat; border:0; height: 22px; width: 168px; padding: 2px; font-size:1em; color:#fff; border:1px solid #fff; } #header .search { position:absolute; top: 30px; right:20px; color:#fff; } #header .banner { position:absolute; top: 68px; right:20px; color:#fff; } #leftcol { float:left; width:23%; overflow:hidden; } #content { float:left; width: 54%; } #content1 { position:relative; float:left; width: 54%; overflow:hidden; } #content2 { position:relative; float:left; width: 77%; overflow:hidden; } #content3 { position:relative; float:left; width: 100%; overflow:hidden; } #rightcol { position:relative; float:left; width:23%; overflow:hidden; } #footer { clear:both; background:#fff url(../images/fbg.png) 0 bottom no-repeat; height:60px; margin-bottom:10px; padding-top:20px; text-align:center; } #top { padding:10px 10px 5px 10px; margin:0px; } #top .box { padding:0; margin:0; color:#000; background:#fff; } #bottom { clear:both; padding:10px 10px; margin:5px 10px; background:#fff; border-top:1px dotted #708059; border-bottom:1px dotted #708059; } #user { clear:both; padding:10px; } .box { padding:10px; } /* --- */ #leftcolbg { background: url(../images/lbg.png) 23% 0 repeat-y; } #rightcolbg { background: url(../images/rbg.png) 77% 0 repeat-y; } a {color: #99bf60;} a:link {color: #708059;} a:hover {color: #708059;} h1, .contentheading, .componentheading, .contentpagetitle { color: #708059; font-weight:bold; font-size:1.5em; } h2{font-size: 1.5em;} h3 {font-size: 1.3em;} h4 {font-size: 1.2em;} h5 {font-size: 1.1em;} h6 {font-size: 1em;} hr { border:1px solid #DCE6CF; } fieldset { padding: 0.3em; border: 0px; } #footer, .small, .createdate, .modifydate { font-size:0.8em; color: #B4CC8F; } .module { margin-bottom: 1em; padding: 0 10px; padding-bottom: 5px; border: 1px solid #DCE6CF; text-align:left; } .module h3 { background: #DCE6CF; color: #708059; padding: 0.25em 0.5em; text-align: center; font-size: 1.1em; margin: 2px -8px 0.5em -8px; text-align: left; } .module_menu { padding:0; margin-bottom: 1em; color: #ffff99; } .module_menu h3 { background: #000000; color: #ffff99; padding: 0.25em 0.5em; text-align: left; font-size: 1.1em; margin: 0; } .module_menu ul { list-style: none; margin: 0; padding: 0; } .module_menu li { margin: 0; list-style:none; } .module_menu li a { display: block; padding: 3px 5px 3px 0.5em; border-left: 10px solid #000000; background-color: #ffff99; color: #000000; text-decoration:none; border-top: 1px solid #3366ff; } html>body .module_menu li a { width: auto; } .module_menu li a:hover, a#active_menu:link, a#active_menu:visited { display: block; border-left: 10px solid #000; background-color: #ffff33; color:#000000; border-top: 1px solid #3366ff; } .module_menu #current a { display: block; border-left: 10px solid #000; background-color: #ffff33; color:#000000; border-top: 1px solid #3366ff; } /*sub*/ .module_menu ul li ul li a{ display: block; padding: 3px 5px 3px 1.0em; border-left: 20px solid #000; background-color: #ffff99; color: #000000; text-decoration:none; border-top: 1px solid #3366ff; } /*zelf toegevoegd, hover submenu 20 px*/ .module_menu ul li ul li a:hover { display: block; border-left: 20px solid #000; background-color: #ffff33; color:#000000; border-top: 1px solid #3366ff; } /*als menu is geklikt waar submenu inzit, maar submenu nog niet gebruikt*/ .module_menu ul #current ul li a{ display: block; padding: 3px 5px 3px 1.0em; border-left: 20px solid #000; border-top: 1px solid #3366ff; background-color: #ffff99; margin:0 0 -1px 0; color:#000; } /*zelf toegevoegd, submenu ook van kleur veranderen*/ .module_menu ul #current ul li a:hover{ display: block; border-left: 20px solid #000; background-color: #ffff33; border-top: 1px solid #3366ff; color:#000; } /*als menu is geklikt waar submenu inzit, en daarin een pagina bezocht word*/ .module_menu ul li ul #current a{ display: block; padding: 3px 5px 3px 1.0em; border-left: 20px solid #000; border-top: 1px solid #3366ff; background-color: #ffff33; margin:0 0 -1px 0; color:#000; } /*zelf toegevoegd, submenu ook van kleur veranderen*/ .module_menu ul li ul #current a:hover{ display: block; padding: 3px 5px 3px 1.0em; border-left: 20px solid #000; border-top: 1px solid #3366ff; background-color: #ffff33; margin:0 0 -1px 0; color:#000; } #header .module { margin-bottom: 0em; padding: 0; border: 0px; } #mainlevel-nav { list-style:none; float:right; margin:0; padding:0; width:100%; list-style-type:none; position:absolute; bottom:0px; right:10px; } #mainlevel-nav li { list-style:none; float:right; margin:0; padding:0px; } #mainlevel-nav a:link,#mainlevel-nav a:visited { float:left; display:block; color:#000; text-decoration:none; margin:0 2px; padding:7px 8px 5px 8px; border-left: 1px solid #80896c; border-top: 1px solid #80896c; border-right: 1px solid #80896c; border-bottom: 1px solid #80896c; background:#DCE6CF; } #header #active_menu-nav, #mainlevel-nav #current a { float:left; display:block; color:#000; text-decoration:none; margin:0 2px; padding:7px 8px 5px 8px; border-left: 1px solid #80896c; border-top: 1px solid #80896c; border-right: 1px solid #80896c; border-bottom: 1px solid #fff; background:#fff; } #mainlevel-nav #current { background:#fff; } #mainlevel-nav li a:hover { background:#fff; } .pagination span, .pagination a, .pagination strong{ margin:0 3px; } |
1 2 3 4 5 6 7 8 9 | display: block; padding: 3px 5px 3px 1.0em; border-left: 20px solid #000; border-top: 1px solid #3366ff; <--------- background-color: #ffff33; margin:0 0 -1px 0; <----------- color:#000; } |
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 | font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%; width: 200px; padding-left: 550px; margin: 0px; float:left; height: 0px; } #sidebar h1 { display: block; background-color:#FF9900; font-size: 100%; padding: 3px 0 5px 3px; border: 1px solid #000000; color: #333333; margin: 0px; width:215px; } #sidebar ul { list-style: none; margin: 0px; padding: 0px; border: 1px; } #sidebar ul li { margin: 0px; padding: 0px; } #sidebar ul li a { font-size: 100%; display: block; border-bottom: 1px dashed #C39C4E; padding: 5px 0px 2px 4px; text-decoration: none; background-color: yellow; color: #666666; width:200px; } |
1 2 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
Ja, de code voor de conditional comment is niet goed. En 't staat op de verkeerde plaats.quote:Op vrijdag 21 november 2008 01:36 schreef mcDavid het volgende:
Er gaat iets mis met je conditional comment! Het staat nu in firefox te ver naar links
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <div id="menu" runat="server" class="menu"> <div class="header"> <div class="version">Versie nummer</div> <div id="usermenu" runat="server" class="usermenu"></div> </div> <div id="menucontent" runat="server" class="menucontent"></div> </div> <div id="content"> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </div> </div> <div id="footer">footer</div> |
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 | { height: 100%; } body { margin: 0; padding: 0; font-family: Verdana; height: 100%; background: url(../images/menubackground.png) repeat-y; } #holder { width: auto; height: 100%; } .menu { height: 100%; width: 220px; float: left; } |
Dat is idd een veelgebruikte oplossing voor datsoort problemen!quote:Op vrijdag 21 november 2008 @ 15:22 schreef Patje1987 het volgende:
Op verzoek, ik kreeg hem in firefox niet opgelost dat de height niet op 100% wilde. Sowieso moeten alle divs waar de div in zit op 100%, en dat was ook zo, heb ze allemaal even een standaard hoogte gegeven en het bleek dat ie vastliep op de holder (daar zitten 2 divs in). Toen heb ik de body gewoon een background-image gegeven want het menu resized toch wel mee.
HTML
[ code verwijderd ]
CSS
[ code verwijderd ]
Er staan nog wel wat foutjes in stylegreen.css. Om te beginnen regel 41. In css kun je geen conditional comments plaatsen, en al helemaal niet in html-stijl.quote:
Jazeker! Ik gebruik het ook wel voor mijn site voor school.quote:Op zaterdag 22 november 2008 11:37 schreef Light het volgende:
Je hebt wel gezien dat er een linkje staat in m'n vorige post?
1 2 3 4 | height: 145px; width: 960px; background: url(1.png) no-repeat;} |
1 2 3 | <img src="img/bannergreen.png" alt="www.hokje10.nl" /> </div> |
IE6?quote:Op maandag 24 november 2008 @ 13:40 schreef hello_moto1992 het volgende:
Ik heb een transparante PNG. http://hokje10.nl/img/bannergreen.png
Die wil ik in de header op een ander plaatje plakken. In de CSS heb ik dus in het ene plaatje, http://hokje10.nl/1.png , gezet. In de HTML heb ik daar de transparante PNG op gezet.
Maar nu wordt de achtergrond van de transparante PNG opeens wit. Als ik hem in de HTML code zet is hij wel goed.
CSS:
[ code verwijderd ]
HTML:
[ code verwijderd ]
Nee Firefox/IE7. Kijk maar eens op www.hokje10.nl bovenaan.quote:Op maandag 24 november 2008 13:56 schreef mcDavid het volgende:
[..]
IE6?
Die ondersteunt geen alpha transparency. Althans niet zonder hacks.
quote:Op maandag 24 november 2008 13:40 schreef hello_moto1992 het volgende:
Ik heb een transparante PNG. http://hokje10.nl/img/bannergreen.png
Die wil ik in de header op een ander plaatje plakken. In de CSS heb ik dus in het ene plaatje, http://hokje10.nl/1.png , gezet. In de HTML heb ik daar de transparante PNG op gezet.
Maar nu wordt de achtergrond van de transparante PNG opeens wit. Als ik hem in de HTML code zet is hij wel goed.
CSS:
[ code verwijderd ]
HTML:
[ code verwijderd ]
1 |
1 2 | background-repeat: no-repeat; |
1 2 3 4 5 6 | border: 1px solid #f1f1f1; background-color: #f5f5f5; margin: 5px; padding: 5px; text-align: center; } |
1 2 3 4 5 6 7 | margin: 5px; padding: 5px; text-align: center; border: 1px solid #f1f1f1; background-color: #f5f5f5; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <title> home</title> <link rel="stylesheet" type="text/css" href="includes/ui.css" /> </head> <body> <div class="container"> <div id="top"> top </div> <div class="left" style="border:solid 1px red;"> links </div> <div class="bottom"> <p>Test...</p> </div> </div> </body> </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 38 39 40 | margin:0; padding:0; height:100%; } body{ font-family: tahoma, verdana, Sans, sans-serif; background-image: url(../image/bg.gif); } .container{ position:relative; border: 1px solid #c5d6f9; margin: 20px 0px 5px 0px; background-color: #fffffe; margin:0 auto; /*horizontale centrering. Werkt niet in IE quircksmode. Dan text-align:center aan body toevoegen*/ width:1000px; } #top{ position:relative; height:100px; padding:0; } .bottom{ float:right; width:834px; height:500px; min-height:500px; } .left{ float:left; height:500px; min-height:500px; width:156px; } |
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |