Profile

Cover photo
Bhavin Doshi
Lives in
118 followers|458,126 views
AboutPostsPhotosVideos

Stream

Bhavin Doshi

Shared publicly  - 
 
Extending TinyMCE Editor to Support Boostrap Style Formatting in Orchard and other content management systems
1
Add a comment...
 
Question regarding UIKIT:
Is it possible to create grid dynamically.

Instead of specifying directly:
<div class="uk-grid">
   <div class="uk-width-1-2">...</div>
   <div class="uk-width-1-2">...</div>
</div>

I have HTML:
<div id="xyz">
</div>

I am specifying in my less file.
#xyz {
  .uk-grid;
}

So it does have .uk-grid css information but in uk-grid.less there are rules where class=uk-grid which does not get trigger.

Is there any way to tirgger those rules?

thanks in advance.
1
Bhavin Doshi's profile photoMikael Pettersson's profile photo
2 comments
 
You can just use the 'even grid column' functionality. http://getuikit.com/docs/grid.html#even-grid-columns

That will let you do the following:

<div class="uk-grid uk-grid-width-1-1 uk-grid-width-medium-1-2 uk-grid-width-large-1-4">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</div>
Add a comment...
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Previously
Links