| Jockrock on Dec 5, 2006 at 6:23:20 PM (# 1) Create an additional div to always follow the detail divs. In other words always after the loop like so:
<div id="main"> <div id="details">Content for id "details" Goes Here</div> <div id="details">Content for id "details" Goes Here</div> <div id="details">Content for id "details" Goes Here</div> <div id="details">Content for id "details" Goes Here</div> <div id="details">Content for id "details" Goes Here</div> <div id="basement"> Basement</div> </div>
Call the new div "basement" (or whatever) and create a style as follows:
#basement{ clear:both; visibility: hidden; }
Of course it doesn't need to be hidden. It could be a visible footer. Hope that helps. bod1467 on Dec 6, 2006 at 2:19:49 AM (# 2)Several divs with the same ID? Or did you mean to use class="details" and change the CSS declaration from #details to .details? :-) emsiva on Dec 6, 2006 at 2:54:36 AM (# 3)Jockrock: Thanks for your suggestion :) The height of the bigger box works perfectly well in both IE and mozilla(if i put absolutely nothing in the basement div). However, the padding for the main on the right side is higher than 15px for either of the browsers, If i give calculated values for width and padding or even play around with values. Could you please say how i can fix this problem?.
bod: what is the problem if the details div have the same name?
|