Het volgende:
Ik heb 2 blokken naast elkaar welke beide weer verdeeld zijn in 3 opgestapelde blokken. het rechterblok (middelste deel) moet helemaal, dus 100%, mee rekken met de content (linker blok, middelste deel). Hoe krijg ik dat voor elkaar? Beide blokken moeten dus even hoog worden afhankelijk van de content in het linkerblok.
Ik had begrepen dat dit mogelijk was m.b.v. <br clear=all>. Maar dat wil niet lukken (zie code).
Huidige werk is te zien op: http://deepfreeze.stx.nl/test
Ik heb 2 blokken naast elkaar welke beide weer verdeeld zijn in 3 opgestapelde blokken. het rechterblok (middelste deel) moet helemaal, dus 100%, mee rekken met de content (linker blok, middelste deel). Hoe krijg ik dat voor elkaar? Beide blokken moeten dus even hoog worden afhankelijk van de content in het linkerblok.
Ik had begrepen dat dit mogelijk was m.b.v. <br clear=all>. Maar dat wil niet lukken (zie code).
Huidige werk is te zien op: http://deepfreeze.stx.nl/test
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> #Container { width: 700px; margin-left: auto; margin-right: auto; } #Header { width: 700px; height: 100px; margin-top: 10px; margin-bottom: 10px; } #Navigation { width: 700px; height: 35px; background-image: url(navigation_bg.gif); margin-bottom: 10px; } #Box_Wrap {width:190px; height:100%; float:right;} #Box_Border_Top { width: 190px; height: 30px; background-image: url(images/box_border_top.gif); background-repeat: no-repeat; } #Box_Content { width: 190px; height: 100%; background: url(images/box_bg.gif) repeat-y 50% 0; } #Box_Border_Bottom { width: 190px; height: 6px; background-image: url(images/box_border_bottom.gif); background-repeat: no-repeat; } #Border_Top { width: 490px; height: 20px; background-image: url(images/border_top_temp.gif); background-repeat: no-repeat; padding-top: 8px; padding: 5px; float: left;} #Content { height: auto; width: 480px; background: url(images/content_bg_temp.gif) repeat-y 50% 0; padding: 10px; } #Direct_To_Top { height: 20px; width: 480px; padding-top: 20px; } #Border_Bottom { width: 500px; height: 6px; background-image: url(images/border_bottom_temp.gif); background-repeat: no-repeat; } </style> </head> <body> <div style="width:700px;"> <div id="Box_Wrap"> <div id="Box_Border_Top"></div> <div id="Box_Content">Dit blok moet mee rekken met div id Content, zodat de hoogte van beide blokken gelijk blijft</div> <div id="Box_Border_Bottom"></div> </div> <div id="Border_Top">Hoofdpagina</div> <div id="Content"><h1>Hoofdpagina</h1>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed fermentum quam a ante. Donec ullamcorper neque interdum sem. Praesent pede ante, semper ut, convallis ac, malesuada sed, lorem. Ut ut nunc non nulla dignissim porta. Ut orci. Morbi vel dui sit a<a href="#">met libero ultrices co</a>ngue.<hr /><h1>Hoofd</h1><h2>Hoofd</h2><h3>Hoofd</h3>Proin bibendum lobortis turpis. Duis sit amet magna non nulla bibendum ornare. Suspendisse arcu. Nulla pulvinar. Nam pede. Sed ligula ante, egestas eget, feugiat ac, pellentesque sit amet, purus. In fringilla placerat leo. Proin fringilla massa aliquet ipsum. Suspendisse dui nunc, nonummy eu, suscipit id, fringilla imperdiet, libero. Nunc malesuada turpis ut nisi viverra scelerisque. Nullam non ipsum. </div><!-- end Content --> <div id="Border_Bottom"></div> <br clear=all> </div> </body> </html> |
[ Voor 18% gewijzigd door DeepFreeze.NL op 15-11-2006 15:42 ]