set same height of divs

15 views
Skip to first unread message

Pushpendra IndiaMART

unread,
Apr 28, 2015, 3:42:59 AM4/28/15
to ang...@googlegroups.com
Hi,
  I have following structure:
            <div class="row directive-example" data-ng-repeat="cat in totalCats" >
              <div class="col" data-ng-repeat="item in cat">
                  <a ng-href="#/cat/{{item.id}}"><span id="test"><img class="f-dir-img" ng-style="{ backgroundImage: variableInScope + '/some/string' }" ng-src="{{item['img-icon-url']}}" id="{{item.id}}"><br/></span><span class="f-size1 f-bold">{{item.name}}</span></a>
              </div>
            </div>
Now I have to set the height of all span with id "test" in a row(heigth to be set is the maximum height of spans in a row after rendering ie. math.max(span1,span2, span3)).
I am unable to do it.
Please help me.


Follow IndiaMART.com for latest updates on this and more: Mobile Channel:

Watch how IndiaMART Maximiser helped Mr. Khanna expand his business. kyunki Kaam Yahin Banta Hai!!!

Sander Elias

unread,
Apr 28, 2015, 6:58:15 AM4/28/15
to ang...@googlegroups.com
Hi Pushpendra,

You can solve that with flexbox. Or is there some reason you can't use flexbox? (CSS)

Regards
Sander

Pushpendra IndiaMART

unread,
Apr 29, 2015, 2:27:41 AM4/29/15
to ang...@googlegroups.com
Thank you so much Sander, its working.

Thanks & Best Regards,
Pushpendra | Sr. Software Programmer
+91-9718186128
Indiamart Intermesh Ltd. | Ext-238
Advent Navis Business Park | Plot No.7, 8th Floor | Sector -142.
Greater Noida Expressway | Noida , UP – 201305


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/7xuSrZ-oG3k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages