How to place 2 columns closer together in bootstrap - html

I am trying to increase a massive gap between 2 columns and give the text a smaller width while havig it all still centered.
as you can see they are very spread apart and I would really like the gap to be minimal as well as the width of the text. I'd like to try and get the left image right corner and the right image left corner to be under the program text.
here is my code:
<div class="container">
<div class="row col-md-12">
<p class="text-center program-head">Programs</p>
<div class="col-md-6">
<div class="text-center">
<img alt="" class="resize-image" id="image1" src=
"/wp-content/themes/creativeforces/images/april2.jpg">
<p class="program-text">Creative Writing</p>
<p>This will help unleash a childs mind throught their own
words. The imagination has no limit to a young childs mind.
this is future forever in life yes hold me
now</p><button class="btn btn-primary">Learn More</button>
</div>
</div>
<div class="col-md-6">
<div class="text-center">
<img alt="" class="resize-image" id="image2" src=
"/wp-content/themes/creativeforces/images/kids.png">
<p class="program-text">Improv & Comedy</p>
<p>This improv class is a fun and non-stressful way to
encourage children and young adults to communicate and
build confidence! Students will learn how to think on their
feet when expanding on an idea, story, or debate. These
classes are inspired by <a href=
"http://www.zipzapzopimprov.com/">Zip Zap
Zop</a></p><button class="btn btn-primary">Learn
More</button>
</div>
</div>
</div>
</div>
Any help would be appreciated!

change class both div tag which has class='col-md-6' to class='col-md-4' and put one div tab between them with class='col-md-2' and write your text here
Like as below :
<div class="container">
<div class="row col-md-12">
<p class="text-center program-head">Programs</p>
<div class="col-md-4">
<div class="text-center">
<img alt="" class="resize-image" id="image1" src=
"/wp-content/themes/creativeforces/images/april2.jpg">
<p class="program-text">Creative Writing</p>
<p>This will help unleash a childs mind throught their own
words. The imagination has no limit to a young childs mind.
this is future forever in life yes hold me
now</p><button class="btn btn-primary">Learn More</button>
</div>
</div>
<div class="col-md-2">
your text here
</div>
<div class="col-md-4">
<div class="text-center">
<img alt="" class="resize-image" id="image2" src=
"/wp-content/themes/creativeforces/images/kids.png">
<p class="program-text">Improv & Comedy</p>
<p>This improv class is a fun and non-stressful way to
encourage children and young adults to communicate and
build confidence! Students will learn how to think on their
feet when expanding on an idea, story, or debate. These
classes are inspired by <a href=
"http://www.zipzapzopimprov.com/">Zip Zap
Zop</a></p><button class="btn btn-primary">Learn
More</button>
</div>
</div>
</div>
</div>

How about padding ?
Like this
.col-md-6 p { padding: 0 45px; }

You could offset the first column by one unit and the narrow both to 5 units..
<div class="container">
<div class="row col-md-12">
<p class="text-center program-head">Programs</p>
<div class="col-md-5 col-md-offset-1">
<div class="text-center">
<img alt="" class="resize-image" id="image1" src=
"//placehold.it/300">
<p class="program-text">Creative Writing</p>
<p>This will help unleash a childs mind throught their own
words. The imagination has no limit to a young childs mind.
this is future forever in life yes hold me
now</p><button class="btn btn-primary">Learn More</button>
</div>
</div>
<div class="col-md-5">
<div class="text-center">
<img alt="" class="resize-image" id="image2" src=
"//placehold.it/300">
<p class="program-text">Improv & Comedy</p>
<p>This improv class is a fun and non-stressful way to
encourage children and young adults to communicate and
build confidence! Students will learn how to think on their
feet when expanding on an idea, story, or debate. These
classes are inspired by <a href=
"">Zip Zap
Zop</a></p><button class="btn btn-primary">Learn
More</button>
</div>
</div>
</div>
</div>
http://codeply.com/go/KRPiGeNSpm

Related

Is there a convertor that can convert a whole html code to only its elements(tree) so i can use it for scss

Is there any converter that can convert a whole HTML page to only its elements so I can apply sass on it?
I have also written the CSS code for the HTML in case someone has an idea on how I can do this faster.
Example
THIS
<div class="col-md-6">
<div class="card-body">
<h5 class="card-title">Yeezy Shoets</h5>
<p class="card-text">From from 1400 until 1700, both courtesans and noble ladies wore chopines in her totower over others. During the Renaissance, chopines were a item for women, and they grew
in height;</p>
<h3 class="text-start">2020</h3>
</div>
</div>
<div class="col-md-6">
<img src="assets/1.png" class="img-fluid" alt="...">
</div>
</div>
</div>
TO
<div>
<div>
<h5></h5>
<p></p>
<h3></h3>
</div>
</div>
<div >
<img >
</div>
</div>
</div>

Bootstrap Grid Fix

Evening to everyone.
I'm currently in the process of designing a very basic user dashboard. I'm using Bootstrap framework to make the process easier. I have used the GRID system throughout the project. Nothing complex. Just basic grids.
This is what I have done so far Image
So you can see the problem. I have absolutely no ideas on how to get this one fixed. I'd like no WHITSPACES. You see this I'd like them all to be connected even. Is it even possible to do what I want to?
I have tried messing around with the margins but then that will break the responsiveness of the website. Any ideas or suggestions are really appreciated.
<div class="row no-pad">
<div class="col-sm">
<div class="tile" id="tile1">
<div class="tiletit">
<p class="titleend">First Tile</p>
</div>
<div class="tilebody">
<img src="https://www.picgifs.com/avatars/avatars/alcohol/avatars-alcohol-093831.jpg" alt="..." class="rounded-circle">
</div>
<br/>
<h3 class="titleend text-center">Its your time <br> To have a drink!</h3>
</div>
</div>
<div class="col-sm ml-auto">
<div class="tile" id="tile2">
<h2 class="text-center" id="datetime">Monday, 31</h2>
<br/>
<h2 class="text-center" id="datetimee">7: 30</h2>
</div>
</div>
<div class="col-sm">
<div class="tile" id="tile3">
<div class="tiletit">
<p class="titleend">First Tile</p>
</div>
<div class="tilebody">
<img src="https://www.picgifs.com/avatars/avatars/alcohol/avatars-alcohol-093831.jpg" alt="..." class="rounded-circle">
<h3 class="titleend text-center">Time to <br> Make a <i>change</i></h3>
</div>
</div>
</div>
<div class="col-sm ml-auto">
<div class="tile" id="tile2">
<h2 class="text-center" id="datetime">Monday, 31</h2>
<br/>
<h2 class="text-center" id="datetimee">7: 30</h2>
</div>
</div>
</div>
So yeah that block of code generates the first row of tiles, I just use the same code all over again to get the second row
Thanks in advance

Footer will not go to bottom, showing over content

https://jsfiddle.net/z4of8fvy/
I know my code is somewhat sloppy but I am still learning. I have run it through a validator to see if I had a missing but I didn't find one. Any help would be appreciated.
If there are any other things that you guys can point out I would appreciate that as well.
It keeps asking me for more details but I don't know what else I can say. I do know that at one point the footer was working with me keeping it position: sticky and bottom:0 but when I added more content that's when the problem appeared. That is when I tried to play with it a bit and probably ruined it even more.
<div id="topBar" class="container-fluid">
<div class="row">
<div id="logo" class="col-xs-6">
<a id="homelink" href="https://smithstreetmediagroup.com">
<h1>SMG <br> Studios </h1>
</a>
</div>
<div id= "menu" class = "col-xs-6">
<a class="topBar" href="mess.html"><h4>Me$$ aka M.T.M </h4></a>
<a class="topBar" href="services.html"><h4>Services </h4></a>
<a class="topBar" href="campaigns.html"><h4>Campaigns </h4></a>
<a class="topBar" href="jeybundy.html"><h4>Jey Bundy </h4></a>
<a class="topBar" href="store.html"><h4>Store </h4></a>
<a class="topBar" href="contact.html"><h4>Contact </h4></a>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div id="studioHome" class = "col-xs-4 mainOne">
<h1> Studio Services </h1>
<h1 class="buttons"> Read More </h1>
</div>
<div id="jbHome" class = "col-xs-4 mainOne">
<h1> Jey Bundy </h1>
<h1 class="buttons"> Read More </h1>
</div>
<div id="mtmHome" class = "col-xs-4 mainOne">
<h1> Me$$ aka M.T.M </h1>
<h1 class="buttons"> Read More </h1>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 mainTwo">
<h1>Our Mission</h1>
<p>
Smith media groups consist of a team of polite professionals that provide high quality and affordable service. We consider our customers family so we take pride in making our customers feel as comfortable and satisfied as possible. We offer a vast variety of services such as photoshoots, music videos, parties, wedding videos/photos, real estate photos, music production & duplication, ect. If you have any questions give us a call or use our contact form and we will give you a call. Our Vison, Your Success</p>
</div>
<div class="col-xs-6 mainTwo">
<iframe width="560" height="315" src="https://www.youtube.com/embed/5iSNm5c6dBs?rel=0" frameborder="0" ></iframe>
</div>
</div>
</div>
<div class="container">
<div class = "row">
<div class = "col-xs-12">
<div id="slideshow">
<div class="slideImg">
<img src="battleflyer.jpg" />
</div>
<div class="slideImg">
<img src="bluesmoke.jpg" />
</div>
<div class="slideImg">
<img src="streetview.jpg" />
</div>
<div class="slideImg">
<img src="trackboard.jpg" />
</div>
</div>
</div>
</div>
</div>
<footer>
<div class = "container-fluid">
<div class = "row" id="bottomBar">
<div class = "col-xs-4">
<i class="fa fa-facebook-official" aria-hidden="true"> Facebook</i>
<i class="fa fa-instagram" aria-hidden="true"> Instagram</i>
</div>
<div class = "col-xs-4">
</div>
<div id="designer" class = "col-xs-4">
<h6>Designed by Xavier Velez</h6>
</div>
</div>
</div>
</footer>
It's actually very simple these days. One line of code.
min-height: 100vh;
https://codepen.io/rhroyston/pen/gXXMmr

2 images side by side - Bootstrap [duplicate]

This question already has an answer here:
Bootstrap 3 - Aligning column height
(1 answer)
Closed 6 years ago.
Beginner here, I am building a one page bootstrap site, I have divided the site into sections, i have already added 1st image as the background in section one.
I have tried using the columns but no vial.
I cant get the two images side by side like shown in the prototype (http://imgur.com/a/MJQ2w).
I want the page layout to be like this with no margins but i am unable to do this with bootstrap. Please help me with your expertise.
<header style="background-image: url('static/assets/home-bg.jpg');">
<div class="intro-content">
<div class="brand-name">Learning & Experience</div>
<hr class="colored">
<div class="brand-name-subtext">Lorem Ipsum Dolor Init
</div>
</div>
<div class="scroll-down">
<a class="btn page-scroll" href="#about"><i class="fa fa-angle-down fa-fw"></i></a>
</div>
</header>
<section id="about">
<div class="container-fluid">
<div class="row row-no-gutter">
<div class="col-md-6 img-responsive">
<img src="static/assets/training.png">
</div>
<div class="col-md-6 img-responsive">
<img src="static/assets/recruit.png" >
</div>
</div>
</div>
<div>
Check my example here, Without removes any padding provide by bootstrap
HTML
<section class="values">
<div class="col-md-4 box text-white box blues">
<div class="box-home">
<h4>our values</h4>
<p>At MOCAZ PRIME, with the expertise of experienced traders, we join in giving the best advice and knowledge to individuals to ensure their financial goals can be achieved in any market conditions.</p>
<div class="icon-text">
<p>01.</p>
</div>
</div>
</div>
<div class="col-md-4 text-white box bg-city blacks">
<div class="box-home">
<h4>our philipsophy</h4>
<p>It is our ambition to keep up challenges of a dynamic and changing market. Consequently it is necessary to flexibly bring new techniques which meet the needs of our customers. This all predetermines us to achieve a leading position in the global financial advisory services.</p>
<div class="icon-text">
<p>02.</p>
</div>
</div>
</div>
<div class="col-md-4 text-white box blacks">
<div class="box-home">
<h4>our mission</h4>
<p>Our mission is to facilitate a world-class foreign exchange, metal and contracts for difference trading environment. We're dedicated to providing industry-leading technology to the international trading community and we strive to deliver educational tools and resources that enable traders to further develop their trading skills.</p>
<div class="icon-text">
<p>03.</p>
</div>
</div>
</div>
</section>
DEMO
Replace your code
<div class="col-md-6 img-responsive">
<img src="static/assets/training.png">
</div>
<div class="col-md-6 img-responsive">
<img src="static/assets/recruit.png" >
</div>
With following line of code
<div class="col-md-6">
<img src="static/assets/training.png" class=" img-responsive" />
</div>
<div class="col-md-6">
<img src="static/assets/recruit.png" class=" img-responsive" />
</div>
Fixed the issue, Thanks guys.
<section id="about">
<div class="container-fluid">
<div class="row" id="port2-second-row">
<div class="col-xs-6 imgcont" id="port2-first-col">
<img src="static/assets/training.png" alt="training" />
</div> <!-- end col-sm-6 -->
<div class="col-xs-6 imgcont" id="port2-second-col">
<img src="static/assets/recruit.png" alt="recruit" />
</div> <!-- end col-sm-6 -->
</div> <!-- end port-second-row -->
CSS :
img {
width: 100%;
height: 100%;}
.imgcont {
padding: 0px;

Keep items in div locked in place on mobile resize

I have a site: http://tele-verse.com/site
Where I have a div with an image of a phone, a group photo and a quote.
I have the button "Tell me more" in a certain position relative to the image and I want to keep them in the same position when the screen size is resized to mobile.
Is there a way to lock the items in the div in place?
Here is my code:
<div class="row">
<div class="col-sm-4">
<h4>Phone Systems</h4>
<h4>for All Sized Businesses</h4>
<div class='adPhotoBtn'>
<img src='http://tele-verse.com/site/wp-content/uploads/2015/09/phone.png' alt='phone' />
<a href='http://tele-verse.com/site/contact/'><button type="button" class='adButton'>Tell Me More</button></a>
</div>
</div>
<div class="col-sm-4">
<h4>Mitel MiCollab</h4>
<h4>solutions to keep your</h4>
<h4>business connected</h4>
<div class='adPhotoBtn'>
<img src='http://tele-verse.com/site/wp-content/uploads/2015/09/Collabphoto-transparent.png' alt='collaborate' />
<a href='http://tele-verse.com/site/contact/'><button type="button" class='adButton'>Get Connected</button></a>
</div>
</div>
<div class="col-sm-4">
<img class='quote' src='http://tele-verse.com/site/wp-content/uploads/2015/09/open-quotes.png' alt='"' />
<p>I want you to know that we are very pleased with the quality of service Dan and the rest of your company provides. We sincerely appreciate your responsiveness and the way you conduct business.</p>
<img class='quote' src='http://tele-verse.com/site/wp-content/uploads/2015/09/close-quotes.png' alt='"' />
<h6>MICHAEL GEIGER</h6>
<h6>IT Manager - Precision Gear</h6>
</div>
</div>
Added div around items and set a max-width seemed to work fine.
<div class="row">
<div class="col-md-4 col-sm-4">
<div class='homeAds'>
<h4>Phone Systems</h4>
<h4>for All Sized Businesses</h4>
<div class='adPhotoBtn'>
<img src='http://tele-verse.com/site/wp-content/uploads/2015/09/phone.png' alt='phone' />
<a href='http://tele-verse.com/site/contact/'><button type="button" class='adButton'>Tell Me More</button></a>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class='homeAds'>
<h4>Mitel MiCollab</h4>
<h4>solutions to keep your</h4>
<h4>business connected</h4>
<div class='adPhotoBtn'>
<img src='http://tele-verse.com/site/wp-content/uploads/2015/09/Collabphoto-transparent.png' alt='collaborate' />
<a href='http://tele-verse.com/site/contact/'><button type="button" class='adButton'>Get Connected</button></a>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class='homeAds'>
<img class='quote' src='http://tele-verse.com/site/wp-content/uploads/2015/09/open-quotes.png' alt='"' />
<p>I want you to know that we are very pleased with the quality of service Dan and the rest of your company provides. We sincerely appreciate your responsiveness and the way you conduct business.</p>
<img class='quote' src='http://tele-verse.com/site/wp-content/uploads/2015/09/close-quotes.png' alt='"' />
<h6>MICHAEL GEIGER</h6>
<h6>IT Manager - Precision Gear</h6>
<div class='homeAds'>
</div>
</div>