Messed up my code trying to implement flexbox - css

So I was trying to implement flexbox into my container and it got messed up. I want the text to go beneath the circles, spaced and centered neatly and have it done via flexbox please. I am so lost in this code that I cannot figure this out, any help is greatly appreciated. It says I need t add more details but I can't think of any so this is just type.
.bottom__container {
background-color:rgba(255, 236, 0, 0.7);
text-align: center;
margin:0;
padding: 8px;
color: black;
font-family: 'Kalam', cursive;
font-weight: bolder;
font-size: 1.5rem;
}
.bottom__container li {
list-style: none;
display: inline-block;
padding: 32px;
}
.btm-container__why {
font-size:2.5rem;
margin:0;
}
.btm-container__depends {
font-size: small;
text-align: right;
font-family: initial;
}
.circle {
width: 128px;
height: 128px;
border: 2px solid #424242;
border-radius: 50%;
margin: auto;
background-color: white;
}
.icon {
margin-top: 20%;
}
<section class="btm-containers">
<section id="scroll" class="bottom__container">
<div>
<h1 class="btm-container__why">Why Choose Us?</h1>
<ul>
<li class="lists">
<div class="circle">
<div class="icon"><i class="fa fa-users fa-3x" aria-hidden="true"></i></div>
</div>
<p>Thousands of Clients</p>
</li>
<li class="lists">
<div class="circle">
<div class="icon"><i class="fa fa-handshake-o fa-3x" aria-hidden="true"></i></div>
</div>
<p>Online/In-person Consultations*</p>
</li>
<li class="lists">
<div class="circle">
<div class="icon"><i class="fas fa-directions fa-3x"></i></div>
</div>
<p>Guided Tours*</p>
</li>
<li>
<div class="circle">
<div class="icon"><i class="fa fa-building-o fa-3x" aria-hidden="true"></i></div>
</div>
<p>Affordable Rent!*</p>
</li>
</ul>
<p class="btm-container__depends">*Depends on service purchased.</p>
</div>
</section>

Is there a reason why you put "lists" as a class for both ul and li? and then in your CSS you also selected "lists li". Put another class or change it for one of them, and then you should be able to center it.
Try cleaning up your code first. You have various mistakes such as
<li class="lists">
<div class="circle">
<div class="icon"><i class="fas fa-directions fa-3x"></i></div>
<p>Guided Tours*</p>
</div>
</li class="lists">
<li>
and I think you'd have an easier time debugging if you had it organized.

The problem is with the class for both ul and li (lists) also with padding here is your desired result:
<section id="scroll" class="btm-container">
<div>
<h1 class="btm-container__why">Why Choose Us?</h1>
<ul class="lists">
<li class="list-item">
<div class="position-relative d-flex flex-column align-items-center justify-content-center">
<div class="circle icon"><i class="fa fa-users fa-3x" aria-hidden="true"></i></div>
<p>Thousands of Clients</p>
</div>
</li>
<li class="list-item">
<div class="position-relative d-flex flex-column align-items-center justify-content-center">
<div class="circle icon"><i class="fa fa-handshake-o fa-3x" aria-hidden="true"></i></div>
<p>Online/In-person Consultations*</p>
</div>
</li>
<li class="list-item">
<div class="position-relative d-flex flex-column align-items-center justify-content-center">
<div class="circle icon"><i class="fas fa-directions fa-3x"></i></div>
<p>Guided Tours*</p>
</div>
</li>
<li class="list-item">
<div class="position-relative d-flex flex-column align-items-center justify-content-center">
<div class="circle icon"><i class="fa fa-building-o fa-3x" aria-hidden="true"></i></div>
<p>Affordable Rent!*</p>
</div>
</li>
</ul>
<p class="btm-container__depends">*Depends on service purchased.</p>
</div>
</section>
and CSS
.btm-container {
background-color:rgba(255, 236, 0, 0.7);
text-align: center;
margin:0;
padding: 8px;
color: black;
font-family: 'Kalam', cursive;
font-weight: bolder;
font-size: 1.5rem;
}
.bottom__container li {
list-style: none;
display: inline-block;
padding: 32px;
}
.lists {
display: flex;
justify-content: center;
list-style: none;
margin: 0;
padding: 2rem;
text-align: center;
margin-top: 20px;
}
.btm-container__why {
font-size:2.5rem;
margin:0;
}
.btm-container__depends {
font-size: small;
text-align: right;
font-family: initial;
}
.list-item {
flex-grow: 1;
flex-basis: 0;
p {
position: absolute;
padding: 0 70px;
}
}
.circle {
width: 128px;
height: 128px;
border: 2px solid #424242;
border-radius: 50%;
margin: 0;
background-color: white;
}
.d-flex {
display: flex
}
.align-items-center {
align-items: center;
}
.flex-column {
flex-direction: column;
}
.justify-content-center {
justify-content: center;
}
.position-relative {
position: relative;
}

Related

I am trying to add margins to the main content area, why is it not working?

I'm trying to add margin-top to the footer but it's not working, any ideas why?
body {
font-family: "Heebo", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
font-family: Heebo, sans-serif;
}
span,
p {
color: #000000;
font-family: "Heebo", sans-serif;
font-size: 18px;
letter-spacing: 0.54px;
line-height: 30px;
}
a {
color: inherit;
font-family: "Heebo", sans-serif;
font-size: 18px;
text-decoration: none;
}
/*
* Padding X axis
*/
.px-100 {
padding-right: 100px;
padding-left: 100px;
}
.px-200 {
padding-right: 200px;
padding-left: 200px;
}
/*
* Padding Y axis
*/
.py-100 {
padding-top: 100px;
padding-bottom: 100px;
}
/*
* Header
*/
#header {
position: relative;
z-index: 1000;
background-color: #f1eeea;
}
#header .container-fluid .row {
height: 100px;
}
.language-switcher,
#menu > .menu {
list-style-type: none;
margin: 0;
padding: 0;
}
#menu > .menu {
margin-right: 65px;
}
#menu > .menu li {
font-size: 20px;
}
#menu > .menu li:not(:last-child) {
margin-right: 45px;
}
.language-switcher {
margin-right: 30px;
}
.language-switcher li {
color: #2e2e2e;
font-size: 20px;
}
.language-switcher li:not(:last-child) {
margin-left: 5px;
}
.language-switcher li:not(:last-child)::before {
content: "/";
}
.social-icons {
list-style-type: none;
margin: 0;
padding: 0;
}
.social-icons a:not(:last-child) {
margin-right: 15px;
}
/*
* Footer
*/
#footer {
background-color: #2e2e2e;
}
#footer p {
color: white;
font-size: 20px;
letter-spacing: 0;
line-height: 30px;
}
#footer p.credit {
color: white;
font-size: 25px;
letter-spacing: 0;
line-height: 30px;
}
#footer-bottom {
border-top: 1px solid #ececec;
}
#footer-bottom a,
#footer-bottom p {
color: white;
font-size: 18px;
letter-spacing: 0;
line-height: 27px;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.0/css/bootstrap.min.css" integrity="sha512-XWTTruHZEYJsxV3W/lSXG1n3Q39YIWOstqvmFsdNEEQfHoZ6vm6E9GK2OrF6DSJSpIbRbi+Nn0WDPID9O7xB2Q==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<header id="header" role="banner">
<div class="container-fluid">
<div class="row align-items-center px-100">
<div class="col d-flex align-items-center justify-content-start">
<nav id="menu" class="" role="navigation" itemscope="" itemtype="https://schema.org/SiteNavigationElement">
<ul id="menu-%d7%aa%d7%a4%d7%a8%d7%99%d7%98-%d7%a8%d7%90%d7%a9%d7%99" class="menu d-flex align-items-center">
<li id="menu-item-68" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-68"><span itemprop="name">Item 2</span></li>
<li id="menu-item-69" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-69"><span itemprop="name">Item 1</span></li>
</ul>
</nav>
<img src="/wp-content/uploads/2022/06/icon-search.svg" id="open-search" alt="Search" data-bs-toggle="modal" data-bs-target="#popup-search">
</div>
<div class="col col-lg-2">
<div class="site-logo text-center">
<img width="113" height="60" src="/wp-content/uploads/2022/06/logo.png" class="custom-logo" alt="Logo">
</div>
</div>
<div class="col d-flex justify-content-end">
<ul class="language-switcher d-flex flex-row-reverse align-items-center">
<li class="lang-item lang-item-3 lang-item-en lang-item-first">
English
</li>
<li class="lang-item lang-item-6 lang-item-he current-lang">
עברית
</li>
</ul>
<ul class="social-icons d-flex align-items-center">
<a href="https://www.facebook.com/" target="_blank">
<img src="/wp-content/uploads/2022/06/icon-facebook.svg" alt="">
</a>
<a href="https://www.youtube.com/" target="_blank">
<img src="/wp-content/uploads/2022/06/icon-youtube.svg" alt="">
</a>
</ul>
</div>
</div>
</div>
</header>
<main>
Why is this text close to the footer if there is margin top on the footer?
</main>
<footer id="footer" class="mt-5">
<div class="container-fluid">
<div class="" id="footer-top">
<div class="row g-5 py-5">
<div class="col">
<div class="site-logo text-center">
<a href="https://example.com" class="custom-logo-link" rel="home" aria-current=" aria-current=" page""="">
<img src="/wp-content/uploads/2022/06/logo.png" alt="logo">
</a>
</div>
<p class="site-title text-center mb-0 mt-4"><strong>1</strong></p>
<p class="site-description text-center my-0">1</p>
</div>
<div class="col">
<p class="credit mb-0">1<br><strong>1</strong></p>
</div>
<div class="col">
<p class="mb-0"><strong>1:</strong> 1</p>
<p class="mb-0"><strong>2:</strong> 2</p>
</div>
<div class="col">
<p class="mb-0"><strong>1</strong></p>
<p class="mb-0"><strong>2:</strong> 2</p>
<p class="mb-0"><strong>3:</strong> 3</p>
</div>
<div class="col">
<p><strong>4:</strong></p>
<ul class="social-icons-list list-unstyled list-inline">
<li class="list-inline-item px-1">
<a href="https://www.facebook.com/" target="_blank">
<img src="/wp-content/uploads/2022/07/icon-facebook-white.svg" alt="">
</a>
</li>
<li class="list-inline-item px-1">
<a href="https://www.youtube.com/" target="_blank">
<img src="/wp-content/uploads/2022/07/icon-youtube-white.svg" alt="">
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="" id="footer-bottom">
<div class="row py-4">
<div class="col">
<p class="text-center mb-0">1 1 | 2 2</p>
</div>
</div>
</div>
</div>
</footer>
Thanks!

I'd like to have the same design with my background-color circle using bootstrap 5 when i will pass on mobile size

I'm designing a card with a color background instead of image, after passing in mobile size (sm or xs) my rounded-circle background-color changes to an ellipsoid's one.
Here is what I want:
I would like to have the same design for xl-md-sm even for xs, I used #mediaquery to try to resolve this problem unfortunately it didn't work. so I want your help.
This is what I get:
Here is HTML markup:
<div class="container mt-5 mb-4 px-5">
<div class="card ">
<div class="row mt-5 w-100 hover-shadow ">
<div class="meq card-body bg-danger .d-sm-flex col-2 mt-0 mb-0 rounded-circle px-sm-0 ">
<h1 class="nowrap text-center text-light font-weight-bold px-sm-2 py-5">KKE</h1>
<a href="#!">
</a>
</div>
<div class="col-10 second_part">
<div class="card-text justify-content-center align-items-center">
<div class="card-body">
<a href="#" class="list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h3 class="mb-1 text-dark font-weight-bold">Kumbu<br> Kumbu<br>Ezechias</h3>
<small class="text-muted">
<ul class="list-group">
<li>
<div class="progress ">
<div class=" progress-bar bg-danger" role="progressbar" style="width: 100%;"
aria-valuenow="100" aria-valuemin="100" aria-valuemax="100"></div>
</div>
</li>
<li> Dear you won</li>
<li><small class="font-weight-bold align-content-center float-right">Mo 20224525</small>
</li>
</ul>
</small>
</div>
<p class="mb-1">
Xxxxx77
</p>
<p class="mb-1">
04:25
</p>
</a>
</div>
</div>
</div>
</div>
</div>
<!--/ card 1 -->
here is CSS
* {
margin: 0;
padding: 0;
initial-letter-align: center;
text-decoration: none;
box-sizing: border-box;
}
h1,
h3,
h6 {
text-transform: uppercase;
}
ul {
margin-left: -10px;
padding-left: -10px;
list-style: none;
}
h6 {
text-align: end;
margin-top: 70%;
margin-right: 37%;
}
.nowrap {
white-space: nowrap;
}
#media (max-width: 48em) {
h1,
h3 {
font-size: small;
font-weight: normal;
}
h1 {
margin-top: 0%;
text-align: center;
}
div .meq {
top: 50%;
text-align: center;
max-height: 10.1rem;
max-width: 10.1rem;
padding-left: 0.7rem;
padding-right: 1.9rem;
position: relative;
border-radius: 100%;
}
* {
margin: 0;
padding: 0;
initial-letter-align: center;
text-decoration: none;
box-sizing: border-box;
}
}
I think what's making the trouble is when you use classes .d-sm-flex and card-body that are making trouble.
Here is what I suggest you for your circle div
<div class="rounded-circle text-center" style="width: 10rem; height: 10rem; background: red;" >
<h1 class="nowrap text-center text-light font-weight-bold px-sm-2 py-5">KKE</h1>
<a href="#!">
</a>
</div>

Placing elemenents with css?

I want to place image floated left, next to image, floated left one under another would be Authro, Date and Category, than, after this other elements will be floated on right side...
Like this...
https://i.imgur.com/tcKwalP.png
This is what I have so far...
https://jsfiddle.net/fbn9r3y4/
This is html...
<div class="entry-meta">
<span class="entry-image">
<a class="entry-image-a" href="">
<img src="image.jpg" height="48" width="48">
</a>
</span>
<span class="entry-author">
Ester
</span>
<span class="entry-date">September 3, 2019</span>
<span class="entry-category-single">
Music
</span>
<span class="meta-right">
<span class="entry-views"><span class="view-count">998</span> Views</span>
<span class="entry-like">
<span class="sl-wrapper">
<a href="" class="sl-button">
<span class="sl-count">500<em>Likes</em></span>
</a>
<span class="sl-loader"></span>
</span>
</span>
</span>
</div>
This is css...
.entry-meta {
font-family: Arial, sans-serif;
display: block;
align-items: center;
border-top: 1px solid #f3f3f3;
border-bottom: 1px solid #f3f3f3;
padding: 10px 2px;
}
.entry-image {
display: block;
float: left;
}
.entry-author {
display: block;
float: left;
width: 200px;
}
.entry-date {
display: block;
float: left;
width: 200px;
clear: left;
}
.entry-category-single {
display: block;
float: left;
width: 200px;
clear: left;
}
.meta-right {
margin: 0 10px 0 0;
margin-left: auto;
order: 2;
float: right;
}
.entry-like {
min-width: 32px;
line-height: 1;
float: right;
clear: right;
}
.entry-views {
min-width: 32px;
line-height: 1;
float: right;
clear: right;
}
I changed up your markup a little bit and added a wrapping meta-left around the content of the left side. I also simplified your CSS. There were several CSS properties that were invalid or not necessary.
.entry-meta {
font-family: Arial, sans-serif;
border-top: 1px solid #f3f3f3;
border-bottom: 1px solid #f3f3f3;
padding: 10px 2px;
}
.entry-meta::after {
content: '';
clear: both;
display: block;
}
.meta-left {
float: left;
}
.meta-right {
float: right;
margin: 0 10px 0 0;
}
.entry-image {
float: left;
}
.meta-info {
float: left;
margin-left: 10px;
}
.entry-like {
min-width: 32px;
line-height: 1;
}
.entry-views {
min-width: 32px;
line-height: 1;
}
<div class="entry-meta">
<div class="meta-left">
<div class="entry-image">
<a class="entry-image-a" href="">
<img src="https://via.placeholder.com/48" height="48" width="48">
</a>
</div>
<div class="meta-info">
<div class="entry-author">
Ester
</div>
<div class="entry-date">September 3, 2019</div>
<div class="entry-category-single">
Music
</div>
</div>
</div>
<div class="meta-right">
<div class="entry-views"><span class="view-count">998</span> Views</div>
<div class="entry-like">
<span class="sl-wrapper">
<a href="" class="sl-button">
<span class="sl-count">500<em> Likes</em></span>
</a>
<span class="sl-loader"></span>
</span>
</div>
</div>
</div>
Here's a version using display: flex that's even simpler. Same markup.
.entry-meta {
font-family: Arial, sans-serif;
border-top: 1px solid #f3f3f3;
border-bottom: 1px solid #f3f3f3;
padding: 10px 2px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.meta-left {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.meta-info {
margin-left: 10px;
}
<div class="entry-meta">
<div class="meta-left">
<div class="entry-image">
<a class="entry-image-a" href="">
<img src="https://via.placeholder.com/48" height="48" width="48">
</a>
</div>
<div class="meta-info">
<div class="entry-author">
Ester
</div>
<div class="entry-date">September 3, 2019</div>
<div class="entry-category-single">
Music
</div>
</div>
</div>
<div class="meta-right">
<div class="entry-views"><span class="view-count">998</span> Views</div>
<div class="entry-like">
<span class="sl-wrapper">
<a href="" class="sl-button">
<span class="sl-count">500<em> Likes</em></span>
</a>
<span class="sl-loader"></span>
</span>
</div>
</div>
</div>
Esteros. Please check this link
https://codepen.io/juricon/pen/QWLOZea
HTML:
<div class="entry-meta">
<span class="entry-image">
<a class="entry-image-a" href="">
<img src="image.jpg" height="48" width="48">
</a>
</span>
<ul class="left-float-list">
<ol>
<a href="" title="" rel="author">
Ester
</a>
</ol>
<ol>
September 3, 2019
</ol>
<ol>
<a href="">
Music
</a>
</ol>
</ul>
<ul class="right-float-list">
<li class="items-reverse">
<span class="entry-views">
<!--do not miss nesting rules <tag><tag1></tag1</tag> -->
998
</span>
<span class="view-count">
Views
</span>
</li>
<li>
<span class="entry-like">
<span class="sl-wrapper"> <!--do not miss nesting rules <tag><tag1></tag1</tag> Also, you don't have in CSS classes like .sl-wrapper .sl-button, .sl-count, sl-loader -->
<a href="" class="sl-button">
<span class="sl-count">
500<em>Likes</em>
</span>
<!-- it is a bad idea to use <em> with not cursive text in one <span>. Use CSS to style your text -->
</a>
<span class="sl-loader">
</span>
</span>
</span>
</li>
<li>
Whatever
</li>
</ul>
CSS:
*{ /*clear styles*/
margin:0;
padding:0;
/*clear styles*/
}
.entry-meta {
font-family: Arial, sans-serif;
display: block;
border-top: 1px solid #f3f3f3;
border-bottom: 1px solid #f3f3f3;
padding: 10px 2px;
}
.entry-image{
float: left;
}
.left-float-list{
float: left;
width: 200px;
list-style:none;
background: green;
margin-left:.4em;
}
.right-float-list{
float: right;
list-style:none;
background: red;
margin-right:1em;
}
.entry-views, .entry-like {
min-width: 32px;
line-height: 1;
}
Esteros, here you will find a great web development free course https://www.freecodecamp.org/ and
https://www.w3schools.com/html/default.asp.
It will help you a lot. Good luck!
P.S.: Use Flexbox instead of "float" and you won't regret.

Page overflowing from the right margin

This is my css code.
nav.navbar {
color: white !important;
background-color: #d82c2e;
font-weight: bold;
}
html {
margin-right: 70px !important;
}
.introSec {
height: 750px;
}
.hr {
width: 100px;
border-top: 1px solid red;
}
.navbar-flat li a:focus,
.navbar-flat li a:hover,
.navbar-flat li.active a,
.navbar-brand {
background-color: #c12728;
color: #fff;
}
.navbar-flat a {
transition: all .3s ease-in, 1s;
}
nav.navbar {
padding-left: 35%;
}
.nav-link {
color: #fff;
/*font-size:calc(15px + 0.6vw);*/
}
.navbar-brand {
color: white;
}
.introLine {
text-align: center;
padding-top: 30px;
font-size: calc(15px + 0.6vw);
}
.pieImage {
border-radius: 100%;
margin: 40px 45%;
height: calc(20% + 0.6vw);
min-width: calc(13% + 0.6vw);
}
.pieImage2 {
border-radius: 100%;
margin-top: 20px;
width: 300px !important;
height: 600;
display: inline-block;
}
.coolOne {
margin-left: 17%;
}
#landing-header {
margin-top: -80px;
}
.myName {
text-align: center;
color: white;
font-family: Lato, sans-serif;
letter-spacing: -2px;
}
.title {
text-align: center;
color: black;
word-spacing: 3px;
padding: 10px;
margin: 15px auto;
font-family: 'Pontano Sans', sans-serif;
font-size: calc(30px + 0.6vw);
}
.firstSec {
background-color: #d82c2e;
height: 725px;
}
.aboutTitle {
text-align: center;
color: #d82c2e;
font-family: Lato, sans-serif;
font-weight: 700;
font-size: 30px;
}
.firstSec {
margin-top: 57px;
}
.aboutIntro {
text-align: center;
font-family: Lato, sans-serif;
}
.aboutMe {
padding: 20px 90px 0 90px;
}
.activities-inner {
padding-top: 50px;
margin: 50px;
width: 100%;
}
.activities {
border: 1px solid #e3e5e5;
display: inline;
padding: 50px;
}
.column {
float: left;
width: 25%;
border: 1px solid lightgray;
height: 200px;
text-align: center;
}
.row:after {
content: "";
display: table;
clear: both;
}
.column {
font-weight: 500;
font-size: 30px;
padding-top: 30px;
}
.icon {
font-size: 40px;
color: #d82c2e;
}
.technicalSkills {
text-align: center;
font-family: Lato, sans-serif;
}
.thirdSec {
background-color: #d82c2e;
}
.technicalSkills {
margin-top: 50px;
color: white;
padding-top: 20px;
}
.portfolioHeading {
text-align: center;
color: #d82c2e;
font-weight: 700;
font-family: 700;
font-size: 30px;
}
.hr {
margin-top: 20px;
color: #d82c2e;
}
.portfolioPic {
margin: 20px 35%;
width: 30%;
}
.text-center {
display: flex;
flex-wrap: wrap;
}
.lastHr {
float: left;
}
.contact {
text-align: center;
}
.lastSec {
background-color: #d82c2e;
margin-top: 20px;
}
.contactDetails {
padding-top: 20px;
}
.white {
color: white;
}
.space {
padding-top: 5px;
}
.row {
padding-left: 100px;
padding-right: 130px;
}
.dev {
font-size: calc(18px + 1.0vw);
}
.secondDev {
font-size: calc(15px + 0.6vw);
}
#landing-header {
z-index: 1;
position: relative;
text-align: center;
padding-top: 40vh;
}
#landing-header h1 {
color: #fff;
}
.slideshow {
position: inherit;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 0;
list-style: none;
margin: 0;
margin-top: -23.1%;
padding: 0;
}
.slideshow li {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
opacity: 0;
z-index: 0;
animation: imageAnimation 50s linear infinite;
}
.slideshow li:nth-child(1) {
background-image: url(https://bearlake.org/wp-
content/uploads/cache/images/garden-city-logan-campgrounds/garden-city-logan-campgrounds-987998613.jpg)
}
.slideshow li:nth-child(2) {
background-image: url(https://bearlake.org/wp-content/uploads/cache/images/garden-city-logan-campgrounds/garden-city-logan-campgrounds-987998613.jpg);
animation-delay: 10s;
}
.slideshow li:nth-child(3) {
background-image: url(https://bearlake.org/wp-content/uploads/cache/images/garden-city-logan-campgrounds/garden-city-logan-campgrounds-987998613.jpg);
animation-delay: 20s;
}
.slideshow li:nth-child(4) {
background-image: url(https://bearlake.org/wp-content/uploads/cache/images/garden-city-logan-campgrounds/garden-city-logan-campgrounds-987998613.jpg);
animation-delay: 30s;
}
.slideshow li:nth-child(5) {
background-image: url(https://bearlake.org/wp-content/uploads/cache/images/garden-city-logan-campgrounds/garden-city-logan-campgrounds-987998613.jpg);
animation-delay: 40s;
}
#keyframes imageAnimation {
0% {
opacity: 0;
animation-timing-function: ease-in;
}
10% {
opacity: 1;
animation-timing-function: ease-out;
}
20% {
opacity: 1
}
30% {
opacity: 0
}
}
.no-cssanimations .slideshow li {
opacity: 1;
}
.nav-link {
color: white !important;
}
.navbar-toggler {
border-color: white;
/*margin-left: -50%;*/
}
.navbar-fixed-top {
top: 0;
}
.navbar-light .navbar-toggler {
border-color: transparent !important;
}
<div class="row">
<div class="column col-lg-3 col-md-6 col-sm-12">
<p class="icon">
<i class="fas fa-code"> </i> </p>
<h3 class="dev"> DEVELOPMENT </h3>
</div>
<div class="column col-lg-3 col-md-6 col-sm-12">
<p class="icon">
<i class="fas fa-music"></i>
</p>
<h3 class="dev"> MUSIC </h3>
</div>
<div class="column col-lg-3 col-md-6 col-sm-12">
<p class="icon">
<i class="fas fa-basketball-ball"></i>
</p>
<h3 class="dev"> TENNIS </h3>
</div>
<div class="column col-lg-3 col-md-6 col-sm-12">
<p class="icon">
<i class="fas fa-book"></i>
</p>
<h3 class="dev"> BOOKS </h3>
</div>
</div>
</div>
<div id="scrollToThird">
</section>
<!-- Third Sec Starts here -->
<section class="thirdSec">
<h2 class="technicalSkills"> TECHNICAL SKILLS </h2>
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol id="scrollToFourth" class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active coolOne">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./htmlPercent2.jpg">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./cssPercent2.jpg">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./javascriptPercent2.jpg">
</div>
<div class="carousel-item coolOne">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./nodejsPercent2.jpg">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./expressPercent2.jpg">
<img class="pieImage2 col-lg-4 col-md-4 col-sm-12" src="./javascriptPercent2.jpg">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section>
</div>
<section class="fourthSec">
<hr class="hr">
<h2 class="portfolioHeading"> PORTFOLIO </h2>
<div class="container">
<div class="row text-center" style="display:flex; flex-wrap: wrap;">
<div class="col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./screencapture-lit-mesa-98519-herokuapp-1518954523255.png" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> Yelp Camp</h4>
</div>
Check it out!
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./screencapture-dry-castle-83141-herokuapp-blogs-1519047247719.png" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> Blog Site</h4>
</div>
Check it out!
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./screencapture-whispering-hamlet-69416-herokuapp-results-1519112901364.png" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> Seach Any Movie</h4>
</div>
Check it out!
</div>
</div>
<div class="space col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./IMG_3717.PNG" width="80" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> 101 WeirdFunFacts </h4>
</div>
Check it out!
</div>
</div>
<div class="space col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./IMG_3718.PNG" width="80" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> Flash Card</h4>
</div>
Check it out!
</div>
</div>
<div class="space col-lg-4 col-md-6">
<div class="img-thumbnail">
<img src="./IMG_3719.PNG" width="80" class="img-fluid">
<div class="caption">
<h4 class="secondDev"> Algebraic Equations </h4>
</div>
Check it out!
<div id="scrollToFifth">
</div>
</div>
</div>
</div>
</div>
</section>
<section class="lastSec">
<h2 class="contactDetails"> CONTACT DETAILS </h2>
<hr class="col-lg-4 col-md-4 col-sm-4 col-xs-2 lastHr">
<br>
<br>
<div class="contact">
<h5 class="white"> Email: </h5>
<p> —————————————— </p>
<h5 class="white"> Contact Number: </h5>
<p> ——————————— </p>
<h5 class="white"> Address: </h5>
<p> ———————————— </p>
</div>
</section>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<p> assasa </p>
<% include partials/footer %>
<% include partials/header %>
<section class="introSec">
<!--<div id="landing-header">-->
<div id="landing-header">
<h1>Hi, I am Neymat Kakar</h1>
<h4> Web/IOS Developer In Dubai </h4>
</div>
<ul class="slideshow">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<div id="scrollTo">
<section class="firstSec">
<nav class="navbar navbar-expand-lg navbar-flat navbar-light">
<!--<a class="navbar-brand" href="#srcollTo">HOME </a>-->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#scrollTo">HOME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#scrollToSec">ABOUT</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#scrollToThird">SKILLS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#scrollToFourth">PORTFOLIO</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#scrollToFifth">CONTACT</a>
</li>
</ul>
</div>
</nav>
<img class="pieImage" src="./IMG_8224.jpg">
<h1 class="myName"> NEYMAT KAKAR </h1>
<h3 class="introLine"> CREATIVE - PROFESSIONAL - PASSIONATE</h3>
<h5 class="col-lg-12 col-md-12 col-sm-12 col-xs-12 title"> WEB/IOS APP DEVELOPER</h5>
<div id="scrollToSec">
</section>
</div>
<!-- Second Section Starts Below -->
<section class="secSec">
<hr class="hr">
<h3 class="aboutTitle"> HERE'S WHAT I'M DOING </h3>
<!--<p class = "aboutIntro"> I introduce the most creative and original ideas for my company </p>-->
<p class="aboutMe"> “I am a simple person with great passion for web development. I have been in the field now for quite some time, and have been loving every minute of it. I am also a part-time blogger and avid reader of non-fiction and overall thinker. I also enjoy
going out to local meetups, events and descent clubs to interact with people from various walks of life.” </p>
Please go through the image. This is how my page looks like.
Notice from navbar section, the margin on the right is way out. I need all the sections to have the same margin and the page not to overflow.
I think problem with your html and body margin. Remove margin-right to your html to tag.
Try to set below css
html,body {
width: 100%;
height: 100%;
margin: 0;
padding:0;
overflow-x:hidden;
}
Inside the html if you're using bootstrap go-through about bootstrap container class to get left and right space.

How do you make some number of columns the same height while preserving wrapping in bootstrap.js?

As an example I have a 3-column layout such as:
and would like to make the middle column the same height as whichever of the other two is the largest (the full row height.) I also want it to be able to wrap when it gets too small, because it handles that part perfectly right now as:
Here is a fiddle that will allow you to resize and see the issue in action.
<div class="panel panel-default">
<h2 class="panel-heading">Example</h2>
<div class="container-fluid row vertical-align code-bg" style="padding: 0px;">
<div class="col-xs-12 col-md-5 col-lg-5"><code><a class="keyword" href="#functions__return_type">function</a> <a class="name" href="#functions__function_name">foo</a>(<a class="name" href="#functions__argument_name">data</a>) {
<span class="type">return</span> (<span class="name">data</span> != undefined ? <a class="name" href="#functions__return_value">data</a> : <a class="string" href="#functions__return_value">'no data'</a>);
}</code></div>
<div class="col-xs-12 col-md-2 col-lg-1 text-center" style="background-color: #3B3B3B;">equivalent to</div>
<div class="col-xs-12 col-md-5 col-lg-6"><code><a class="flag" href="#functions__security">insecure</a> <a class="flag" href="#functions__access">public</a> <a class="flag" href="#functions__affinity">local</a> <a class="flag" href="#functions__extent">dynamic</a> <a class="flag" href="#functions__synchronization">sync</a> <a class="type" href="#functions__return_type">string</a> <a class="name" href="#functions__function_name">foo</a>(<a class="flag" href="#functions__argument_optionality">optional</a> <a class="type" href="#functions__argument_type">string</a> <a class="name" href="#functions__argument_name">data</a> = <a class="string" href="#functions__argument_default_value">'no data'</a>) {
<span class="type">return</span> (<a class="name" href="#functions__return_value">data</a>);
}</code></div>
</div>
</div>
I see that you already started on using flexbox!
I've expanded on this in the fiddle below:
https://jsfiddle.net/opxr7pow/16/
So each of the column divs are also display: flex; and moved the align-items: center; style onto these rather than the row (it was preventing the columns from going full height).
Had to then use justify-content: center; to center align the middle column, as text-align: center; wasn't working. I'm not sure why this was though :(
Please use the JSFiddle above, as the code snippet looks a bit messy..
body {
background-color: #181818;
color: #A9B7C6;
font-family: "Courier New", Courier, monospace;
border: 0px;
margin: 0px;
padding: 0px;
}
code {
background-color: #2B2B2B;
color: #A9B7C6;
display: block;
font-family: "Courier New", Courier, monospace;
font-size: 16px;
margin: 0px;
padding: 20px;
white-space: pre-wrap;
}
code:after {
content: " ";
}
.code-bg {
background-color: #2B2B2B;
margin-left: 0px;
margin-right: 0px;
}
h1 {
font-size: 32px;
margin: 0px;
}
h1 > a:hover {
text-decoration: none;
}
h2 {
font-size: 24px;
margin: 0px;
}
h2 > a:hover {
text-decoration: none;
}
h3 {
font-size: 20px;
margin: 0px;
}
h3 > a:hover {
text-decoration: none;
}
h4 {
font-size: 16px;
margin: 0px;
}
h4 > a:hover {
text-decoration: none;
}
.list > li {
white-space: pre-wrap;
}
p {
margin: 0px;
white-space: pre-wrap;
}
.text-center {
text-align:center;
justify-content: center;
}
.vertical-align {
display: flex;
flex-wrap: wrap;
}
.vertical-align > div {
align-items:center;
display: flex;
}
<script src="https://bootswatch.com/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="https://bootswatch.com/slate/bootstrap.css" rel="stylesheet"/>
<div class="panel panel-default">
<h2 class="panel-heading">Example</h2>
<div class="container-fluid row vertical-align code-bg" style="padding: 0px;">
<div class="col-xs-12 col-md-5 col-lg-5"><code><a class="keyword" href="#functions__return_type">function</a> <a class="name" href="#functions__function_name">foo</a>(<a class="name" href="#functions__argument_name">data</a>) {
<span class="type">return</span> (<span class="name">data</span> != undefined ? <a class="name" href="#functions__return_value">data</a> : <a class="string" href="#functions__return_value">'no data'</a>);
}</code></div>
<div class="col-xs-12 col-md-2 col-lg-1 text-center" style="background-color: #3B3B3B;">equivalent to</div>
<div class="col-xs-12 col-md-5 col-lg-6"><code><a class="flag" href="#functions__security">insecure</a> <a class="flag" href="#functions__access">public</a> <a class="flag" href="#functions__affinity">local</a> <a class="flag" href="#functions__extent">dynamic</a> <a class="flag" href="#functions__synchronization">sync</a> <a class="type" href="#functions__return_type">string</a> <a class="name" href="#functions__function_name">foo</a>(<a class="flag" href="#functions__argument_optionality">optional</a> <a class="type" href="#functions__argument_type">string</a> <a class="name" href="#functions__argument_name">data</a> = <a class="string" href="#functions__argument_default_value">'no data'</a>) {
<span class="type">return</span> (<a class="name" href="#functions__return_value">data</a>);
}</code></div>
</div>
</div>

Resources