Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] how to align a nested div to the bottom of parent div?

Expand Messages
  • Martin Tschofen
    Not sure I understand exactly what you re trying to accomplish. In general, in order to get a div underneath a floated div, you d clear it. with
    Message 1 of 2 , Aug 25, 2008
      Not sure I understand exactly what you're trying to accomplish. In general, in order to get a div underneath a 'floated' div, you'd 'clear' it. with 'clear:left or right, or both'. Hope that helps...martin

      On Fri, Aug 22, 2008 at 7:51 AM, ashwin <ashwin_moreyin@...> wrote:

      Hi All,

      How can I align a div to the bottom of parent div.
      the css for the parent div is
      #parent
      {
      float:left;
      background-color: #fff;
      width: 150px;
      height: 100px;
      }
      and the child div is
      #child
      {
      bottom:0;
      }

      Thanks for help


    Your message has been successfully submitted and would be delivered to recipients shortly.