I have a 3 column row. On each column I have a thumbnail div, a title div and a details div. I am able to use Equalizer to make all the columns have the same height but what I would like to do is to have all the title divs to be of equal height across the same row so everything can line up nicely.
I have created a codepen and a screenshot. Any help would be appreciated.
http://codepen.io/renny/pen/VLNZRx
<div class="row">
<div class="small-12 medium-12 columns">
<div class="row" data-equalizer="row1">
<div class="grid-item small-12 medium-4 large-4 columns" data-equalizer-watch="row1">
<article class="tease tease-event">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
</div>
<div class="title">
Event Banana
</div>
<div class="details">
<ul class="no-bullet">
<li>
Date: Mon 12 Oct 3:00pm to 4:00pm
</li>
<li>
Location: My Place
</li>
<li>
Eventbrite: https://www.eventbrite.co.uk/e/unusual-test-tickets-18079722938
</li>
</ul>
</div>
</article>
</div>
<div class="grid-item small-12 medium-4 large-4 columns" data-equalizer-watch="row1">
<article class="tease tease-event">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
</div>
<div class="title">
Monday Event Number 2, with quite a long title, let's see how we manage to make it fit
</div>
<div class="details">
<ul class="no-bullet">
<li>
Date: Mon 12 Oct 3:00pm to 4:00pm
</li>
<li>
Location: My Place
</li>
<li>
Eventbrite: https://www.eventbrite.co.uk/e/unusual-test-tickets-18079722938
</li>
</ul>
</div>
</article>
</div>
<div class="grid-item small-12 medium-4 large-4 columns" data-equalizer-watch="row1">
<article class="tease tease-event">
<div class="thumbnail">
<img src="http://placehold.it/300x200" alt="">
</div>
<div class="title">
Voluptatem vel facere illum quaerat similique deleniti
</div>
<div class="card-content">
<ul class="no-bullet">
<li>
Date: Mon 12 Oct 3:00pm to 4:00pm
</li>
<li>
Location: My Place
</li>
<li>
Eventbrite: https://www.eventbrite.co.uk/e/unusual-test-tickets-18079722938
</li>
</ul>
</div>
</article>
</div>
</div>
</div>
</div>
Thanks!
Put an equalizer attrib on the main div and watch on individual title divs like so (omitting most of your code for brevity):
<div class="row" data-equalizer="title"> <-- this is your main div just before the first small-12
...rest of your code goes here
<div class="title" data-equalizer-watch="title"> <-- add watch on each of the title divs
Event Banana
</div>
...rest of your code goes here
<div class="title" data-equalizer-watch="title">
Monday Event Number 2, with quite a long title, let's see how we manage to make it fit
</div>
...rest of your code goes here
<div class="title" data-equalizer-watch="title">
Voluptatem vel facere illum quaerat similique deleniti
</div>
</div>
*tested with v5.5.2
Related
When using tabs in Materialize CSS, each tab is as tall as its content.
Info tab
Feedback tab
What do I do to make all tabs as tall as the tallest tab?
I know I can set a minimum height for the divs, but what I am really interested is to know if I can do it with a materialize helper or a materialize class.
HTML:
<div class="container">
<div class="row card hoverable">
<div class="col s12">
<ul class="tabs">
<li class="tab col s3"><a class="active" href="#test1">Info</a></li>
<li class="tab col s3">Feedback</li>
<li class="tab col s3 disabled">QA</li>
</ul>
</div>
<div id="test1" class="col s12">
<div class="row">
<div class="col">
<h5>Location</h5>
<p>Lorem ipsum dolor sit amet</p>
<p>consectetur adipiscing elit</p>
<p>Cras vestibulum</p>
</div>
<div class="col push-s1">
<h5>Available Timings</h5>
<p>Mon: 8AM - 9PM</p>
<p>Tue: 8AM - 9PM</p>
<p>Thu: 8AM - 9PM</p>
<p>Sat: 10AM - 2PM</p>
</div>
</div>
<div class="row">
<div class="col">
<strong>ID:</strong> ABBS1243xA
</div>
</div>
</div>
<div id="test2" class="col s12">
<ul>
<li>Sorry, no feedback available at this time.</li>
</ul>
</div>
<div id="test3" class="col s12">Test 3</div>
</div>
</div>
I have a codepen here.
add this in your java-script
$(".tabs-content").css('height','1000px');
"tabs-content" is generated by materialize java script. Here I address that class using my java-script. 1000px can vary according to your need.
Hope this helps.
I want to add the wordpress post loop with posts from category-name feature to it, for alternative column. Here is the image sample of what i am trying to achieve, and below the image is the html i have built to work it, thanks.
here is the image sample
here is my code
<div class="row featured">
<div class="grid-box grid-box-1 item-featured">
<a href="http://www.marchettidesign.net/fullby/demo-biggrid/2015/01/26/video-post/">
<div class="caption">
<div class="cat"><span>News</span></div>
<div class="date-feat"><i class="fa fa-clock-o"></i> 26 Jan , 2015
<i class="fa fa-video-camera"></i> Video
</div>
<h2 class="title">Video Post with Featured Image</h2> </div>
<div class="quad wp-post-image"> <img src="/asstes/image1.jpg"/> </div>
</a>
</div>
<div class="grid-box grid-box-2 item-featured">
<a href="http://www.marchettidesign.net/fullby/demo-biggrid/2015/01/26/post-with-more-tag/">
<div class="caption">
<div class="cat"><span>Lifestyle</span></div>
<div class="date-feat"><i class="fa fa-clock-o"></i> 26 Jan , 2015
<i class="fa fa-video-camera"></i> Video
</div>
<h2 class="title">Post With More Tag</h2>
</div>
<div class="vm-featured"> <img src="/asstes/image1.jpg"/> </div>
</a>
</div>
<div class="grid-box grid-box-3 item-featured">
<a href="http://www.marchettidesign.net/fullby/demo-biggrid/2015/01/26/vimeo-video-post/">
<div class="caption">
<div class="cat"><span>What's New</span></div>
<div class="date-feat"><i class="fa fa-clock-o"></i> 26 Jan , 2015
</div>
<h2 class="title">Vimeo Video Post</h2>
</div>
<div class="quad wp-post-image"> <img src="/asstes/image1.jpg"/> </div>
</a>
</div>
<div class="grid-box grid-box-4 item-featured">
<a href="http://www.marchettidesign.net/fullby/demo-biggrid/2015/01/26/post-with-image-and-text/">
<div class="caption">
<div class="cat"><span>News</span></div>
<div class="date-feat"><i class="fa fa-clock-o"></i> 26 Jan , 2015
</div>
<h2 class="title">Post with Image and text</h2>
</div>
<div class="quad wp-post-image"> <img src="/asstes/image1.jpg"/> </div>
</a>
</div>
I want to create this layout using Bootstrap. It should be responsive. I am unable to get things into place as I am using different rows for each image.
My code: https://jsfiddle.net/dxs2gdkg/
<!-- Page Content -->
<div class="container">
<div class="row">
<div class="col-md-4 content-image">
<img src="http://placehold.it/200x200">
</div>
<div class="col-md-4">
<h3>State of Texas Approved</h3>
<h2>Online Drivers Ed</h2>
</div>
<div class="col-md-4 featured-image">
<img src="http://placehold.it/300x300">
</div>
</div>
<div class="row">
<div class=" col-md-12 main-list">
<ul>
<li>America's #1 Driving School - Most Selected Course Provider</li>
<li>Save a trip to the DPS! Official test included in the Course</li>
<li>100% Pass Rate - Guaranteed to Pass the Official Test</li>
<li>Mobile, Tablet or Computer - Convenient, Self-Paced Course</li>
</ul>
<div class="small-images">
<img src="http://placehold.it/200x100">
<img src="http://placehold.it/200x100">
</div>
</div>
</div>
You'd need one row to place all content, divide it into two columns. After left column should also be a row to be divided further into two columns.
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<img src="http://placehold.it/200x200" />
</div>
<div class="col-md-6">
<h3>State of Texas Approved</h3>
<h2>Online Drivers Ed</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<ul>
<li>America's #1 Driving School - Most Selected Course Provider</li>
<li>Save a trip to the DPS! Official test included in the Course</li>
<li>100% Pass Rate - Guaranteed to Pass the Official Test</li>
<li>Mobile, Tablet or Computer - Convenient, Self-Paced Course</li>
</ul>
<div class="small-images">
<img src="http://placehold.it/200x100">
<img src="http://placehold.it/200x100">
</div>
</div>
</div>
</div>
<div class="col-md-6">
<img src="http://placehold.it/300x300" />
</div>
</div>
</div>
I have an app that I'm building with Bootstrap 4. I need to center some icons underneath an image. I have a Bootply here. My code looks like this:
<div class="container">
<br>
<div class="row">
<div class="col-lg-6">
<div class="row">
<div class="col-md-3">
<img alt="Picture" src="http://cdn.bgr.com/2015/11/bill-gates.jpg" class="img-circle center-block" style="max-height:6.0rem;">
<br>
<ul class="list-inline">
<li class="list-inline-item"><i class="fa fa-twitter"></i></li>
<li class="list-inline-item"><i class="fa fa-google-plus"></i></li>
<li class="list-inline-item"><i class="fa fa-linkedin"></i></li>
</ul>
</div>
<div class="col-md-9">
<div><strong>Bill Gates</strong></div>
<p>
Here is some information about Bill Gates.
</p>
</div>
</div>
</div>
</div>
</div>
My question is, how do I horizontally center the three icons underneath my image so that it looks like a centered toolbar?
On your UL tag, remove the inline-list class, it's enforcing a float.
I try to create a side menu and an items list with bootstrap, but i get a margine shift error see what it looks like. I have modified the thumnail html structure so the image would be at the left
this is the html of the file
<div class="row-fluid">
<!-- LEFT SIDE CATEGORIES-->
<div class="span3">
<div class="well" >
<ul id="cat-navi" class="nav nav-list">
<li class="nav-header">Shop by Product</li>
<li class="active">Active category</li>
<li>New in: Category</li>
</ul>
</div>
<!-- /well-->
</div>
<!-- /left SIDE-->
<!-- CONTENT SIDE-->
<div id="fixthis" class="span9">
<div class="row-fluid articles-grid">
<!-- ITEM -->
<div class="thumbnail span12">
<!-- IMAGE CONTAINER-->
<div class="span6"> <img src="images/thumb.jpg" alt="post image" /> </div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
<!-- END ITEM -->
<!-- ITEM -->
<div class="thumbnail span12">
<!-- IMAGE CONTAINER-->
<div class="span6"> <img src="images/thumb.jpg" alt="post image" /> </div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
<!-- END ITEM -->
</div>
<div class="row-fluid">
<div class="well">
<div class="row-fluid">
<div class="span8">
<p class="lead text-center"> YOUR RECENT MARKETING SLOGAN OR OFFER! </p>
</div>
<div class="span4"> <a class="btn btn-warning btn-large btn-block" href="#">BUY NOW!</a> </div>
</div>
</div>
</div>
</div>
<!-- /CONTENT SIDE-->
</div>
how do i fix this?
Edit: New html
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="thumbnail">
<!-- IMAGE CONTAINER-->
<div class="span6"> <img src="images/thumb.jpg" alt="post image" /> </div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
</div>
<div class="row-fluid">
<div class="thumbnail">
<!-- IMAGE CONTAINER-->
<div class="span6"> <img src="images/thumb.jpg" alt="post image" /> </div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
</div>
</div>
</div>
You are supposed to put a new fluid row after every span.
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<!-- content -->
</div>
<div class="span6">
<!-- content -->
</div>
</div>
</div>
</div>
But, anyway there is an useless span12, you can just directly use the two span6:
<div class="row-fluid">
<div class="span6">
<!-- content -->
</div>
<div class="span6">
<!-- content -->
</div>
</div>
using your last HTML, you are missplacing the thumbnail div, remove it completely and add to the img wraper div, so the wrpper would be span6 thumbnail
here's the DEMO: http://jsfiddle.net/balexandre/dj3AW/
and the code:
<div class="row-fluid">
<!-- LEFT SIDE -->
<div class="span3">
<div class="well" >
<ul id="cat-navi" class="nav nav-list">
<li class="nav-header">Shop by Product</li>
<li class="active">Active category</li>
<li>New in: Category</li>
</ul>
</div>
<!-- /well-->
</div>
<!-- RIGHT SIDE -->
<div class="span9">
<div class="row-fluid">
<div class="span12">
<!-- 1st ROW -->
<div class="row-fluid">
<!-- IMAGE CONTAINER-->
<div class="span6 thumbnail">
IMG
</div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
<!-- 2nd ROW -->
<div class="row-fluid">
<!-- IMAGE CONTAINER-->
<div class="span6 thumbnail">
IMG
</div>
<!--END IMAGE CONTAINER-->
<!-- CAPTION -->
<div class="span6">
<div class="caption">
<h3 class="">Featured product title</h3>
<p class="">This project presents beautiful style graphic & design. Bootstraptor provides modern features</p>
<p> <a class="" href="#" title="">Read more →</a> </p>
</div>
</div>
<!--END CAPTION -->
</div>
</div>
</div>
</div>
</div>