Responsiveness with Tailwind css in React - css

Hello everyone for a bootcamp project I have created a blog page and while trying to make it responsive, I messed up styling too. I am attaching the figma version, my code and what I get as a reflection. I need your help with styling and responsiveness please.
figma version
what I get
rest of what i get]
import React from 'react';
import meditation from './images/meditation.png';
import trauma from './images/trauma.png';
import anxiety from './images/anxiety.png';
import SubsInput from '../../shared/subsInput/SubsInput';
function Blog() {
return (
<div className=" mx-auto text-justify md:m-0 ">
<img
className="justify-center rounded mx-auto py-7 p-12"
src={meditation}
alt="meditation"
/>
<div className="max-w-[800px] mt-[90px] w-full h-screen mx-auto flex flex-col justify-center ">
<h1 className="py-14 mt-6 text-bold text-3xl">
MENTAL HEALTH AND TECHNOLOGY
</h1>
<p className="uppercase mb-4">
Technology and mental well-being might seem like profoundly
antagonistic terms. However, there are excellent digital tools to help
you reach mindfulness and to practice meditation. You can even use
smartphone apps, virtual reality solutions and digital devices as a
form of relieving stressing and achieving digital detox – as, after a
while, you will be able to practice all types of anti-anxiety skills
on your own. So, let The Medical Futurist show you how you can enhance
your mental and emotional health with the help of technology.
</p>
<h3 className="uppercase py-5 text-xl ">
THE NEED FOR TAKING CARE OF OUR EMOTIONAL HEALTH
</h3>
<p className="uppercase">
“Just as we observe physical hygiene to stay well, we need to
cultivate a kind of emotional hygiene too,” wrote the Dalai Lama on
his Twitter-feed. There are three crucial points around His Holiness’
statement. First and foremost, the popularity of health-enhancing,
physically active lifestyle is soaring worldwide. Nevertheless,
there’s always room for improvement: the WHO says that globally, 23
percent of adults and 81 percent of school-going adolescents are not
active enough. According to the organization, adults aged 18-64 should
do at least 150 minutes of moderately intense physical activity each
week, which is not unaccomplishable. Moreover, the numerically and
statistically driven 21st-century mind could take a great inspiration
and power from the various fitness trackers and wearables.
</p>
<p className="uppercase py-6">
Secondly, emotional hygiene seems to be thrown into the shade
nowadays. Somehow, the culture of busyness prevents us from squeezing
some time for mental health into our packed schedules. Information is
pouring on us from millions of communication channels; we are
connecting with hundreds of ‘friends’ on social media, we are obsessed
with data due to the fear of missing out and time management slices up
our days into meetings and to-do-lists.
</p>
<p className="uppercase">
The pressure to perform and the stress to achieve is the air every
busy-bee is breathing. However, turbulent lifestyle comes with a
price. No wonder so many people have mental health issues. In the US,
that means one in five adults – more than 40 million Americans! On the
old continent, 27 percent of the population has to cope with mental
disorders, which means 83 million struggling Europeans. In Asia, the
prevalence of depression is 20 percent in Thailand, 19.9 percent in
Taiwan, 19.4 percent in Korea, 17.5 in Malaysia and 16.5 percent in
China.
</p>
</div>
<div className="max-w-[800px] mt-[-200px] w-full h-screen mx-auto flex flex-col justify-center">
<h3 className="uppercase text-xl font-weight:600 sm:m-0">
Sign up for The Healing blog
</h3>
<h6 className="uppercase mb-4 py-2 font-weight:600">
A weekly, ad-free Blog that helps you stay in the know.
</h6>
<SubsInput className="" />
</div>
<div className="flex justify-center mb-10">
<div className="w-5/6 flex flex-col lg:flex-row justify-between gap-4">
<div className="w-full lg:w-6/12 relative">
<img
className=" "
title="HEAL FROM TRAUMA"
src={trauma}
alt="trauma"
/>
<span className="absolute bottom-1/4 left-5 w-max ">
<p className="text-white text-start text-2xl font-bold bg-slate-400 opacity-90">
HEAL FROM
</p>
<p className="text-white text-start text-2xl font-bold bg-slate-400 opacity-90 mt-1">
TRAUMA
</p>
</span>
</div>
<div className="w-full lg:w-6/12 relative">
<img className="" src={anxiety} alt="anxiety" />
<span className="absolute top-5 left-3 w-2/6">
<p className="font-medium text-sm md:text-lg text-start">
TELL ME ALL I NEED TO KNOW ABOUT ANXIETY
</p>
</span>
</div>
</div>
</div>
</div>
);
}
export default Blog;
I need to meet the deadline I would be very happy if I get help with styling and responsiveness.

Related

Bootstrap Grid Framework within Wordpress Theme Issue

I am having an issue with bootstrap grid framework within Wordpress. I am trying to create a grid. 2 Rows. First row is one column and second row is three columns with a little space in between them. The columns on the site are stacked as rows and not side by side. Bootstrap documentation says if you don't use something like sm-3 after col, then it will generate widths automatically.
Page in question: http://dev.dragonscaletech.com/our-story/
<div id="shoutOuts">
<div class="container">
<div class="row">
<div class="col">
<h1>Shout Outs!</h1>
</div>
</div>
<div class="row">
<div class="col">
<h4>The TitanTough21 Foundation</h4><br>
<p>An amazing foundation formed to find a cure for Li-Fraumeni Syndrome. Li-Fraumeni Syndrome is a rare genetic disorder that greatly increases the risk of developing several types of cancer, particularly in children and young adults. In addition,
they work hard to help families pay their cancer bills.</p>
<p>Learn more at: www.TitanTough21.org</p>
</div>
<div class="col">
<h4>47 Films</h4><br>
<p>A Digital Filmmaking Company based in Broward County, Florida.</p>
<p>Really, a great company with great people.</p>
<p>Learn more on Facebook: 47FilmsLLC</p>
</div>
<div class="col">
<h4>Seagull Services</h4><br>
<p>Assists individuals with life challenges by providing education, training, employment, residential services, community integration and support services.</p>
<p>We are working with Seagull Services to assemble a manageable quantity of Back Scratch Scrubbers for us!</p>
<p>Learn more at: www.SeagulServices.org</p>
</div>
</div>
</div>
The issue occurs because you are trying to use Bootstrap 4 syntax with Bootstrap 3 running on your site. Those 2 don't mix well.
Solution: Replace col with col-xs-4 in the second row and with col-xs-12 in the first row.
Alternatively, load Bootstrap 4 files on your site.
P.S. Remember that both the col class in Bootstrap 4 as well as col-xs-* in Bootstrap 3 are non-responsive i.e. those classes define what happens on the smallest screens and you probably don't want 3 columns on the smallest screens. So, adjust accordingly.
Searched quite a bit on google and discovered the container-fluid class. Then I searched Stack Overflow and found this post.
Bootstrap 3 adding gutters to the grid system
I modified the code to this and got exactly what I'm looking for! Thank you to all that gave me more things to check out.
<div id="shoutOuts">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1>Shout Outs!</h1>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<div class="container-fluid">
<h4>The TitanTough21 Foundation</h4><br>
<p>An amazing foundation formed to find a cure for Li-Fraumeni Syndrome. Li-Fraumeni Syndrome is a rare genetic disorder that greatly increases the risk of developing several types of cancer, particularly in children and young adults. In addition,
they work hard to help families pay their cancer bills.</p>
<p>Learn more at: www.TitanTough21.org</p>
</div>
</div>
<div class="col-sm-4">
<div class="container-fluid">
<h4>47 Films</h4><br>
<p>A Digital Filmmaking Company based in Broward County, Florida.</p>
<p>Really, a great company with great people.</p>
<p>Learn more on Facebook: 47FilmsLLC</p>
</div>
</div>
<div class="col-sm-4">
<div class="container-fluid">
<h4>Seagull Services</h4><br>
<p>Assists individuals with life challenges by providing education, training, employment, residential services, community integration and support services.</p>
<p>We are working with Seagull Services to assemble a manageable quantity of Back Scratch Scrubbers for us!</p>
<p>Learn more at: www.SeagulServices.org</p>
</div>
</div>
</div>
</div>
you could use col-md-offset-2 class ass described here in Bootstrap 3, if you are using Bootstrap 4 there are no more Offset classes, so you should use auto margins because Bootstrap 4 use flexbox
this certainly solves your issue

Bootstrap: Col-md-3 Not starting from left on new line

How to make col-md-3 to start on new line from left. It seems its auto fitting it self under a column depending on text size.
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<section id="services">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Services</h1>
<h4>With our knowledge and experience, we are aware of the challenges that students face when they wish to study overseas. So, keeping this in mind we have made our process so simple for these students that each and every task from admission procedure to visa interview to making travel arrangements is easy-going and hassle free. </h4>
<h4>We are here to help you at each and every stage of the process.</h4>
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Counseling and course & university selection</h4>
<h5>We will help you choose the right course and best university that is perfect and suits your academic background, financial background, and future plans.</h5>
</div>
<div class="col-md-3">
<h4>Scholarships</h4>
<h5>There are many foreign universities that offer scholarships to students on the basis of their academic profiles. We evaluate the possibilities of scholarship opportunities for the students and ensure that the eligible students benefit the opportunity of getting scholarships</h5>
</div>
<div class="col-md-3">
<h4>Documents preparation for application</h4>
<h5>We provide our expert guidance in preparing the application file and also the documents like transcripts, letter or recommendations etc that may increase the chances of admissions</h5>
</div>
<div class="col-md-3">
<h4>Follow-ups with universities to secure admissions</h4>
<h5>We do follow-ups on your behalf with the university admission office to ensure that you secure the admissions</h5>
</div>
<div class="col-md-3">
<h4>Visa documentation</h4>
<h5>We provide our expert assistance for preparing the visa documents according to the latest rules of the embassy.</h5>
</div>
<div class="col-md-3">
<h4>Bank loan and travel arrangements</h4>
<h5>We will assist you if you are looking for the educational loans and we also take care of all your travel arrangements like booking air tickets, travel insurance, and foreign exchange. Before you travel, there will be pre-departure orientation providing you the information on do’s and don’ts and will tell you about the food, travel, culture, transport etc of the country where you are traveling.</h5>
</div>
<div class="col-md-3">
<h4>Finding accommodation</h4>
<h5>We will help you find the best accommodation options that will suit your needs.</h5>
</div>
<div class="col-md-3">
<h4>Culture understanding </h4>
<h5>We will give you the information of the climatic conditions and the cultural differences so that you are mentally prepared and can adapt the new environment easily and quickly</h5>
</div>
</div>
</div>
</div>
</section>
How to make it work like actual bootstrap grid is supposed to do and how to make the height of each col same.
Thanks.
If you can't or don't want to apply a row for every 12 Columns then you can clear every nth Column based on a media query that's inline with your columns breakpoint:
Example CSS;
#media (min-width: 992px) {
.col-md-3:nth-child(4n+1) {
clear: left;
}
}
You obviously do not want to directly apply this rule to a column so use a unique selector to do this.
Note: you are also nested columns inside another column. Either leave the first col-md-12 in it's own row and start a new one or apply a new row inside the nested ones. See Grid Nesting.
Working Example: Run at FullPage
#media (min-width: 992px) {
.item:nth-child(4n+1) {
clear: left;
}
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<section id="services">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Services</h1>
<h4>With our knowledge and experience, we are aware of the challenges that students face when they wish to study overseas. So, keeping this in mind we have made our process so simple for these students that each and every task from admission procedure to visa interview to making travel arrangements is easy-going and hassle free. </h4>
<h4>We are here to help you at each and every stage of the process.</h4>
</div>
</div>
<div class="row">
<div class="col-md-3 item">
<h2>1</h2>
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3 item">
<h2>2</h2>
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3 item">
<h2>3</h2>
<h4>Counseling and course & university selection</h4>
<h5>We will help you choose the right course and best university that is perfect and suits your academic background, financial background, and future plans.</h5>
</div>
<div class="col-md-3 item">
<h2>4</h2>
<h4>Scholarships</h4>
<h5>There are many foreign universities that offer scholarships to students on the basis of their academic profiles. We evaluate the possibilities of scholarship opportunities for the students and ensure that the eligible students benefit the opportunity of getting scholarships</h5>
</div>
<div class="col-md-3 item">
<h2>5</h2>
<h4>Documents preparation for application</h4>
<h5>We provide our expert guidance in preparing the application file and also the documents like transcripts, letter or recommendations etc that may increase the chances of admissions</h5>
</div>
<div class="col-md-3 item">
<h2>6</h2>
<h4>Follow-ups with universities to secure admissions</h4>
<h5>We do follow-ups on your behalf with the university admission office to ensure that you secure the admissions</h5>
</div>
<div class="col-md-3 item">
<h2>7</h2>
<h4>Visa documentation</h4>
<h5>We provide our expert assistance for preparing the visa documents according to the latest rules of the embassy.</h5>
</div>
<div class="col-md-3 item">
<h2>8</h2>
<h4>Bank loan and travel arrangements</h4>
<h5>We will assist you if you are looking for the educational loans and we also take care of all your travel arrangements like booking air tickets, travel insurance, and foreign exchange. Before you travel, there will be pre-departure orientation providing you the information on do’s and don’ts and will tell you about the food, travel, culture, transport etc of the country where you are traveling.</h5>
</div>
<div class="col-md-3 item">
<h2>9</h2>
<h4>Finding accommodation</h4>
<h5>We will help you find the best accommodation options that will suit your needs.</h5>
</div>
<div class="col-md-3 item">
<h2>10</h2>
<h4>Culture understanding</h4>
<h5>We will give you the information of the climatic conditions and the cultural differences so that you are mentally prepared and can adapt the new environment easily and quickly</h5>
</div>
</div>
</div>
</section>
The above answers are true if it is in HTML scenarios, if developer use loop then this problem may arise.
This solution for this is here:
<div id="mysection">
<div class="container">
<div class="row">
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
<div class="col-md-3 equal-column"></div>
</div>
</div>
</div>
Add CSS:
.equal-column{min-height:300px;}
Add min height according to your div is best solution for this if there are nth div of col-md-3
All Bootstrap grid columns must be wrapped in a .row.
As grid columns should add up to twelve for a single horizontal block so your code structure should be like this:
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<section id="services">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Services</h1>
<h4>With our knowledge and experience, we are aware of the challenges that students face when they wish to study overseas. So, keeping this in mind we have made our process so simple for these students that each and every task from admission procedure to visa interview to making travel arrangements is easy-going and hassle free. </h4>
<h4>We are here to help you at each and every stage of the process.</h4>
<div class="row">
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Counseling and course & university selection</h4>
<h5>We will help you choose the right course and best university that is perfect and suits your academic background, financial background, and future plans.</h5>
</div>
<div class="col-md-3">
<h4>Scholarships</h4>
<h5>There are many foreign universities that offer scholarships to students on the basis of their academic profiles. We evaluate the possibilities of scholarship opportunities for the students and ensure that the eligible students benefit the opportunity of getting scholarships</h5>
</div>
</div>
<div class="row">
<div class="col-md-3">
<h4>Documents preparation for application</h4>
<h5>We provide our expert guidance in preparing the application file and also the documents like transcripts, letter or recommendations etc that may increase the chances of admissions</h5>
</div>
<div class="col-md-3">
<h4>Follow-ups with universities to secure admissions</h4>
<h5>We do follow-ups on your behalf with the university admission office to ensure that you secure the admissions</h5>
</div>
<div class="col-md-3">
<h4>Visa documentation</h4>
<h5>We provide our expert assistance for preparing the visa documents according to the latest rules of the embassy.</h5>
</div>
<div class="col-md-3">
<h4>Bank loan and travel arrangements</h4>
<h5>We will assist you if you are looking for the educational loans and we also take care of all your travel arrangements like booking air tickets, travel insurance, and foreign exchange. Before you travel, there will be pre-departure orientation providing you the information on do’s and don’ts and will tell you about the food, travel, culture, transport etc of the country where you are traveling.</h5>
</div>
</div>
<div class="row">
<div class="col-md-3">
<h4>Finding accommodation</h4>
<h5>We will help you find the best accommodation options that will suit your needs.</h5>
</div>
<div class="col-md-3">
<h4>Culture understanding </h4>
<h5>We will give you the information of the climatic conditions and the cultural differences so that you are mentally prepared and can adapt the new environment easily and quickly</h5>
</div>
</div>
</div>
</div>
</div>
</section>
Use <div class="row"> before col-md-3 like below code
<section id="services">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Services</h1>
<h4>With our knowledge and experience, we are aware of the challenges that students face when they wish to study overseas. So, keeping this in mind we have made our process so simple for these students that each and every task from admission procedure to visa interview to making travel arrangements is easy-going and hassle free. </h4>
<h4>We are here to help you at each and every stage of the process.</h4>
<div class="row">
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Guidance for IELTS</h4>
<h5>IELTS is the most common examination that you need to give when you are planning to study abroad or work overseas. We help you prepare for the exam by giving you study material and also take a computer based test to make sure you score well. We also assist you in scheduling the tests, fill an application form, and give you the list of the universities where IELTS scores are reported and much more.</h5>
</div>
<div class="col-md-3">
<h4>Counseling and course & university selection</h4>
<h5>We will help you choose the right course and best university that is perfect and suits your academic background, financial background, and future plans.</h5>
</div>
<div class="col-md-3">
<h4>Scholarships</h4>
<h5>There are many foreign universities that offer scholarships to students on the basis of their academic profiles. We evaluate the possibilities of scholarship opportunities for the students and ensure that the eligible students benefit the opportunity of getting scholarships</h5>
</div>
</div>
<div class="row">
<div class="col-md-3">
<h4>Documents preparation for application</h4>
<h5>We provide our expert guidance in preparing the application file and also the documents like transcripts, letter or recommendations etc that may increase the chances of admissions</h5>
</div>
<div class="col-md-3">
<h4>Follow-ups with universities to secure admissions</h4>
<h5>We do follow-ups on your behalf with the university admission office to ensure that you secure the admissions</h5>
</div>
<div class="col-md-3">
<h4>Visa documentation</h4>
<h5>We provide our expert assistance for preparing the visa documents according to the latest rules of the embassy.</h5>
</div>
<div class="col-md-3">
<h4>Bank loan and travel arrangements</h4>
<h5>We will assist you if you are looking for the educational loans and we also take care of all your travel arrangements like booking air tickets, travel insurance, and foreign exchange. Before you travel, there will be pre-departure orientation providing you the information on do’s and don’ts and will tell you about the food, travel, culture, transport etc of the country where you are traveling.</h5>
</div> </div>
<div class="row">
<div class="col-md-3">
<h4>Finding accommodation</h4>
<h5>We will help you find the best accommodation options that will suit your needs.</h5>
</div>
<div class="col-md-3">
<h4>Culture understanding </h4>
<h5>We will give you the information of the climatic conditions and the cultural differences so that you are mentally prepared and can adapt the new environment easily and quickly</h5>
</div>
</div>
</div>
</div>
</div>
</section>
If those paragraphs can be in a different order, I would suggest the following:
<div class="col-md-12">
<div class="col-md-3">
<div class="col-md-12">
<!-- your content here -->
</div>
<div class="col-md-12">
<!-- your content here -->
</div>
</div>
<div class="col-md-3">
<div class="col-md-12">
<!-- your content here -->
</div>
<div class="col-md-12">
<!-- your content here -->
</div>
</div>
<div class="col-md-3">
<div class="col-md-12">
<!-- your content here -->
</div>
<div class="col-md-12">
<!-- your content here -->
</div>
</div>
<div class="col-md-3">
<div class="col-md-12">
<!-- your content here -->
</div>
<div class="col-md-12">
<!-- your content here -->
</div>
</div>
</div>
This way, you have four columns and n number of rows in that column.
Hope this helps.
Bootstrap grid view always uses 12 columns as the total.
First; create a row (). Then, add the desired number of columns (tags with appropriate .col-- classes). Note that numbers in .col-- should always add up to 12 for each row. If the number of columns becomes more than the 12 the div comes next to the div who have the maximum height. if all the heights are same than only it will come in the next line.
So basically you need to wrap the dom in row and in every row you need 12 columns total.
Bootstrap grid system includes row and columns. First you need to understand it. To easily understand it, visualize it as a table structure apart from table structure it's responsive. so you want to start collections of columns start with left then you either need to use enclosed them with row or clearfix class.
As in your code, you have 10 col-md-3 div sections. Bootstrap is 12 column grid system and from your code it's usual that it won't work as you wished. you need to divide your screen in 12 column grid but you have not done that in your code.
For your guidelines:
<section>
<div class="container">
<div class="row">
<div class="col-md-12">
<h4>Some Detail</h4>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
<div class="col-md-3"></div>
</div>
</div>
</div>
</div>
</section>
In the above code I've divided the screen into 4*3 column. i.e. 4 column of size 3, 4*3 = 12 (12 grid system)
If you want to align with h4 tag then you can use clearfix instead of row class. clearfix removes floating.
I hope you'll got some understanding.

Bootstrap! Is there a such thing as hidden-sm

Working in Bootstrap and I have a row with two columns - image in one column, text in the other. All I want to do is hide the image on col-sm and col-xs devices. Is there a way to do this? All I've found is hidden-xs.
HTML
<section id="financialPlanning">
<div class="container">
<div class="row">
<div class="col-sm-4 col-m-12 col-lg-3 pull-left hidden-xs">
<p><p>
<img src="images/compass-img.png" alt="Retirment" class="img-responsive">
</div>
<div class="col-sm-8 col-m-10 col-lg-9">
<font size="5">FINANCIAL PLANNING</font>
<p>Financial planning is never a one-dimensional process. It entails coordinating numerous factors that touch
upon your investments, future income requirements, estate plan, tax situation and other key
considerations.</p>
<p>A strong financial plan gives you an objective view of your overall financial picture and provides you with
the guidance you need to enjoy a stress free retirement. Our Relationship Managers have the
experience, expertise, and resources to help you and your family create and implement a thoughtful
and disciplined financial plan.</p>
</div>
As per my understanding, you want to hide image on tablet and mobile devices.
To hide image on both devices you can use ".hidden-sm" (to hide in tablet) and ".hidden-xs" (to hide in mobile) classes.
Please see this http://getbootstrap.com/css/ post; in the "Grid options" section you can find browser related classes and in "Available classes" section you can see classes to hide content in different-2 devices.

Sub-column reordering in bootstrap column

I have a basic 3 column layout (https://jsfiddle.net/mjaa64cj/) but am unable to swap the text/image placement on large screens of the elements in the last column. On mobile/tablet devices the columns stack ok.
Screenshot of the expected layout
I'm using bootstrap 3.2. Checkout the fiddle for details.
Here's the html code:
<div class="container">
<div class="row front">
<div class="col-lg-4">
<img class="img-responsive" src="holder.js/350x350" />
<h2>I, Roommate</h2>
<p>Oh sure! Blame the wizards! Bender, this is Fry's decision… and he made it wrong. So it's time for us to interfere in his life. Man, I'm sore all over. I feel like I just went ten rounds with mighty Thor.</p>
</div>
<div class="col-lg-4">
<h2>The Farnsworth Parabox</h2>
<p>I just told you! You've killed me! With a warning label this big, you know they gotta be fun! When will that be? Man, I'm sore all over. I feel like I just went ten rounds with mighty Thor. Mor's good friend, Richard Nixon. Say it in Russian</p>
<img class="img-responsive" src="holder.js/350x350" />
</div>
<div class="col-lg-4">
<div class="row">
<div class="col-lg-12 col-sm-12">
<h2>A Pharaoh to Remember</h2>
<p>With a warning label this big, you know they gotta be fun! Moving along… Bender, this is Fry's decision… and he made it wrong. So it's time for us to interfere in his life. Morbo can't understand his teleprompter because he forgot how you say that letter that's shaped like a man wearing a hat. Why would I want to know that.</p>
</div>
<div class="col-lg-12 col-sm-12">
<img class="img-responsive col-sm-push-4" src="holder.js/350x350" />
</div>
</div>
</div>
</div>
Have tried with push/pull the elements in the 3rd column, but the content is just overflowing beyond the edge of the screen or over the 2nd column.
Do you have any idea how to solve this?

Aria roles group or listbox for Material design card?

For designs similar to this the image card used on Materialize: http://materializecss.com/components.html#
Screenshot: http://i.imgur.com/zvncUFz.png
Should I be using roles of a group or listbox for properly describing the content? I'm a tad lost reading through the aria accessibility specs.
Basic Structure:
<div class="card">
<div class="card-image">
<img src="images/sample-1.jpg">
<span class="card-title">Card Title</span>
</div>
<div class="card-content">
<p>Card Content</p>
<a href='#'>Authors</a>
</div>
<div class="card-action">
This is a link
</div>
</div>
Side question on possibly how to deal properly addressing the links for multiple authors.
I would consider this to be a figure with a figcaption.
I would mark this up as follows(in Jade):
figure
div.card-image
img(src="", alt="If needed, any descriptive text here will be spoken by a screen reader, but will not be visible")
span.card-title Card Title
figcaption Anything within this figcaption tag will automatically be spoken by the screen reader
a.card-action(href="#") This is a link
In this case, there is no need at all to use any ARIA attributes. All that is needed is semantic markup. I hope this helps.

Resources