Solved

Divs inside parent sharing space

Posted on 2013-12-04
6
263 Views
Last Modified: 2013-12-09
Hello Experts,

I got a bit confused designing one component and would be greatfull for any help.
Basicaly a got parent div with 2 divs inside. Thing i want to archive is when .new-epmloyees div (can't take more then 50% of space) got less content in it second .birthdays div  should take all parent free space avaliable and still remain scrollable.

Example of what i already messed up could be found here: http://cssdeck.com/labs/adlq1ndp

Thanks in advance,
Silver
0
Comment
Question by:Silverlay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39696934
It looks like it works.   When I take away some of the links on the left side, the right moves over as you expect.  What am I missing?   (using chrome)
0
 
LVL 5

Author Comment

by:Silverlay
ID: 39697026
Take a look now, i've added few elements. Right side not scrolling on buttons, coz it's actualy strech over parent container and not fitting it.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39697059
On the birthdays class, try adding overflow:auto; then add a lot more links and see what happens.  example http://cssdeck.com/labs/xssryrm6
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:Silverlay
ID: 39697558
Get scrollbar to the end. Second div not showing full content.
0
 
LVL 5

Accepted Solution

by:
Silverlay earned 0 total points
ID: 39697599
Got it. All we have to do is remove

  min-width: 50%;
  max-width: 100%;
  display: inline-block;

from .birthdays declaration, and it works like charm.
0
 
LVL 5

Author Closing Comment

by:Silverlay
ID: 39705744
Removing thouse lines would make second div always stretch to fit parent and it's just what i needed.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question