This is a really weird issue and I'm 100% sure I'm closing my html correctly.
If I have more then two child divs, it'll escape the parent. Literally.
So this works:
<div class="info-box">
<div class="container">
<div class="info-title">Why would you buy Buy LoL Account?</div>
<div class="info-description">
Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place.
We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question
is why should you buy from us and not the other online sellers?
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
However if I add one more:
<div class="info-box">
<div class="container">
<div class="info-title">Why would you buy Buy LoL Account?</div>
<div class="info-description">
Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place.
We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question
is why should you buy from us and not the other online sellers?
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
I get this:
But it does not look like that in my editor:
<div class="info-container">
<div class="info-box">
<div class="container">
<div class="info-title">Why would you buy Buy LoL Account?</div>
<div class="info-description">
Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place.
We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question
is why should you buy from us and not the other online sellers?
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Get a Ready-Made League of Legends Lvl 30 Account</div>
<div class="info-description">
If you are interested in having your own already developed League of Legends lvl 30 account, then you are in the right place. A level 30 they comes with numerous benefits. If you are a new player, you’ll begin at level 1, which is limited in the number of Champions, summoner spells, masteries, runes, and game modes you have. It’s a very boring level to start from. As you continue playing, you gradually unlock more game features but truth be told, it can take a really long time to unlock the most critical features. You need to reach level 30 to unlock features that allow you to play ranked matches, which are where all the fun in LoL is found. We provide you with a faster way to get to this level. Simply buy a level 30 account and begin playing those exciting ranked matches right away. You don’t need to spend months trying to level up.
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">The Difference Between Unranked and Ranked Accounts</div>
<div class="info-description">
The major difference between an unranked and a ranked League of Legends account can be described as the difference between playing a normal casual game and playing a highly competitive game. Ranked matches are more exciting and highly competitive than unranked accounts, adding fun and enjoyment to the game. You cannot play a ranked game until you have a level 30 summoner, Ranked BlazingBoost, and 16 Champions. We have ranked accounts that are ready for competitive matches. With our already developed level 30 League of Legends account, you can begin playing exciting ranked matches immediately.
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Get NA or EUW Accounts</div>
<div class="info-description">
You can buy a LoL account from us regardless of your location. We sell uranked accounts for different geographic regions including North America and EUW. Players from the US and Canada are usually connected via the NA server while their European counterparts connect via the EUW server.
We have both ranked and unranked accounts for different regions. They are all safe accounts that you can use without fear of running into a sudden ban. We also provide safe payment processing and instant delivery for accounts in every region worldwide.
</div>
</div>
</div>
</div>
What am I doing wrong here?
There is an extra </div> in your code which is because you haven't add <div class="info-description"> for the second and third child nodes, try this:
<div class="info-container">
<div class="info-box">
<div class="container">
<div class="info-title">Why would you buy Buy LoL Account?</div>
<div class="info-description">
Are you searching for an affordable high-quality League of Legends account? You’ve come to the right place.
We sell Smurf accounts with impressive rankings, from Diamond, Silver, Gold, and even Platinum but the big question
is why should you buy from us and not the other online sellers?
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
<div class="info-description">
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
<div class="info-box">
<div class="container">
<div class="info-title">Buy LoL Smurfs Accounts</div>
<div class="info-description">
A Smurf is an account owned by a player who has another level 30 account. The Smurf account is mainly used for training purposes against other more skilled opponents. We have Smurfs accounts already in level 30 so you won’t need to level them higher again. These will provide you with the quickest way to amass riot points and rise to level 30 in League of Legends. When you buy Smurfs account from us, it will be delivered instantly with all the necessary instructions.
</div>
</div>
</div>
</div>
to avoid such problems try using IDEs they have basic functionalities to check correctness of the HTML.
Related
I am trying to line up 3 different columns under the same class using flexbox.
But when i enter the HTML on my browser, all the content in the different containers are lined in a single line from top too bottom, instead of having the columns beside each other from left to right, and the items inside goes from top to bottom.
Here is the relevant part of the HTML code(all inside the body tag.)
<div class="container">
<article class="text item">
<a href="https://www.foxnews.com/category/person/joe-biden">President
Biden</a> is set to meet with Ukrainian President Volodymyr Zelensky
at the White House on Wednesday – a visit that is expected to build on
and amplify the bilateral relationship, and to underscore the United
States’ "ironclad" commitment to Ukraine’s security and sovereignty,
senior administration officials said.
</article>
<p class="text item">
The two leaders have spoken twice by phone – once in April, and once in
June before <a href="https://www.shorturl.at/puMQX">Biden met with
Russian President Vladimir Putin in Geneva</a>.
</p>
<p class="text item">
Senior administration officials said Biden and Zelensky will chair an
expanded bilateral meeting with their key advisers, and will later
transition to a one-on-one conversation, giving them "the space to
communicate with one another more directly."
</p>
</div>
<a href="#" class="text seperator">FLASHBACK: BIDEN ASSURES ZELENSKY HE WILL STAND UP FOR
UKRAINE SOVEREIGNTY IN PUTIN SUMMIT
</a>
<div class="container">
<p class="text items">
Officials said Biden will convey his <em>"ironclad commitment"</em> to
Ukraine’s security, sovereignty and Euro-Atlantic aspirations. Biden
is also expected to discuss the security situation that Ukraine is
facing, as the nation continues to see <a href="#">acts of Russian
aggression</a> in the region.
</p>
<p class="text items">
Biden also will discuss ways in which the U.S. could continue to provide
security assistance to Ukraine, officials said – noting that the U.S
. will provide a new $60 million security assistance package for Ukraine
that will include additional Javelin anti-armor systems and other
defensive lethal and non-lethal capabilities.
</p>
<p class="text items">
So far, the U.S. has committed $2.5 billion in support of Ukraine forces
since 2014, including more than $400 million in 2021 alone.
</p>
<p class="text items">
As for reform, Biden is set to discuss the ways in which Ukraine has made
"progress on governance, rule of law, and anti-corruption reforms since
2014." Biden, while serving as vice president for former President
Obama, was tasked with overseeing the administration’s Ukraine policy.
</p>
<p class="text items">
The president is also expected to discuss cooperation efforts to bolster
collaboration on shared energy and climate goals, including through a
reinvigorated Strategy Energy and Climate Dialogue, which officials say
would give a "strong" platform to "advance energy security objectives,
enhance economic ties, and achieve ambitious climate targets."
</p>
</div>
BIDEN SAYS UKRAINE HAS NOT MET NATO MEMBERSHIP CRITERIA
<div class="container">
<p class="text items">
As for the <a href="https://www.shorturl.at/lxCF2">coronavirus pandemic
</a>, officials said the U.S. has "stood shoulder-to-shoulder" with the
Zelensky administration, and has already provided $55 million in
COVID-related assistance, and donated nearly 2.2 million doses of COVID
vaccines to Ukraine.
</p>
<p class="text items">
"We intend to continue providing assistance to Ukraine, including cold
chain storage support and an additional $12.8 million in COVID
-related assistance," an official said.
</p>
<p class="text items">
Officials said the U.S. will also provide an additional $45 million in
humanitarian assistance to help address Ukrainians who remain impacted
by the crisis with Russia.
</p>
<p class="text items">
Meanwhile, senior administration officials said that after the meeting,
the U.S. and Ukraine will announce the reinvigoration of the Strategic
Partnership Commission, which they say has not met in three years.
</p>
<p class="text items">
Senior administration officials said they anticipate a meeting this fall
between Secretary of State Antony Blinken and Ukraine’s foreign minister
to approve a new charter between the U.S. and Ukraine that will "set
out the parameters for how we can work closely together to meet these
21st-century challenges."
</p>
</div>
and here is the relevant CSS included.
CSS:
.container
{
display: flex;
flex-flow: column wrap;
justify-content: space-evenly;
align-items: stretch;
align-content: center;
}
.items
{
flex-grow: 1;
flex-shrink: 3;
align-self: auto;
}
I am using bootstraps grid system to try and align the text next to the image. For some reason, it's not working for me. This what it looks like and I just want the text next to the image on the right side.
Here is my html:
<div class="container">
<h1 class="text-center">Executive Directors</h1>
<div class="row text-center">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
<h3 class="text-center">Maja Miletich</h3>
<p><strong>Maja Miletich </strong>is the CEO of Zip Zap Zop Kids, LLC. Maja has worked with children on many levels. Having a brother with Autism has given Maja an understanding of how powerful communication is for ALL children. Maja has worked for years as a teacher where she practices emergent curriculum. Maja has studied theater and improv at A.C.T. in San Francisco as well as graduated from The Second City Training Center in Hollywood where she studied improv and sketch comedy. Maja has her Bachelors Degree in Early Childhood Education. Maja's focus is on inclusive classrooms where curriculum is designed to allow children and young adults to feel comfortable expressing themselves in whichever way they feel most comfortable. Maja believes when we can share with one another what has been taught then, and only then, are we actually learning.</p>
</div>
</div>
<div class="row text-center">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
<h3 class="text-center">Maja Miletich</h3>
<p><strong>Maja Miletich </strong>is the CEO of Zip Zap Zop Kids, LLC. Maja has worked with children on many levels. Having a brother with Autism has given Maja an understanding of how powerful communication is for ALL children. Maja has worked for years as a teacher where she practices emergent curriculum. Maja has studied theater and improv at A.C.T. in San Francisco as well as graduated from The Second City Training Center in Hollywood where she studied improv and sketch comedy. Maja has her Bachelors Degree in Early Childhood Education. Maja's focus is on inclusive classrooms where curriculum is designed to allow children and young adults to feel comfortable expressing themselves in whichever way they feel most comfortable. Maja believes when we can share with one another what has been taught then, and only then, are we actually learning.</p>
</div>
</div>
</div>
any help would be appreciated!
In Bootstrap's grid system, to get two elements side-by-side you would need to nest two .col divs within a single .row, like below:
<div class="container">
<h1 class="text-center">Executive Directors</h1>
<div class="row text-center">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
<h3 class="text-center">Maja Miletich</h3>
</div>
<div class="col-md-6">
<p><strong>Maja Miletich </strong>is the CEO of Zip Zap Zop Kids, LLC. Maja has worked with children on many levels. Having a brother with Autism has given Maja an understanding of how powerful communication is for ALL children. Maja has worked for years as a teacher where she practices emergent curriculum. Maja has studied theater and improv at A.C.T. in San Francisco as well as graduated from The Second City Training Center in Hollywood where she studied improv and sketch comedy. Maja has her Bachelors Degree in Early Childhood Education. Maja's focus is on inclusive classrooms where curriculum is designed to allow children and young adults to feel comfortable expressing themselves in whichever way they feel most comfortable. Maja believes when we can share with one another what has been taught then, and only then, are we actually learning.</p>
</div>
</div>
</div>
To learn more about bootstrap's grid system go here.
change your code with this
<div class="container">
<h1 class="text-center">Executive Directors</h1>
<div class="row text-center">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
</div>
<div class="col-md-6">
<h3 class="text-center">Maja Miletich</h3>
<p><strong>Maja Miletich </strong>is the CEO of Zip Zap Zop Kids, LLC. Maja has worked with children on many levels. Having a brother with Autism has given Maja an understanding of how powerful communication is for ALL children. Maja has worked for years as a teacher where she practices emergent curriculum. Maja has studied theater and improv at A.C.T. in San Francisco as well as graduated from The Second City Training Center in Hollywood where she studied improv and sketch comedy. Maja has her Bachelors Degree in Early Childhood Education. Maja's focus is on inclusive classrooms where curriculum is designed to allow children and young adults to feel comfortable expressing themselves in whichever way they feel most comfortable. Maja believes when we can share with one another what has been taught then, and only then, are we actually learning.</p>
</div>
</div>
<div class="row text-center">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
</div>
<div class="col-md-6">
<h3 class="text-center">Maja Miletich</h3>
<p><strong>Maja Miletich </strong>is the CEO of Zip Zap Zop Kids, LLC. Maja has worked with children on many levels. Having a brother with Autism has given Maja an understanding of how powerful communication is for ALL children. Maja has worked for years as a teacher where she practices emergent curriculum. Maja has studied theater and improv at A.C.T. in San Francisco as well as graduated from The Second City Training Center in Hollywood where she studied improv and sketch comedy. Maja has her Bachelors Degree in Early Childhood Education. Maja's focus is on inclusive classrooms where curriculum is designed to allow children and young adults to feel comfortable expressing themselves in whichever way they feel most comfortable. Maja believes when we can share with one another what has been taught then, and only then, are we actually learning.</p>
</div>
</div>
</div>
in each row you need do add two cols, one for the picture and one for the description, like this:
<div class="row">
<div class="col-md-6">
<img class="" src="/wp-content/themes/creativeforces/images/majapic.jpg" width="250px">
</div>
<div class="col-md-6">
<p> desccription here</p>
</div>
</div>
the description now appear next to the image.
in the bootstrap's page there is a grid's tutorial, learn it here.
I'm currently building a responsive website with bootstrap but I've faced an issue, with reference to the code below, I'm unable to have them "align" with each other.
This rough sketch would be what I want my end result to turn out
<div class="container">
<div class="row-fluid">
<div class="col-sm-6 col-md-4">
<h3><a href="#" onclick="hide;" >1Cross-country cycling</a></h3>
<p>Cross-country cycling is defined by the terrain on which it is performed. XC courses and trails consist of a mix of rough forest paths and singletrack (also referred to as doubletrack depending on width), smooth fireroads, and even paved paths connecting other trails. Riding or racing is also only deemed cross-country if the technical complexity of the trails is easy or moderate. Trails difficult even to experienced riders are more often dubbed "all-mountain", "freeride", or "downhill".</p>
</div>
<div class="col-sm-6 col-md-4">
<h3>2Mountain bike trials</h3>
<p>Trials riding is an extreme test of bicycle handling skills, over all kinds of obstacles, both natural and man-made. It now has a strong - though small - following worldwide, though it is still primarily a European sport. Skills taken from trials riding can be used practically on any bicycle for balance, for example controlled braking and track standing, or balancing on the bike without putting a foot down. Competition trial bikes are characterized by powerful brakes, wide handlebars, lightweight parts, single-speed low gearing, low tire pressures with a thick rear tire, distinctive frame geometry, and usually no seat.</p>
</div>
<div class="col-sm-6 col-md-4">
<h3>3Enduro</h3>
<p>Enduro is a form of Mountain bike racing in which there is a number of timed downhill sections of trail, and a number of uphill transfer stages, which are not timed, but might have time limits to complete. It is a stage-race format where the winner is the rider who accumulates the lowest combined time from the various timed sections. Mountain bike enduro competitions typically take place over the course of 1 or 2 days, however, week-long enduro competitions do also exist.</p>
</div>
<div class="col-sm-6 col-md-4">
<h3>4Freeride </h3>
<p>The term freeriding was originally coined by snowboarders, meaning riding without a set course, goals or rules on natural terrain. In mountain biking, it is riding trail with the most creative line possible that includes style, amplitude, control, and speed.</p>
</div>
<div class="col-sm-6 col-md-4">
<h3>5Dirt jumping</h3>
<p>Dirt jumping is one of the names given to the practice of riding bikes over cement type jumps of dirt or soil and becoming airborne. The idea is that after riding over the 'take off' the rider will become momentarily airborne, and aim to land on the 'landing'.</p>
</div>
<div class="col-sm-6 col-md-4">
<h3>6Downhill mountain biking (DH)</h3>
<p>Downhill mountain biking (DH) is a genre of mountain biking practiced on steep, rough terrain that often features jumps, drops, rock gardens and other obstacles. Downhill bikes are heavier and stronger than other mountain bikes and feature front and rear suspension with over 8 inches (200mm) or (20cm) of travel, to glide quickly over rocks and tree roots.
</p>
</div>
</div>
</div>
view my JSFiddle here : https://jsfiddle.net/he4rtbr0ken/gcc3oxoj/1/
Weiping Hi there.
You may find it better just to add 2 items per row.
You will run into a problem with using a fixed height with the text when the div is compressed.
Have a look at this FIDDLE HERE.
<html>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<body>
<!--column examples-->
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<h3><a href="#" onclick="hide;" >1Cross-country cycling</a></h3>
<p>Cross-country cycling is defined by the terrain on which it is performed. XC courses and trails consist of a mix of rough forest paths and singletrack (also referred to as doubletrack depending on width), smooth fireroads, and even paved paths
connecting other trails. Riding or racing is also only deemed cross-country if the technical complexity of the trails is easy or moderate. Trails difficult even to experienced riders are more often dubbed "all-mountain", "freeride", or "downhill".</p>
</div>
<div class="col-md-4 col-sm-6">
<h3>2Mountain bike trials</h3>
<p>Trials riding is an extreme test of bicycle handling skills, over all kinds of obstacles, both natural and man-made. It now has a strong - though small - following worldwide, though it is still primarily a European sport. Skills taken from trials
riding can be used practically on any bicycle for balance, for example controlled braking and track standing, or balancing on the bike without putting a foot down. Competition trial bikes are characterized by powerful brakes, wide handlebars,
lightweight parts, single-speed low gearing, low tire pressures with a thick rear tire, distinctive frame geometry, and usually no seat.</p>
</div>
</div><!-- end row -->
<div class="row">
<div class="col-md-4 col-sm-6">
<h3>3Enduro</h3>
<p>Enduro is a form of Mountain bike racing in which there is a number of timed downhill sections of trail, and a number of uphill transfer stages, which are not timed, but might have time limits to complete. It is a stage-race format where the winner
is the rider who accumulates the lowest combined time from the various timed sections. Mountain bike enduro competitions typically take place over the course of 1 or 2 days, however, week-long enduro competitions do also exist.</p>
</div>
<div class="col-md-4 col-sm-6">
<h3>4Freeride </h3>
<p>The term freeriding was originally coined by snowboarders, meaning riding without a set course, goals or rules on natural terrain. In mountain biking, it is riding trail with the most creative line possible that includes style, amplitude, control,
and speed.</p>
</div>
</div><!-- end row -->
<div class="row">
<div class="col-md-4 col-sm-6">
<h3>5Dirt jumping</h3>
<p>Dirt jumping is one of the names given to the practice of riding bikes over cement type jumps of dirt or soil and becoming airborne. The idea is that after riding over the 'take off' the rider will become momentarily airborne, and aim to land
on the 'landing'.</p>
</div>
<div class="col-md-4 col-sm-6">
<h3>6Downhill mountain biking (DH)</h3>
<p>Downhill mountain biking (DH) is a genre of mountain biking practiced on steep, rough terrain that often features jumps, drops, rock gardens and other obstacles. Downhill bikes are heavier and stronger than other mountain bikes and feature front
and rear suspension with over 8 inches (200mm) or (20cm) of travel, to glide quickly over rocks and tree roots.
</p>
</div>
</div><!-- end row -->
</div>
</body>
</body>
</html>
If you want horizontal align, you need same height, id est, you need to force the same height.
for example
.my-div{
height: 400px;
}
If you add the class my-div, in divs, class="col-sm-6 col-md-4 my-div"you can get the desired result, if the height of elements are less then 400px...
You can set the heights of all divs, using the next javascript + dom code (for example):
function set_max_height (){
var div = document.getElementById("main-row"); // main-row is the parent div of the list...
if(!div) return ;
var divs= div.getElementsByTagName("div");
if(!divs) return;
var L = divs.length;
var maxHeight = 0;
for(var i=0; i<L; i++){
var mh = divs[i].offsetHeight;
if(mh > maxHeight) maxHeight = mh;
}
for(var i=0; i<L; i++){
divs[i].style.height = maxHeight.toString() + "px";
}
}
You can use this function in a "onload" event, or in
According to the image you provided for the sketch you want I think this is what you are looking for:
<div class="container">
<div class="row">
<div class="col-sm-2">
<h3>1Cross-country cycling</h3>
<p>Cross-country cycling is defined by the terrain on which it is performed. XC courses and trails consist of a mix of rough forest paths and singletrack (also referred to as doubletrack depending on width), smooth fireroads, and even paved paths connecting other trails. Riding or racing is also only deemed cross-country if the technical complexity of the trails is easy or moderate. Trails difficult even to experienced riders are more often dubbed "all-mountain", "freeride", or "downhill".</p>
</div>
<div class="col-sm-2">
<h3>2Mountain bike trials</h3>
<p>Trials riding is an extreme test of bicycle handling skills, over all kinds of obstacles, both natural and man-made. It now has a strong - though small - following worldwide, though it is still primarily a European sport. Skills taken from trials riding can be used practically on any bicycle for balance, for example controlled braking and track standing, or balancing on the bike without putting a foot down. Competition trial bikes are characterized by powerful brakes, wide handlebars, lightweight parts, single-speed low gearing, low tire pressures with a thick rear tire, distinctive frame geometry, and usually no seat.</p>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<h3>3Enduro</h3>
<p>Enduro is a form of Mountain bike racing in which there is a number of timed downhill sections of trail, and a number of uphill transfer stages, which are not timed, but might have time limits to complete. It is a stage-race format where the winner is the rider who accumulates the lowest combined time from the various timed sections. Mountain bike enduro competitions typically take place over the course of 1 or 2 days, however, week-long enduro competitions do also exist.</p>
</div>
<div class="col-sm-2">
<h3>4Freeride </h3>
<p>The term freeriding was originally coined by snowboarders, meaning riding without a set course, goals or rules on natural terrain. In mountain biking, it is riding trail with the most creative line possible that includes style, amplitude, control, and speed.</p>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<h3>5Dirt jumping</h3>
<p>Dirt jumping is one of the names given to the practice of riding bikes over cement type jumps of dirt or soil and becoming airborne. The idea is that after riding over the 'take off' the rider will become momentarily airborne, and aim to land on the 'landing'.</p>
</div>
<div class="col-sm-2">
<h3>6Downhill mountain biking (DH)</h3>
<p>
Downhill mountain biking (DH) is a genre of mountain biking practiced on steep, rough terrain that often features jumps, drops, rock gardens and other obstacles. Downhill bikes are heavier and stronger than other mountain bikes and feature front and rear suspension with over 8 inches (200mm) or (20cm) of travel, to glide quickly over rocks and tree roots.
</p>
</div>
</div>
</div>
I wanted the page to be as responsive as possible e.g. 3 cols for col-md, 2 for col-sm, and 1 for col-xs.
I used the script from Use jQuery/CSS to find the tallest of all elements to get the tallest height then set the height of the class to the tallest height.
$().ready(function() {
var maxHeight = 0;
$('.col-sm-6').each(function() {
maxHeight = maxHeight > $('.col-sm-6').height() ? maxHeight : $('.col-sm-6').height();
});
$('.col-sm-6').each(function() {
$('.col-sm-6').height(maxHeight);
});
console.log(maxHeight)
console.log("loaded")
})
Here's my solution in JSFiddle : https://jsfiddle.net/he4rtbr0ken/gcc3oxoj/9/
I installed a bootstrap theme for Wordpress but I'm experiencing an issue with grid alignment.
See: Click Here in Products&Services.
'Seed' should be on the left and 'Other Products' on the right aligned with the second element 'LeafLine'.
What could that be?
You can also just add a clearfix element after the leafline div to fix this layout.
<div class="clearfix"></div>
More information can be found here: http://getbootstrap.com/css/#grid-responsive-resets
This is an easy fix. You just need to put the content into either two rows, or two columns. Because there is more text on the first left-side block, the Seed block is getting pushed out. You will just need to increase padding below the rows.
Example with rows: http://www.bootply.com/PjWnLEAOMT
<div class="row">
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">Primo</h3>
This is Leaf Space main project. A super lightweight two-stage launch vehicle able to bring up to 50 kg to Low Earth Orbit. The use of composite materials and hybrid proprulsive technology make Primo extremely safe, reliable and enviromental friendly, ensuring precise orbit inserction and extremely low risk of failure. All the components are designed with reusability in mind for future implementation of a reusable launch vehicle. </div>
</div>
</div>
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">LeafLine</h3>
A ground stations network exclusively dedicated to nano, micro and smallsats is under development. LeafLine can support several orbits and different transmission protocols. A direct encrypted online link ensures simple and safe data collection and control transmissions to satellite operators. </div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">Seed</h3>
Thanks to its great versatility and reliability, hybrid propulsion can be used for several applications. Leaf Space is developing Seed, a next generation hybrid rocket motor designed for in space applications such as:
<ul>
<li>orbital maneuvers</li>
<li>re-orbiting</li>
<li>de-orbiting</li>
</ul>
The first design is dedicated to nano and microsats, other future improved versions will serve also heavier satellites. </div>
</div>
</div>
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">Other Services</h3>
Other Services
To complete the offer of Leaf Space, a series of services dedicated to nano and microsatellites will be available, also in collaboration with other companies. Among them:
<ul>
<li>transportations</li>
<li>technical advice</li>
<li>satellite integration in the payload vain</li>
<li>safety and law issues</li>
</ul> </div>
</div>
</div>
</div>
Example with two columns: http://www.bootply.com/bms2sLZ1ZJ
<div class="row">
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">Primo</h3>
This is Leaf Space main project. A super lightweight two-stage launch vehicle able to bring up to 50 kg to Low Earth Orbit. The use of composite materials and hybrid proprulsive technology make Primo extremely safe, reliable and enviromental friendly, ensuring precise orbit inserction and extremely low risk of failure. All the components are designed with reusability in mind for future implementation of a reusable launch vehicle. </div>
</div>
<div class="media services">
<div class="media-body">
<h3 class="media-heading">Seed</h3>
Thanks to its great versatility and reliability, hybrid propulsion can be used for several applications. Leaf Space is developing Seed, a next generation hybrid rocket motor designed for in space applications such as:
<ul>
<li>orbital maneuvers</li>
<li>re-orbiting</li>
<li>de-orbiting</li>
</ul>
The first design is dedicated to nano and microsats, other future improved versions will serve also heavier satellites. </div>
</div></div>
<div class="col-sm-6">
<div class="media services">
<div class="media-body">
<h3 class="media-heading">LeafLine</h3>
A ground stations network exclusively dedicated to nano, micro and smallsats is under development. LeafLine can support several orbits and different transmission protocols. A direct encrypted online link ensures simple and safe data collection and control transmissions to satellite operators. </div>
</div><div class="media services">
<div class="media-body">
<h3 class="media-heading">Other Services</h3>
Other Services
To complete the offer of Leaf Space, a series of services dedicated to nano and microsatellites will be available, also in collaboration with other companies. Among them:
<ul>
<li>transportations</li>
<li>technical advice</li>
<li>satellite integration in the payload vain</li>
<li>safety and law issues</li>
</ul> </div>
</div></div>
</div>
Obviously the second produces a cleaner result as far as padding goes.
There is white space below my div in Firefox but not in Chrome. I think it has something to do with my #body-content-container having the properties position: relative; and bottom: 300px; this gets the right positioning effect I'm looking for in Chrome, but in Firefox it creates a white space. When I get rid of these lines the div isn't positioned in the right place in either FF or Chrome.
Here's the code:
HTML:
<div id="body-content-container">
<div id="body-content"class="row">
<div class="small-12 small-centered columns">
<br/>
<div align="center" id="page-title">COMPANY</div>
<h1 align="center">About Us</h1>
<p>ADU Consulting has been developing quality e-learning programs since 2004. It is a training and education company that collaborates with partner organizations in developing, hosting and managing online educational programs based on the individual curriculum and client needs.</p>
<p>It operates from two regional offices one in New York and another in Northern Virginia, close to the capital city of Washington D.C. The ADU datacenter is also located near the corporate office in Virginia.</p>
<p>We:</p>
<ul>
<li>Develop e-Learning courses</li>
<li>Build in-campus and online blended programs</li>
<li>Create Integrated Assessment and Evaluation</li>
<li>Provide white-labeled hosting services</li>
</ul>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<p>ADU business is divided into two areas: <span style="font-family:FuturaStd-Heavy;">e-Learning Consultancy</span> for client organizations and running its <span style="font-family:FuturaStd-Heavy;">International Maritime College</span> where it offers a number of Certificates, College Primers and Vocational Skill Development programs, aimed primarily at the maritime industry. These courses focus on training the seafarers and the shore based employees within the shipping business.</p>
<p>ADU fills the gap between traditional education and the needs of people today. Interactive courses taught by experienced professionals help students keep pace with changing industry demands in addition to providing a holistic and need-based education. Our Instructors are picked from around the world with the majority from the United States; they have the highest professional and academic backgrounds that befit the purpose of industry ready education and training.</p>
<h1 align="center">Our Purpose</h1>
<p>We believe that online education's role is to compliment the "best" practices in education. It must support instructors to teach a larger student body and make learning possible based on individual learning needs. With this in mind, our integrated learning platform is equipped with necessary tools in helping the Instructors create a self-paced learning environment.</p>
<h1 align="center">Technology</h1>
<p>The LMS software and courses system is housed in a tier 1 datacenter that has a redundant firewall, switches and servers for complete data security. This hosted delivery model provides scalability, reliability and eliminates technological burden on client resources.</p>
<h1 align="center">Course Development</h1>
<p>ADU Consulting's content creation and delivery platforms are tied together such that it allows faculty to modify, or enhance contents to fit their unique teaching style. Thus a course developed for an organization can be further customized by the Instructor. In addition, since the world of online resources is expanding every minute, Instructors are able to link external content or add other resources through this platform. The student assessment is an integral part of the learning and evaluation process: the platform is configured with a question bank and a multi-faceted assessment system.</p>
<h1 align="center">Support</h1>
<p>In order to keep pace with the changing landscape of online learning ADU Consulting's platform is constantly updated in keeping with such advances. We are committed to support our partners both from technical management and pedagogical viewpoint.</p>
<h1 align="center">Course Delivery</h1>
<p>Courses are delivered to students in an asynchronous mode that allows students to learn at their own pace and allows flexibility when they want to study; Collaboration and communication with faculty is done in a synchronous mode through online video conferencing. The teacher-centric approach helps to consolidate and maximize the learning outcome.</p>
<h1 align="center">Course Creation & Quality Control</h1>
<p>ADU Consulting has an e-learning Quality Management Process that looks at various quality attributes in a course that must be meet to meet the ADU performance criteria. This is an internal quality audit system that must be satisfied before a course can be put on line for client review. The QA task is done from Virginia.</p>
<p>ADU Consulting’s courses are built at Chennai, India with an affiliated organization that maintains a large content development team including subject matter experts, instructional designers, graphic designers, Flash and other programmers, voice-over specialists etc.</p>
<p>The development is an iterative process and is only signed off once the user client is fully satisfied with the intended and agreed quality standard.</p>
<h1 align="center">Collaberation Projects</h1>
<p>ADU Consulting collaborates with partner organizations in developing, hosting and managing online educational programs based on individual curriculum and client needs and this may take any of the following project types:</p>
<ul>
<li>Develop e-Learning Courses</li>
<li>Build in-campus and online blended programs</li>
<li>Create Integrated Assessment and Evaluation</li>
<li>Provide white-labeled hosting for e-learning services</li>
</ul>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div align="center">
<h1>Contact Us</h1>
<span style="font-family:FuturaStd-Heavy;font-size:20px;">ADU Consulting Services</span>
<br/>
<p>6 Pigeon Hill Drive Suite 230<br/>
Sterling, VA 20165<br/>
United States of America</p>
<p>Email: info#adu.us.com</p>
<p>Telephone: (804) 205-1210<br/>
Fax: (703) 738-7723</p>
</div>
</div>
</div>
<div align="center" id="footer">
<br/>
Copyright © <script type="text/javascript">
document.write(new Date().getFullYear());
</script> ADU Consulting, All Rights Reserved. Site designed & developed by <a target="_blank" style="text-decoration: underline;" href="http://zrrdigitalmedia.com">zrrdigitalmedia</a>
<br/>
<br/>
</div>
CSS:
#body-content-container{
background-color: #d5b93f;
position: relative;
bottom: 300px;
}
Also here's a link to the site: http://zrrdigitalmedia.com/_ADU/company.html
I'm super lost here, any suggestions are much appreciated! Thank you!
Try changing the bottom value for the #body-content-container.
#body-content-container {
background-color: #d5b93f;
position: relative;
bottom: -15px; /* change 300px to -15px */
}
Tested on both, Firefox and Chrome.
Alternatively you can target Mozilla Firefox and add a negative margin-bottom
to the #body-content-container:
#-moz-document url-prefix() {
#body-content-container {
background-color: #d5b93f;
position: relative;
bottom: 300px;
margin-bottom:-320px; }
}
Some digging in FireBug lead me to this:
#body-content-container {
background-color: #d5b93f;
bottom: 300px; /* <-- this is the issue, remove it */
position: relative;
}