Post your trick

Css Hack

I spent about 35 minutes on this one and still havent found a logic to it .

But this hack should be remembered .

consider the markup : <div id = a ><input/><div id = “a_child” ></div>    </div>

if you need to give a bottom border to the div with id = a and expect it to come below the div with id = “a_child”  , then the following css needs to be in place :

#a{  height:auto;overflow:hidden;}

Thanks to vineet and jimit  to get out of this one ..


Leave a Reply

     

     

     

Post A Trick !

How does "Kodetricks" work?

We at kodeplay like to share knowledge. With Kodetricks, even you can join us. All you need to do is post a programming related trick if you have one or rate a trick if you like someone else's.



Technology

Contact Us