Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make content fit parent container

Tags:

css

I decided to apply some .css to stackoverflow.com pages to remove the sidebar because I'm not really interested by it.

#sidebar{display:none!important;}

The problem I face is the #mainbar content doesn't fit anymore the #content container and leave a big blank space because of my css I tried to make #mainbar content fit its parent container (#content) with

#mainbar{width:100%!important;}

How can I make #mainbar full content (question, answers, comments) fit full width of #content container?


1 Answers

You'll need to do the following alongside what you've already tried:

.post-text { width: 100%; }

like image 57
Andy Holmes Avatar answered Dec 21 '25 04:12

Andy Holmes