Can Modena vertically align containers?

Locked
pholding
Posts: 27
Joined: 25 Feb 2014, 21:19

01 Sep 2015, 01:02

Hi

Does the Modena layout library provide any capability to vertically align two Containers without manually adding EmptyBoxes so that the containers are the same height? For example I'm using the following code two render two containers that normally sit side-by-side.

Code: Select all

<div class="Container50">
    <div class="ContainerIndent">
        <div class="Card ShadowEffect">
            <div class="TexAlCenter">
                <h2>Session Info</h2>
            </div>
            <div class="EmptyBox10"></div>
                <ul>
                    <!-- Multiple li tags omitted -->
                </ul>
            <div class="EmptyBox10"></div>
        </div>
    </div>
</div>

<div class="Container50">
    <div class="ContainerIndent">
        <div class="Card ShadowEffect">
            <div class="TexAlCenter">
                <h2>Request Info</h2>
            </div>
            <div class="EmptyBox10"></div>
            <ul>
                <!-- Multiple li tags omitted -->			
            </ul>
            <div class="EmptyBox10"></div>
        </div>
    </div>
</div>
This results in the following being rendered in the browser. I've added the dotted red line to indicate how the containers should be aligned.
Image

Kind Regards

Paul

daytona
Posts: 33
Joined: 05 Mar 2015, 09:36

06 Sep 2015, 14:16

Hi,

We have not support for this feature at our layouts with CSS. Because there are technical and user based limitations for this.

Maybe, you can use third party javascript library solutions, for example;
http://tsvensen.github.io/equalize.js/ and here is an example for this http://jsfiddle.net/4QTNP/3/
or
https://css-tricks.com/snippets/jquery/ ... s-of-divs/

Kind regards,

Cem

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Sep 2015, 07:52

PrimeFaces Grid CSS can do this though using css flex option, heights are same.

http://www.primefaces.org/showcase/ui/panel/grid.xhtml

http://www.w3schools.com/cssref/css3_pr_flex.asp


Locked

Return to “Modena”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests