July 5, 201313 yr Hello! I’m having a small problem here. I have a <div> inside a <div>. Let’s just call them DIV 1 and DIV 2. DIV 1 is more like a “main box” to keep other DIVS in one place. One of them being DIV 2. DIV 2 is a float element. The problem is, then DIV 2’s height increases, the one of DIV 1 doesn’t. Which means DIV 2 will kind of “overlap” DIV 1. DIV 1 doesn’t have any fixed height. I’m pretty sure it has to do with the float element. If anyone knows the solution… throw it over! I can also upload a picture and some code if needed.
July 5, 201313 yr after div 2 put the folowing code <div style="clear:both"></div> this will stretch the div to the correct height
July 5, 201313 yr Author Fail from me… there was another DIV that I forgot, with fixed height. Problem solved. Too messy I guess, haha. Can’t we delete topics ourselves by the way? Edit: Thanks I’ll take note of this code for other issues then Edited July 5, 201313 yr by Revs
July 5, 201313 yr are you able to show us some of the divs with the CSS code you have used? you might need to float or use a block? and have you tried it in different broswers?
July 5, 201313 yr Author Actually I had already found the solution, as stated above, one of the DIVs inside which it was had a fixed height! My mistake!!
Create an account or sign in to comment