1
Good evening friends,
I am setting up a project with a focus on learning, my project consists basically of an Administrative Panel style layout, where there is a side menu on the left, and the content on the right. I’m using to shape it HTML, CSS (Bootstrap, although I’ve done so far all by hand) and Jquery.
What brings me here today is that I’m not being able to create a dynamic height for them, I used Maujor’s tutorial for HTML and Body 100% height before but it didn’t work, looking at the questions right here I tried to put Position Absolute and Position relative to the parent and child blocks, and it almost worked, it works when I put the "overflow:auto" in the CSS class of the content block (contend) but keeps appearing 2 Scroll on the page and when I try to remove using Hidden or None, I lose the height of 100%.
To summarize my goal is this: I want the Sidebar Height to increase dynamically as the contents of the next container increase as well. As my main goal is learning, I am open and would be grateful for all criticism or better way to make my code.
Code in the Jsfiddle: https://jsfiddle.net/gzcr85ha/2/
Note: First time using Jsfiddle I didn’t see where to attach the bootstrap and the menu was awful without the bootstrap part I used, forgive me for that.
Big hug and thanks in advance!
Welcome to the Sopt. It’s interesting that you post the code here too, so it makes it easier to analyze and makes your question independent of the site where the code is. The site has how you add code similar to jsfiddle, just click on a sheet icon with the symbol
<>
– user28595
Dude, why not use a css framework? Have so many, and with LESS or SASS you can customize Foundation or bootstrap to leave it your way
– rzani
Dude, why not create your own css? With so many frameworks, so extensive, will you need all of their css? And if there is a layout problem, will you have to browse through all the files or have to keep rewriting properties? Or get stuck in a css framework? I’m not saying these frameworks are bad. But they’re not always the best output.
– celsomtrindade
@Diegofelipe Thanks for the tip Diego, I will remember her for when you need to ask again on the site.
– R. Zanel
@rzani So friend, I’ve heard and even seen a little in use the SASS but as I’m still starting in CSS I thought it was more prudent to first learn it first rs..
– R. Zanel
@Celsomtrindade I understand what Celsom is saying, I decided to do with bootstrap for the ease in terms of responsiveness that Grids provide. At the moment I made the Side Menu with only own codes (apart from the Glyphicons), I will take your tip and try to continue exploring making own codes so I am not dependent on Frameworks. Thanks for the tip buddy!
– R. Zanel
Yes yes, it’s just an observation =D Sometimes it’s good to use, sometimes not. I use only the grid system, the rest I create myself. But it is all a matter of analyzing the project, budget, etc..
– celsomtrindade