Framework: Meteor
I am utilizing Handlebars to transmit data to the client.
This layout is defined as post.html:
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="{{image}}">
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4"><a href="/{{slug}}">{{title}}</a><i class="mdi-navigation-more-vert right"></i></span>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">{{title}}<i class="mdi-navigation-close right"></i></span>
<p class="tobeappeded">{{body}}</p>
</div>
</div>
Take note of the Card
layout.
Currently it is responsive and functioning properly. I do not have any issues with its responsiveness. How can this be achieved without using JavaScript?
I plan on completely revamping this layout, incorporating different elements within it.
Is it possible to accomplish this without relying on JavaScript? Perhaps using JavaScript solely for determining screen size or other specific functions in order to determine which layout to render.
[Think of it as Media Queries, but for HTML/JS]
You could also draw parallels to how Fragments
operate in Android applications.