Need CSS sidebar height to expand with content

前端 未结 8 1219
情深已故
情深已故 2021-01-07 00:20

I have a two column layout, with a gray sidebar on the right. I need the sidebar\'s height to expand when the height of the left column is increased (due to content being dy

相关标签:
8条回答
  • 2021-01-07 00:46

    I'm not sure if this will help, as I'm a newbie. However, when struggling with getting my sidebar to show the whole content when I doubled it's size I did the following. I was changing my height and width with no response until I changed the class. My class was listed SB frame SB width. So when I changed my class to read SB height SB width it fit to my content instead of the original frame size. I also tried SB max sb width with worked too, but it took out my footer menu bar (meaning it wouldn't show it anymore). I went back to SB height SB width, and all is well. That's super duper elementary for all of you I'm sure, but just in case there is another newbie reading this that doesn't understand much about html code like myself... I hope this helps =) Happy Holidays Everyone! hugs, tara

    0 讨论(0)
  • 2021-01-07 00:47

    I recently saw a quite creative solution to this problem using the CSS properties position:absolute and border.

    Definitely worth checking out to see if it works for you.

    Link: http://woorkup.com/2009/10/11/really-simple-css-trick-for-equal-height-columns/

    0 讨论(0)
提交回复
热议问题