I have a container div it contains multiple floated divs I want a specific border div inside the container to have 90% height of the container itself however it doesn’t seem to detect the height of the container even though I’ve applied clear:both at the end of the container and also overflow:hidden to to the container div.
Share
You can use this
jsscript:This script can be either in the head or at the very bottom of the page. Despite of the place, make sure first you link
jQuerylibrary.NOTE: To link
jQuerylibrary in the head(or elsewhere in the page), use the script bellow:EDIT: you can set the
heightof the element to 0 or remove it completely. Still I would probably leave it asheight: 100;; this will force the page to look decent, before the script is executed.