A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: CSS border not recognizing nested div

  1. #1

    CSS border not recognizing nested div

    As a portion of a larger layout, I have defined a single column in which I nest a div (floated right) thats serves as a second column. The overall intended result, which does function as intended in FF 2.0/IE7/IE6/safari, is to allow any content that extends beyond the base/bottom of my nested div to expand to the width of the parent column. A pretty straight forward concept.

    Where my problem arises is with any element defined in the parent column that has been assigned a top or bottom border. Though the content within the element recognizes the nested div, however, the border style does not; causing the border to extend behind the nested div rather then recognizing the nested div's boundaries.

    Any idea if this can be rectified so that the border does stop at the nested div boundary?

    Thanks.

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    That's a pretty complicated description, but I think I understand what you're saying. Try assigning overflow: auto or overflow: hidden to the element with the border.

  3. #3
    That is it...thank you!

    Sorry for the complicated description. Just trying to accurately state what was happening.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center