Div with margin-left and width:100% overflowing on the right side

后端 未结 6 523
太阳男子
太阳男子 2021-02-04 02:28

I have 2 nested div\'s that should be 100% wide. Unfortunately the inner div with the Textbox overflows and is actually larger than the outer div. It has a left margin and overf

6条回答
  •  半阙折子戏
    2021-02-04 03:24

    If some other portion of your layout is influencing the div width you can set width:auto and the div (which is a block element) will fill the space


    If that's still not working we may need to see more of your layout HTML/CSS

提交回复
热议问题