Forum Moderators: not2easy
[edited by: alt131 at 1:24 pm (utc) on Sep 11, 2011]
[edit reason] Thread Tidy [/edit]
<div id="contents">
<h2> </h2>
<input type="hidden" id="DPC_TODAY_TEXT" value="today">
<input type="hidden" id="DPC_BUTTON_TITLE" value="Open calendar...">
<input type="hidden" id="DPC_MONTH_NAMES" value="['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']">
<input type="hidden" id="DPC_DAY_NAMES" value="['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']">
<ul id="sidemenu">
<...... list items....>
</ul>
<div id="rightcol" class="clear">
<div id="failmsg"></div>
<form>
<.....form elements, fieldsets, input textboxes, etc....>
</form>
</div><!-- end rightcol -->
</div><!-- end content -->
* {margin: 0; padding: 0;}
br {margin-top: 10px;}
#contents h2 {text-align:center; color:#F63; text-shadow: 1px 1px 1px #000; padding-top: 25px; padding-bottom: 25px;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; }
#contents { border-top: none; margin-top:0; background-color:#FFF;}
#contents ul#sidemenu {float: right; width: 19em; margin: 0 0 4em -21em; background-image:url(../images/homemenu.png);
background-repeat:no-repeat; background-size: 100%; }
#contents #rightcol {float: left; display: block; padding: 0 22em 4em 3em;}
#contents #rightcol fieldset {border: 2px groove #C60; padding: 5px; margin: 10px; display: inline; background-color:#CC9;}
Well what happens is that the content div will have a height of about 2 centimiter (this is because I have a ;nbsp enclosed in a h2 tag in it) and the rest of the elements (which are also placed inside the content div) appear outside of it. This is a mystery to me..Hi snehula, and thanks for the great code sample - makes things a lot less mysterious :)