HTML interesse |
|
Ik zit al heel lang met een probleem en krijg het niet voor elkaar. In een layout met header bovenin, sidebar links, maincontent rechts en footer, krijg ik het niet voor elkaar dat de sidebar meerekt met de maincontent. Ik heb het nu geprobeerd met een wrapper en een afbeelding maar ook dit lukt niet. Wie o wie weet hier misschien de juist oplossing voor????
div#wrapper {
background: #f7f7f7 url(../images/white/mw_shadow_l.png) 100% 0 repeat-y;
}
body {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 17px;
background: #FFFFFF;
color: #000000;
margin:0;
padding: 0;
height: 100%;
width: 100%;
}
#container {
position: absolute;
left:50%;
margin-left:-450px;
min-height: 835px;
width: 900px;
background: #FF77CC;
border: 3px solid #FFFFFF;
}
#header {
width: 900px;
height: 170px;
text-align: center;
background-image: url(kop/titel.png);
}
#menu {
width: 900px;
height: 53px;
margin-top: 0px;
background: #FFFFFF;
background-image: url(kop/menu.png);
text-align: center;
}
#sidebar {
float: left;
width: 141px;
min-height: 580px;
background: #FFFFFF;
background-image: url(kop/side.png);
background-repeat: repeat-y;
border-right-style: solid;
border-right-color: #FFFFFF;
border-right-width: 5px;
}
#footer {
width: 895px;
height: 16px;
background:#FFFFFF;
font-size: 12px;
padding-left: 5px;
margin: 0px;
padding-top: 0px;
clear: both;
}
<body>
div#wrapper { background: #f7f7f7 url(../images/white/mw_shadow_l.png) 100% 0 repeat-y; } body { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 17px; background: #FFFFFF; color: #000000; margin:0; padding: 0; height: 100%; width: 100%; } #container { position: absolute; left:50%; margin-left:-450px; min-height: 835px; width: 900px; background: #FF77CC; border: 3px solid #FFFFFF; } #header { width: 900px; height: 170px; text-align: center; background-image: url(kop/titel.png); } #menu { width: 900px; height: 53px; margin-top: 0px; background: #FFFFFF; background-image: url(kop/menu.png); text-align: center; } #sidebar { float: left; width: 141px; min-height: 580px; background: #FFFFFF; background-image: url(kop/side.png); background-repeat: repeat-y; border-right-style: solid; border-right-color: #FFFFFF; border-right-width: 5px; } #footer { width: 895px; height: 16px; background:#FFFFFF; font-size: 12px; padding-left: 5px; margin: 0px; padding-top: 0px; clear: both; } <body>
<body>
<div id="wrapper">
<div id="container">
<div id="header">
</div>
<div id="menu">
<a id="menu1" href="#"></a>
<a id="menu2" href="#"></a>
<a id="menu3" href="#"></a>
<a id="menu3" href="#"></a>
<a id="menu5" href="#l"></a>
</div>
<div id="sidebar">
<a id="sidemenu1" href="#"></a>
<a id="sidemenu2" href="#"></a>
<a id="sidemenu3" href="#"></a>
<a id="sidemenu4" href="#"></a>
<a id="sidemenu5" href="#"></a>
<a id="sidemenu6" href="#"></a>
<a id="sidemenu7" href="#"></a>
</div>
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" />
<?php endif; ?>
<?php if($this->countModules('left')) : ?>
<div id="maincolumn" style="margin-top: -460px">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<?php if($this->countModules('user1 or user2')) : ?>
<table class="nopad user1user2">
<tr valign="top">
<?php if($this->countModules('user1')) : ?>
<td>
<jdoc:include type="modules" name="user1" style="xhtml" />
</td>
<?php endif; ?>
<?php if($this->countModules('user1 and user2')) : ?>
<td class="greyline"> </td>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<td>
<jdoc:include type="modules" name="user2" style="xhtml" /> </td>
<?php endif; ?>
</tr>
</table>
<div id="maindivider"></div>
<?php endif; ?>
<table class="nopad">
<tr valign="top">
<td>
<jdoc:include type="component" />
<jdoc:include type="modules" name="footer" style="xhtml"/>
</td>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<td class="greyline"> </td>
<td width="170">
<jdoc:include type="modules" name="right" style="xhtml"/>
</td>
<?php endif; ?>
</tr>
</table>
</div> </div>
<div id="footer">Footer</div>
</div></div>
</body>
</html>
<a id="menu1" href="#"></a> <a id="menu2" href="#"></a> <a id="menu3" href="#"></a> <a id="menu3" href="#"></a> <a id="menu5" href="#l"></a> <a id="sidemenu1" href="#"></a> <a id="sidemenu2" href="#"></a> <a id="sidemenu3" href="#"></a> <a id="sidemenu4" href="#"></a> <a id="sidemenu5" href="#"></a> <a id="sidemenu6" href="#"></a> <a id="sidemenu7" href="#"></a> <?php if($this->countModules('left')) : ?> <jdoc:include type="modules" name="left" /> <?php endif; ?> <?php if($this->countModules('left')) : ?> <div id="maincolumn" style="margin-top: -460px"> <?php else: ?> <div id="maincolumn_full"> <?php endif; ?> <?php if($this->countModules('user1 or user2')) : ?> <table class="nopad user1user2"> <?php if($this->countModules('user1')) : ?> <jdoc:include type="modules" name="user1" style="xhtml" /> <?php endif; ?> <?php if($this->countModules('user1 and user2')) : ?> <td class="greyline"> </td> <?php endif; ?> <?php if($this->countModules('user2')) : ?> <jdoc:include type="modules" name="user2" style="xhtml" /> </td> <?php endif; ?> <?php endif; ?> <jdoc:include type="component" /> <jdoc:include type="modules" name="footer" style="xhtml"/> <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?> <td class="greyline"> </td> <jdoc:include type="modules" name="right" style="xhtml"/> <?php endif; ?>
|