How to give Bootstrap col dynamic height? - html
In this snipper, I want the Bootstrap columns to have their height defined by their content, not the tallest element that is visible in the same row. In other words, I want each of these cards to start a couple of pixels below the one on-top whether or not there is a large card in that topping row. How can I go about doing this?
.card-container {
width: 100%;
overflow: hidden;
position: relative;
background-color: white;
margin-bottom: 15px;
box-shadow: 0 0 10px rgb(0 0 0 / 30%);
border: 1px solid rgba(204, 204, 204, 1);
transition: all 0.5s ease-in-out;
}
.card-container:hover {
box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}
.card-image {
max-height: 200px;
overflow: hidden;
}
.card-image-src {
width: 100%;
transition: all 1s ease-in-out;
}
.card-image-src:hover {
transform: scale(1.1);
}
.card-text {
padding: 15px;
}
.card-title {
text-align: center;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container p-3 my-3">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who
earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule.
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience.
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology,
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who
earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule.
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who
earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule.
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who
earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule.
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card-container">
<div class="card-image d-flex align-items-center">
<img src="https://online-learning.harvard.edu/sites/default/files/styles/header/public/course/cs50x-original.jpg" class="card-image-src">
</div>
<div class="card-text">
<h1 class="card-title">
Harvard CS50
</h1>
<p class="card-description">
This is CS50x , Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan,
CS50x teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages
include C, Python, SQL, and JavaScript plus CSS and HTML. Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. The on-campus version of CS50x , CS50, is Harvard's largest course. Students who
earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project are eligible for a certificate. This is a self-paced course–you may take CS50x on your own schedule.
</p>
</div>
</div>
</div>
</div>
</div>
Can you please check the below code link? Hope it will work for you. You need to just give height: calc(100% - 15px); to .card-container.
Please refer to this link:
https://jsfiddle.net/yudizsolutions/zqmxecdo/1/
Related
How to line up flex box columns beside eachother
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; }
Redesigning HTML CSS to create responsive web site
I am trying to create responsive web site, and I am stuck for the mobile part which I don't know how to fix it. The problem is following: HTML: <div class="row inner cover"> <div id="blur_top" class="blur_profile" style="display:none;"></div> <div id="blur_bottom" class="blur_profile" style="display:none;"></div> <div class="col-lg-3 col-md-2 col-sm-2 col-xs-0"></div> <div class="col-lg-4 col-md-5 col-sm-5 col-xs-12 profile-text"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding:0;"><h2>In Mark Goetz’s 30 year design career he has been responsible for innovative collections of seating and furniture pieces with a classically modern appeal.</h2></div> </div> <div class="row content"> <div class="col-md-12"> <div class="text"> <p><span class="capitalized">SINCE THE INCEPTION</span> of his firm TZ Design, Mark has worked with many companies and produced a stream of award winning and noteworthy projects. He began by working with Brickel Associates, where he introduced a series of lounge and guest seating which is still on the market and available through Geiger International.</p> <p><span class="capitalized">WITH BERNHARDT DESIGN</span>, Mark created a line of enduring furniture. He conceived and developed an extensive collection of chairs, casegoods, lounge chairs and occasional tables. In a period of 15 years he realized over 70 designs exhibiting a range of styles which utilized a variety of materials from metal and glass to wood and upholstery. Mark established a high level of design and influence that continues today within the Bernhardt Design offering.</p> <img class="profile-mobile-image" src="images/mark-goetz-4.jpg" style="display:none;width:49%;margin-right:2%;margin-top:38%;" /> <img class="profile-mobile-image" src="images/mark-goetz-1.jpg" style="display:none;width:49%;" /> <p><span class="capitalized">IN 1998</span>, Mark was commissioned to design a sofa for the renowned Herman Miller Collection. The goal was to create an innovative piece that would still be compatible the work of great design icons such as Charles & Ray Eames, George Nelson, and Isamu Noguchi. The Goetz Sofa is a design of beauty, comfort and functionality. It is perfectly suited for everyday living. Through the years Mark has forged a strong working relationship with Herman Miller where he has also been engaged in several projects including ergonomic task seating, collaboration, and guest chairs. His most recent contribution to the Collection was the Full Twist Chair.</p> <p><span class="capitalized">IN ADDITION</span> to his professional practice, Mark served as an industrial design professor at Pratt Institute for 20 years. In the Graduate Furniture Studio, his students were responsible for the ideation, design, and execution of an actual piece of furniture. This student centered course encouraged students to develop their own voice and nurture a unique and individual point of view.</p> <img class="profile-mobile-image" src="images/mark-goetz-3.jpg" style="display:none;" /> <p><span class="capitalized">CURRENTLY</span>, Mark is applying his many rich experiences to a wide array of projects. For Nucraft, he designs conferencing and private office solutions. For the residential and hospitality markets, he is teaming his understanding of comfort and proportion with companies that share his appreciation for fine craftsmanship. For the healthcare industry, he is providing elegant solutions by combining a human-centric approach with aesthetic sophistication. And, for the educational market, Mark is creating agile products which support technology and invite collaboration. Today, regardless of the application, Mark remains passionate about innovation, respectful of the environment, and ever mindful of human needs.</p> <img class="profile-mobile-image" src="images/mark-goetz-2.jpg" style="display:none;float:right;width:77%;" /> </div> </div> </div> CSS #profile .row.cover{overflow:auto;} #profile .row.cover::-webkit-scrollbar{display:none;} .inner .profile-text{text-align:left;padding:0;margin-left:-15px;} .inner .profile-text .row{margin-left:0;margin-right:0;} .inner .profile-text h2{font-family:AvenirLTStd-Heavy, sans-serif;font-weight:normal;line-height:32px;margin-top:0;} .inner .profile-text .content{margin-top:20px;} .inner .profile-text .content p{margin:0 0 20px;} .inner .profile-text .content p span.capitalized{text-transform:capitalize;letter-spacing:1px;font-size:12px;} .inner .profile-text .content .text{-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;} .site-wrapper.home .site-wrapper-inner{vertical-align:middle;text-align:center;display:table-cell;} .inner .profile-images{padding-left:50px;-ms-overflow-style:none;} .inner .profile-images::-webkit-scrollbar, .inner .profile-text::-webkit-scrollbar{display:none;} .inner .profile-images img{width:100%;margin-top:50px;} .inner .profile-images img.first{margin-top:0;} .inner .profile-images .empty-space, .inner .profile-text .empty-space{width:100%;height:100px;display:block;} Website for full reference
Your problem happens when the window width is < 768px. Take a look at this line in your #media (max-width:768px) style: .inner .profile-text .content .text{font-size:16px;line-height:18px; width: 100px;} Notably, the width: 100px
Problem is on your <div class="text"> You got it for width: 100px, you gotta change this value.
align text next to image using bootstrap
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.
Change stacking order of images in Bootstrap
I'm working with several rows that contain two columns. One column containing text and the other containing an image. Each row alternates where the copy and image are displayed. The 1st row has the image on the left, copy on right. The 2nd row has the image on the right, copy on left. The 3rd row has the image on the left, copy on right... and so on... [website: http://www.raa.com/dev/who-we-are.shtml#team] I'm new to Bootstrap and am trying to figure out how (on Mobile devices) to get the image to appear below the copy on **ALL ROWS.** Currently when viewing the site, the image and copy alternate in position for each row. I tried the push/pull commands with no success. Help!! ******HTML Code****** <!-- start Ronald Simmons area --> <section id="ronaldSimmons"> <div class="container"> <div class="row"> <div class="col-md-5"> <img src="images/team-pics/simmons.png"> </div> <div class="col-md-7"> <font size="+3" color="#396598">MANAGEMENT</font> <p></p> <h2> <div class="top-buffer-md">Ronald E. Simmons</div> </h2> <p class="lead"><font color="#396598">Chairman</font></p> <p>Ron has been in the investment industry for over 25 years, and has worked with retiring crew member families since 1987. He is the co-founder and Chairman of Retirement Advisors of America. In 2012 Ron was elected to serve in Texas State House of Representatives. He is a national speaker on leadership and entrepreneurship and is very involved with the charitable organization Equip. Ron serves as Vice Chairman of the national Board of Directors of the Autism Society of America and is also involved with his church, Prestonwood Baptist, as a teacher in the young married division. He is a graduate of Dallas Baptist University with a Bachelors degree in Business.</p> <p><font color="#396598">Back to Top</font> </div> </div> </div> </section> <!-- end Ronald Simmons area -->
Where you need to put text box on right side then you can follow this HTML structure <section id="ronaldSimmons"> <div class="container"> <div class="row"> <div class="col-md-7 pull-right"> <font size="+3" color="#396598">MANAGEMENT</font> <p></p> <h2> <div class="top-buffer-md">Ronald E. Simmons</div> </h2> <p class="lead"><font color="#396598">Chairman</font></p> <p>Ron has been in the investment industry for over 25 years, and has worked with retiring crew member families since 1987. He is the co-founder and Chairman of Retirement Advisors of America. In 2012 Ron was elected to serve in Texas State House of Representatives. He is a national speaker on leadership and entrepreneurship and is very involved with the charitable organization Equip. Ron serves as Vice Chairman of the national Board of Directors of the Autism Society of America and is also involved with his church, Prestonwood Baptist, as a teacher in the young married division. He is a graduate of Dallas Baptist University with a Bachelors degree in Business.</p> <p><font color="#396598">Back to Top</font> </p> </div> <div class="col-md-5"> <img src="images/team-pics/simmons.png"> </div> </div> </div> and simply add css rules on small screen #media only screen and (max-width: 767px){ .pull-right{ float: none !important; } } Because TB always force element on right with pull-right class and in your case you don't need to right align text box on small screen.
Doesn't seem effective, but would work: <section id="ronaldSimmons"> <div class="container"> <div class="row"> <div class="col-md-7 visible-xs-*-*"> <font size="+3" color="#396598">MANAGEMENT</font><p></p> <h2><div class="top-buffer-md">Ronald E. Simmons</div></h2> <p class="lead"><font color="#396598">Chairman</font></p> <p>Ron has been in the investment industry for over 25 years, and has worked with retiring crew member families since 1987. He is the co-founder and Chairman of Retirement Advisors of America. In 2012 Ron was elected to serve in Texas State House of Representatives. He is a national speaker on leadership and entrepreneurship and is very involved with the charitable organization Equip. Ron serves as Vice Chairman of the national Board of Directors of the Autism Society of America and is also involved with his church, Prestonwood Baptist, as a teacher in the young married division. He is a graduate of Dallas Baptist University with a Bachelors degree in Business.</p> <p><font color="#396598">Back to Top</font> </div> <div class="col-md-5"> <img src="images/team-pics/simmons.png" > </div> <div class="col-md-7"> <font size="+3" color="#396598">MANAGEMENT</font><p></p> <h2><div class="top-buffer-md">Ronald E. Simmons</div></h2> <p class="lead"><font color="#396598">Chairman</font></p> <p>Ron has been in the investment industry for over 25 years, and has worked with retiring crew member families since 1987. He is the co-founder and Chairman of Retirement Advisors of America. In 2012 Ron was elected to serve in Texas State House of Representatives. He is a national speaker on leadership and entrepreneurship and is very involved with the charitable organization Equip. Ron serves as Vice Chairman of the national Board of Directors of the Autism Society of America and is also involved with his church, Prestonwood Baptist, as a teacher in the young married division. He is a graduate of Dallas Baptist University with a Bachelors degree in Business.</p> <p><font color="#396598">Back to Top</font> </div> </div> </div> </section>
white space bottom of page in firefox but not chrome
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; }