473,378 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Nested flexboxes

KeredDrahcir
426 256MB
I'm trying out using flex boxes to get columns to have the same height.

My page layout looks like this:
Expand|Select|Wrap|Line Numbers
  1. <body>
  2.     <div id="container">
  3.         <div id="site_header">
  4.         </div>
  5.  
  6.         <div id="menu">
  7.         </div>
  8.  
  9.         <div class="page_header">
  10.         </div>
  11.  
  12.         <div id="content">
  13.                <div class="left">
  14.                 <div class="left_content_box">
  15.                 </div>
  16.  
  17.                 <div class="search">
  18.                 </div>
  19.  
  20.                 <div class="left_content_box">
  21.                 </div>
  22.             </div>
  23.  
  24.             <div class="main_content" style="padding-right: 0 !important; padding-left: 0 !important; width: 584px !important;">
  25.                 <div class="content_header ">
  26.                 </div>
  27.  
  28.                    <div class="content">
  29.                        <div class="breadcrumb">
  30.                     </div>
  31.  
  32.                     <div class="main">
  33.                     </div>
  34.                 </div>
  35.  
  36.                 <div class="right">
  37.                     <div class="right_content_box">
  38.                     </div>
  39.  
  40.                     <div class="right_content_box">
  41.                     </div>
  42.                 </div>
  43.  
  44.                 <div class="content_footer">
  45.                 </div>
  46.             </div>
  47.         </div>
  48.  
  49.         <div class="page_footer">
  50.         </div>
  51.  
  52.         <div id="site_footer">
  53.         </div>
  54.     </div>
  55. </body>
At the present I've used flex boxes to get the left column and the main column to be the same height. What I need to do is get the content division and the right division the same height. I tried doing but all it did was placed the right division below the content division.

This is my css
Expand|Select|Wrap|Line Numbers
  1. #container {
  2.     margin: 0 auto;
  3.     text-align: left;
  4.     width: 980px;
  5. }
  6.  
  7. #content {
  8.     display:-moz-box; /* Firefox */
  9.     display:-webkit-box; /* Safari and Chrome */
  10.     display:-ms-flexbox; /* Internet Explorer 10 */
  11.     display: flex;
  12.     flex-flow: row;
  13.         justify-content: center;
  14.     margin: 0 auto;
  15.     width: 980px;
  16.     min-height: 600px;
  17. }
  18.  
  19. .content {
  20.     float: left;
  21.     min-height: 500px;
  22.     padding: 0 10px 0 28px !important;
  23.     width: 317px;
  24. }
  25.  
  26. .main_content {
  27.     -webkit-flex-grow: 0;
  28.     -webkit-flex-shrink: 0;
  29.     -webkit-flex-basic: auto;
  30.     -moz-flex-grow: 0;
  31.     -moz-flex-shrink: 0;
  32.     -moz-flex-basic: auto;
  33.     -ms-flex-grow: 0;
  34.     -ms-flex-shrink: 0;
  35.     -ms-flex-basic: auto;
  36.     min-height: 500px;
  37.     padding: 0 28px !important;
  38.     width: 528px !important;
  39.     margin: 30px 28px 30px 1px;
  40. }
  41.  
  42.  
  43. .content_footer {
  44.     float: left; 
  45.     width: 742px;
  46.     padding: 0 !important;
  47.     margin: 0;
  48. }
  49.  
  50. .site_footer {
  51.     margin: 0;
  52. }
  53.  
  54. .page_footer {
  55.     width: 970px;
  56.     padding: 0 5px;
  57.     margin: 0;
  58. }
  59.  
  60. .content_header {
  61.     float: left; 
  62.     width: 564px;
  63. }
  64.  
  65. .site_header {
  66.     margin: 0;
  67.     padding: 0;
  68. }
  69.  
  70. .page_header {
  71.     width: 980px;
  72.     padding: 0;
  73.     margin: 0;
  74. }
  75.  
  76. .left   {
  77.     -webkit-flex-grow: 0;
  78.     -webkit-flex-shrink: 0;
  79.     -webkit-flex-basic: auto;
  80.     -moz-flex-grow: 0;
  81.     -moz-flex-shrink: 0;
  82.     -moz-flex-basic: auto;
  83.     -ms-flex-grow: 0;
  84.     -ms-flex-shrink: 0;
  85.     -ms-flex-basic: auto;
  86.     min-height: 500px;
  87.     padding: 0 !important;
  88.     width: 336px !important;
  89.     margin: 30px 0 30px 28px;
  90. }
  91.  
  92. .right  {
  93.     float: right;
  94.     padding: 0 !important;
  95.     width: 228px !important;
  96.     margin-left: 1px;
  97. }
Is there a way to nest the content and the right box inside the main content box?
Feb 7 '14 #1
1 2310
KeredDrahcir
426 256MB
Can't anyone help me? If you need mpre detail let me know. I'm stuck without being able to fix this.
Mar 7 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Glen | last post by:
I have a Struts action form which contains a bean. I am trying to display a bean retrieved from the database in this form using the nested tag. Can anyone help me? I continue to get an error...
6
by: Andy Baker | last post by:
Hi there, I'm learning Python at the moment and trying to grok the thinking behind it's scoping and nesting rules. I was googling for nested functions and found this Guido quote:...
3
by: Erik Bongers | last post by:
Hi, Nested classes only seem to be able to access static members of the surrounding class : class SurroundingClass { public: class InnerClass { public:
10
by: nimmi_srivastav | last post by:
Below you will see an example of a nested conditional expression that this colleague of mine loves. He claims that it is more efficient that a multi-level if-else-if structure. Moreover, our...
6
by: B0nj | last post by:
I've got a class in which I want to implement a property that operates like an indexer, for the various colors associated with the class. For instance, I want to be able to do 'set' operations...
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
1
by: Tomas Sieger | last post by:
Hi all, I'm in doubt with the following code: class Base { public: class Nested {}; }; class Derived:public Base { public: class Nested {
77
by: Peter Olcott | last post by:
http://www.tommti-systems.de/go.html?http://www.tommti-systems.de/main-Dateien/reviews/languages/benchmarks.html The above link shows that C# is 450% slower on something as simple as a nested loop....
7
by: patrick j | last post by:
Hi I'm wondering about lists with nested lists as one does on a Saturday afternoon. Anyway below is an example of a list with a nested list which the iCab browser's very useful HTML...
3
by: jdurancomas | last post by:
Dear all, I'm trying to declare the operator++ to a nested class. The nested class is not template but the container it is. The code used in teh sample program is included bellow: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.