Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with CSS Borders and Overflow

I'm having an issue with overflow and displaying a border.

I have content in an unordered list which I have set to overflow: scroll; Problem is, when I set a border to the unordered list, the border does not extend to the elements which overflow.

I would like the border for #times and #channel-rows ul, to extend and cover the elements that are outside the border. K L M N O P are not in the border. Content in Row B is not covered by the border too. How do I get these elements into the same border as the elements before it?

Can someone provide an example on how to make the border extend into the overflow area?

Please see JSFiddle.

JSFiddle.

like image 307
Glitchezz Avatar asked Aug 23 '26 16:08

Glitchezz


1 Answers

1) Add a wrapper to the scrollable content with display:table

2) Set width:100% on the children #times and #channel-rows

Enjoy!

UPDATED FIDDLE

like image 167
Danield Avatar answered Aug 25 '26 05:08

Danield



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!