**Hello guys i've shared my code snippet. i wanna put referanslar and kategoriler section side by side. Any help appreciated. I've tried every way but i could not fix it. Footer is too big also it doesnt seem good. How can i put referanslar and kategoriler section side by side?
.site-footer {
background-color: rgb(226, 109, 128);
padding: 45px 0 20px;
font-size: 15px;
line-height: 24px;
color: #ffffff;
}
.site-footer hr {
border-top-color: rgb(255, 255, 255);
opacity: 0.5
}
.site-footer hr.small {
margin: 20px 0
}
.site-footer h6 {
color: rgb(0, 0, 0);
font-size: 16px;
text-transform: uppercase;
margin-top: 5px;
letter-spacing: 2px
}
.site-footer a {
color: #ffffff;
}
.site-footer a:hover {
color: #eeafdd;
text-decoration: none;
}
.footer-links {
padding-left: 0;
list-style: none
}
.footer-links li {
display: block
}
.footer-links a {
color: #ffffff
}
.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
color: #000000;
text-decoration: none;
}
.footer-links.inline li {
display: inline-block
}
.site-footer .social-icons {
text-align: right
}
.site-footer .social-icons a {
width: 50px;
height: 40px;
line-height: 40px;
margin-left: 6px;
margin-right: 0;
border-radius: 100%;
background-color: #33353d
}
.copyright-text {
margin: 0;
padding: 5px;
}
#media (max-width:991px) {
.site-footer [class^=col-] {
margin-bottom: 30px
}
}
#media (max-width:767px) {
.site-footer {
padding-bottom: 0
}
.site-footer .copyright-text,
.site-footer .social-icons {
text-align: center
}
}
.social-icons {
padding-left: 0;
margin-bottom: 0;
list-style: none
}
.social-icons li {
display: inline-block;
margin-bottom: 4px
}
.social-icons li.title {
margin-right: 15px;
text-transform: uppercase;
color: #96a2b2;
font-weight: 700;
font-size: 13px
}
.social-icons a {
background-color: #eceeef;
color: #818a91;
font-size: 16px;
display: inline-block;
line-height: 44px;
width: 44px;
height: 44px;
text-align: center;
margin-right: 8px;
border-radius: 100%;
-webkit-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
color: #fff;
background-color: #060708
}
.social-icons.size-sm a {
line-height: 34px;
height: 34px;
width: 34px;
font-size: 14px
}
.social-icons a.facebook:hover {
background-color: #ff0606
}
.social-icons a.twitter:hover {
background-color: #00aced
}
.social-icons a.linkedin:hover {
background-color: #0f86fd
}
.social-icons a.dribbble:hover {
background-color: #e86969
}
#media (max-width:7px) {
.social-icons li.title {
display: block;
margin-right: 0;
font-weight: 600
}
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-3 ">
<h6>Kategoriler</h6>
<ul class="footer-links">
<li>Anasayfa</li>
<li>Hakkımda</li>
<li>Projelerim</li>
<li>Fotogaleri</li>
<li>İletişim</li>
</ul>
</div>
<div class="col-xs-6 col-md-3 ">
<h6>Referans Linkleri</h6>
<ul class="footer-links">
<li> Adnan Menderes Üniversitesi</li>
<li>Hakan Güleryüz</li>
<li>Elçin Erbil</li>
<li>Afra Nur Kalafat</li>
<li>Eylül İdil Özeren</li>
<li>Büşra Melek Uzdu</li>
<li>Sitemap</li>
</ul>
</div>
</div>
<hr>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-6 col-xs-12">
<p class="copyright-text">Copyright © 2022 All Rights Reserved by
Buse Nur Çetin.
</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<ul class="social-icons">
<li><a class="Github" href="https://github.com/busenurcetin" target="_blank"><i class="fab fa-github"></i></a></li>
<li><a class="twitter" href="https://twitter.com/busenurcetin16" target="_blank"><i class="fab fa-twitter"></i></a></li>
<li><a class="dribbble" href="https://realbusenurcetin.tech/" target="_blank"><i class="fab fa-safari"></i></a></li>
<li><a class="linkedin" href="https://www.linkedin.com/in/busenur-%C3%A7etin-349b05253/" target="_blank"><i class="fab fa-linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
You should have a look at flexbox
.row {
display:flex;
}
.row > div {
flex: 1 1;
}
.row {
display:flex;
}
.row > div {
flex: 1 1;
}
.site-footer {
background-color: rgb(226, 109, 128);
padding: 45px 0 20px;
font-size: 15px;
line-height: 24px;
color: #ffffff;
}
.site-footer hr {
border-top-color: rgb(255, 255, 255);
opacity: 0.5
}
.site-footer hr.small {
margin: 20px 0
}
.site-footer h6 {
color: rgb(0, 0, 0);
font-size: 16px;
text-transform: uppercase;
margin-top: 5px;
letter-spacing: 2px
}
.site-footer a {
color: #ffffff;
}
.site-footer a:hover {
color: #eeafdd;
text-decoration: none;
}
.footer-links {
padding-left: 0;
list-style: none
}
.footer-links li {
display: block
}
.footer-links a {
color: #ffffff
}
.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
color: #000000;
text-decoration: none;
}
.footer-links.inline li {
display: inline-block
}
.site-footer .social-icons {
text-align: right
}
.site-footer .social-icons a {
width: 50px;
height: 40px;
line-height: 40px;
margin-left: 6px;
margin-right: 0;
border-radius: 100%;
background-color: #33353d
}
.copyright-text {
margin: 0;
padding: 5px;
}
#media (max-width:991px) {
.site-footer [class^=col-] {
margin-bottom: 30px
}
}
#media (max-width:767px) {
.site-footer {
padding-bottom: 0
}
.site-footer .copyright-text,
.site-footer .social-icons {
text-align: center
}
}
.social-icons {
padding-left: 0;
margin-bottom: 0;
list-style: none
}
.social-icons li {
display: inline-block;
margin-bottom: 4px
}
.social-icons li.title {
margin-right: 15px;
text-transform: uppercase;
color: #96a2b2;
font-weight: 700;
font-size: 13px
}
.social-icons a {
background-color: #eceeef;
color: #818a91;
font-size: 16px;
display: inline-block;
line-height: 44px;
width: 44px;
height: 44px;
text-align: center;
margin-right: 8px;
border-radius: 100%;
-webkit-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
color: #fff;
background-color: #060708
}
.social-icons.size-sm a {
line-height: 34px;
height: 34px;
width: 34px;
font-size: 14px
}
.social-icons a.facebook:hover {
background-color: #ff0606
}
.social-icons a.twitter:hover {
background-color: #00aced
}
.social-icons a.linkedin:hover {
background-color: #0f86fd
}
.social-icons a.dribbble:hover {
background-color: #e86969
}
#media (max-width:7px) {
.social-icons li.title {
display: block;
margin-right: 0;
font-weight: 600
}
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-3 ">
<h6>Kategoriler</h6>
<ul class="footer-links">
<li>Anasayfa</li>
<li>Hakkımda</li>
<li>Projelerim</li>
<li>Fotogaleri</li>
<li>İletişim</li>
</ul>
</div>
<div class="col-xs-6 col-md-3 ">
<h6>Referans Linkleri</h6>
<ul class="footer-links">
<li> Adnan Menderes Üniversitesi</li>
<li>Hakan Güleryüz</li>
<li>Elçin Erbil</li>
<li>Afra Nur Kalafat</li>
<li>Eylül İdil Özeren</li>
<li>Büşra Melek Uzdu</li>
<li>Sitemap</li>
</ul>
</div>
</div>
<hr>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-6 col-xs-12">
<p class="copyright-text">Copyright © 2022 All Rights Reserved by
Buse Nur Çetin.
</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<ul class="social-icons">
<li><a class="Github" href="https://github.com/busenurcetin" target="_blank"><i class="fab fa-github"></i></a></li>
<li><a class="twitter" href="https://twitter.com/busenurcetin16" target="_blank"><i class="fab fa-twitter"></i></a></li>
<li><a class="dribbble" href="https://realbusenurcetin.tech/" target="_blank"><i class="fab fa-safari"></i></a></li>
<li><a class="linkedin" href="https://www.linkedin.com/in/busenur-%C3%A7etin-349b05253/" target="_blank"><i class="fab fa-linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
You can consider a flexbox for the row class. Documentation added in CSS code.
/* Added */
* {
box-sizing: border-box; /* Adjust calculations width/heigth of elements */
}
.site-footer > .container > .row {
display: flex;
justify-content: space-around; /* Devides the space around the columns */
}
/* ------------------------ */
.site-footer {
background-color: rgb(226, 109, 128);
padding: 45px 0 20px;
font-size: 15px;
line-height: 24px;
color: #ffffff;
}
.site-footer hr {
border-top-color: rgb(255, 255, 255);
opacity: 0.5
}
.site-footer hr.small {
margin: 20px 0
}
.site-footer h6 {
color: rgb(0, 0, 0);
font-size: 16px;
text-transform: uppercase;
margin-top: 5px;
letter-spacing: 2px
}
.site-footer a {
color: #ffffff;
}
.site-footer a:hover {
color: #eeafdd;
text-decoration: none;
}
.footer-links {
padding-left: 0;
list-style: none
}
.footer-links li {
display: block
}
.footer-links a {
color: #ffffff
}
.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
color: #000000;
text-decoration: none;
}
.footer-links.inline li {
display: inline-block
}
.site-footer .social-icons {
text-align: right
}
.site-footer .social-icons a {
width: 50px;
height: 40px;
line-height: 40px;
margin-left: 6px;
margin-right: 0;
border-radius: 100%;
background-color: #33353d
}
.copyright-text {
margin: 0;
padding: 5px;
}
#media (max-width:991px) {
.site-footer [class^=col-] {
margin-bottom: 30px
}
}
#media (max-width:767px) {
.site-footer {
padding-bottom: 0
}
.site-footer .copyright-text,
.site-footer .social-icons {
text-align: center
}
}
.social-icons {
padding-left: 0;
margin-bottom: 0;
list-style: none
}
.social-icons li {
display: inline-block;
margin-bottom: 4px
}
.social-icons li.title {
margin-right: 15px;
text-transform: uppercase;
color: #96a2b2;
font-weight: 700;
font-size: 13px
}
.social-icons a {
background-color: #eceeef;
color: #818a91;
font-size: 16px;
display: inline-block;
line-height: 44px;
width: 44px;
height: 44px;
text-align: center;
margin-right: 8px;
border-radius: 100%;
-webkit-transition: all .2s linear;
-o-transition: all .2s linear;
transition: all .2s linear
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
color: #fff;
background-color: #060708
}
.social-icons.size-sm a {
line-height: 34px;
height: 34px;
width: 34px;
font-size: 14px
}
.social-icons a.facebook:hover {
background-color: #ff0606
}
.social-icons a.twitter:hover {
background-color: #00aced
}
.social-icons a.linkedin:hover {
background-color: #0f86fd
}
.social-icons a.dribbble:hover {
background-color: #e86969
}
#media (max-width:7px) {
.social-icons li.title {
display: block;
margin-right: 0;
font-weight: 600
}
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-3 ">
<h6>Kategoriler</h6>
<ul class="footer-links">
<li>Anasayfa</li>
<li>Hakkımda</li>
<li>Projelerim</li>
<li>Fotogaleri</li>
<li>İletişim</li>
</ul>
</div>
<div class="col-xs-6 col-md-3 ">
<h6>Referans Linkleri</h6>
<ul class="footer-links">
<li> Adnan Menderes Üniversitesi</li>
<li>Hakan Güleryüz</li>
<li>Elçin Erbil</li>
<li>Afra Nur Kalafat</li>
<li>Eylül İdil Özeren</li>
<li>Büşra Melek Uzdu</li>
<li>Sitemap</li>
</ul>
</div>
</div>
<hr>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-6 col-xs-12">
<p class="copyright-text">Copyright © 2022 All Rights Reserved by
Buse Nur Çetin.
</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<ul class="social-icons">
<li><a class="Github" href="https://github.com/busenurcetin" target="_blank"><i class="fab fa-github"></i></a></li>
<li><a class="twitter" href="https://twitter.com/busenurcetin16" target="_blank"><i class="fab fa-twitter"></i></a></li>
<li><a class="dribbble" href="https://realbusenurcetin.tech/" target="_blank"><i class="fab fa-safari"></i></a></li>
<li><a class="linkedin" href="https://www.linkedin.com/in/busenur-%C3%A7etin-349b05253/" target="_blank"><i class="fab fa-linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
Related
This is my first time writing in html and css, so sorry if it's confusing and dumb.
I'm trying to make that sticks to the bottom and covers the length of the page, the problem is that i tried everything i could, from padding to width:100% other thant searching online, what can i do?
I'm using angular and i have installed bootstrap, please don't hesitate to ask any question or to ask me to explain myself (i'm not a native speaker), have a nice day and thank you!
#import url('https://fonts.googleapis.com/css2?family=Poppins:wght#300;400;500;600;700&display=swap');
body {
width: 100%;
height: 100%;
line-height: 1;
font-family: 'Poppins', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 2270px;
margin: 0 auto;
}
.row {
display: flex;
flex-wrap: wrap;
}
ul {
list-style: none;
}
.footer {
background-color: #24262b;
padding: 20px 0;
}
.footer-col {
width: 25%;
padding: 0;
}
.footer-col h4 {
font-size: 18px;
color: #ffffff;
text-transform: capitalize;
margin-bottom: 35px;
font-weight: 500;
position: relative;
}
.footer-col h4::before {
content: '';
position: absolute;
left: 0;
bottom: -10px;
background-color: #e91e63;
height: 2px;
box-sizing: border-box;
width: 50px;
}
.footer-col ul li:not(:last-child) {
margin-bottom: 10px;
}
.footer-col ul li a {
font-size: 16px;
text-transform: capitalize;
color: #ffffff;
text-decoration: none;
font-weight: 300;
color: #bbbbbb;
display: block;
transition: all 0.3s ease;
}
.footer-col ul li a:hover {
color: #ffffff;
padding-left: 8px;
}
.footer-col .social-links a {
display: inline-block;
height: 40px;
width: 40px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0 10px 10px 0;
text-align: center;
line-height: 40px;
border-radius: 50%;
color: #ffffff;
transition: all 0.5s ease;
}
.footer-col .social-links a:hover {
color: #24262b;
background-color: #ffffff;
}
.siteFooterBar {
position: fixed;
bottom: 0;
padding-top: 10px;
width: 100%;
box-shadow: 0px 0px 25px rgb(207, 207, 207);
height: 78px;
color: #9B9B9B;
background: #F3F3F3;
}
.content {
display: block;
padding: 10px;
margin: 0px auto;
text-align: center;
font: 25px Georgia, "Times New Roman", Times, serif;
font-size: 14px;
width: 300px;
display: flex;
}
.foot {
display: inline;
line-height: 70px;
}
.content img {
height: 150px;
width: 150px;
float: left;
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-webkit-transition: all .6s ease-in-out;
transition: 0.6s;
}
.content img:hover {
filter: invert(400%);
filter: brightness(4);
-webkit-filter: grayscale(-100);
-webkit-transform: scale(1.10);
}
/*responsive*/
#media(max-width: 100%) {
.footer-col {
width: 100%;
margin-bottom: 0px;
}
}
#media(max-width: 100%) {
.footer-col {
width: 100%;
}
}
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col">
<div class="content">
<a href="#">
<img src="https://i.imgur.com/1yvwx9I.png">
</a>
</div>
</div>
<div class="footer-col">
<h4>Azienda</h4>
<ul>
<li>Chi Siamo</li>
<li>Contattaci</li>
<li>Placeholder</li>
<li>PlaceHolder</li>
</ul>
</div>
<div class="footer-col">
<h4>Aiuto</h4>
<ul>
<li>FAQ</li>
<li>Consegne</li>
<li>Reso</li>
<li>Informatica privacy</li>
</ul>
</div>
<div class="footer-col">
<h4>Seguici su</h4>
<div class="social-links">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-linkedin-in"></i>
</div>
</div>
</div>
</div>
</footer>
The standard way to align a footer at the bottom of a webpage is just by setting it to position: relative;. However, this entails that there is more content that is equal to or greater than the viewport height. Hence, aligning the footer after the content and at the bottom.
If you don't have content, use position: absolute; on footer. Then you can set bottom: 0px; to get it at the bottom. Then set left and right to 0 to get it the full width. See below.
#import url('https://fonts.googleapis.com/css2?family=Poppins:wght#300;400;500;600;700&display=swap');
body {
width: 100%;
height: 100%;
line-height: 1;
font-family: 'Poppins', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 2270px;
margin: 0 auto;
}
.row {
display: flex;
flex-wrap: wrap;
}
ul {
list-style: none;
}
/* new */
footer {
position: absolute;
bottom: 0px;
right: 0px;
left: 0px;
}
/* end new */
.footer {
background-color: #24262b;
padding: 20px 0;
}
.footer-col {
width: 25%;
padding: 0;
}
.footer-col h4 {
font-size: 18px;
color: #ffffff;
text-transform: capitalize;
margin-bottom: 35px;
font-weight: 500;
position: relative;
}
.footer-col h4::before {
content: '';
position: absolute;
left: 0;
bottom: -10px;
background-color: #e91e63;
height: 2px;
box-sizing: border-box;
width: 50px;
}
.footer-col ul li:not(:last-child) {
margin-bottom: 10px;
}
.footer-col ul li a {
font-size: 16px;
text-transform: capitalize;
color: #ffffff;
text-decoration: none;
font-weight: 300;
color: #bbbbbb;
display: block;
transition: all 0.3s ease;
}
.footer-col ul li a:hover {
color: #ffffff;
padding-left: 8px;
}
.footer-col .social-links a {
display: inline-block;
height: 40px;
width: 40px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0 10px 10px 0;
text-align: center;
line-height: 40px;
border-radius: 50%;
color: #ffffff;
transition: all 0.5s ease;
}
.footer-col .social-links a:hover {
color: #24262b;
background-color: #ffffff;
}
.siteFooterBar {
position: fixed;
bottom: 0;
padding-top: 10px;
width: 100%;
box-shadow: 0px 0px 25px rgb(207, 207, 207);
height: 78px;
color: #9B9B9B;
background: #F3F3F3;
}
.content {
display: block;
padding: 10px;
margin: 0px auto;
text-align: center;
font: 25px Georgia, "Times New Roman", Times, serif;
font-size: 14px;
width: 300px;
display: flex;
}
.foot {
display: inline;
line-height: 70px;
}
.content img {
height: 150px;
width: 150px;
float: left;
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-webkit-transition: all .6s ease-in-out;
transition: 0.6s;
}
.content img:hover {
filter: invert(400%);
filter: brightness(4);
-webkit-filter: grayscale(-100);
-webkit-transform: scale(1.10);
}
/*responsive*/
#media(max-width: 100%) {
.footer-col {
width: 100%;
margin-bottom: 0px;
}
}
#media(max-width: 100%) {
.footer-col {
width: 100%;
}
}
<main>
fooo
</main>
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col">
<div class="content">
<a href="#">
<img src="https://i.imgur.com/1yvwx9I.png">
</a>
</div>
</div>
<div class="footer-col">
<h4>Azienda</h4>
<ul>
<li>Chi Siamo</li>
<li>Contattaci</li>
<li>Placeholder</li>
<li>PlaceHolder</li>
</ul>
</div>
<div class="footer-col">
<h4>Aiuto</h4>
<ul>
<li>FAQ</li>
<li>Consegne</li>
<li>Reso</li>
<li>Informatica privacy</li>
</ul>
</div>
<div class="footer-col">
<h4>Seguici su</h4>
<div class="social-links">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-instagram"></i>
<i class="fab fa-linkedin-in"></i>
</div>
</div>
</div>
</div>
</footer>
I was able to find an html and css code to start creating my footer.
I was able to make it look a bit the way I want as seen in the following code:
However, I wanna be able to center all three headers and I can't seem to find how...
* {
margin: 0;
padding: 0;
}
#import url('https://fonts.googleapis.com/css2?family=Poppins:wght#300;400;500;600;700&display=swap');
body {
line-height: 1.5;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.textDecoration {
text-decoration: none;
color: inherit;
}
.container {
max-width: 100%;
margin: 0px;
}
.row {
display: flex;
flex-wrap: wrap;
}
ul {
list-style: none;
}
.footer {
background-color: #24262b;
padding: 0px 0;
width: 100%;
}
.footer-col {
width: 25%;
padding: 0 15px;
}
.footer-col h4 {
font-size: 18px;
color: #ffffff;
text-transform: capitalize;
margin-bottom: 35px;
font-weight: 500;
position: relative;
}
.footer-col h4::before {
content: '';
position: absolute;
left: 0;
bottom: -10px;
background-color: red;
height: 2px;
box-sizing: border-box;
width: 50px;
}
.footer-col ul li:not(:last-child) {
margin-bottom: 10px;
}
.footer-col ul li a {
font-size: 16px;
text-transform: capitalize;
color: #ffffff;
text-decoration: none;
font-weight: 300;
color: #bbbbbb;
display: block;
transition: all 0.3s ease;
}
.footer-col ul li a:hover {
color: #ffffff;
padding-left: 8px;
}
.footer-col .social-links a {
display: inline-block;
height: 40px;
width: 40px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0 10px 10px 0;
text-align: center;
line-height: 40px;
border-radius: 50%;
color: #ffffff;
transition: all 0.5s ease;
}
.footer-col .social-links a:hover {
color: #24262b;
background-color: #ffffff;
}
<p>In this example, we remove the bullets from the list, and its default padding and margin.</p>
<ul>
<li>Home</li>
<li>News</li>
<li>Contact</li>
<li>About</li>
</ul>
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col">
<h4>Terms & Conditions</h4>
</div>
<div class="footer-col">
<h4><a class="textDecoration" href="#privacy">Privacy and Policy</a></h4>
</div>
<div class="footer-col">
<h4>Follow Us</h4>
<div class="social-links">
</div>
</div>
<div class="footer-col">
<div class="social-links">
<h3><img src="https://i.ibb.co/Lp1sB0M/face4.png"></a>
<img src="https://i.ibb.co/XVzFjBR/ig3.png"></a>
<img src="https://i.ibb.co/vVRq5dz/tw2.png"></a>
<img src="https://i.ibb.co/8j8dWcG/yt2.png"></a>
</h3>
</div>
</div>
</div>
</footer>
Any hints you can provide me to achieve this?
What would you recommend for social network icons for the footer?
It makes sense to put all h4's in a single footer-col div together because you want them grouped in the center. So you can do that, then add display: flex; to footer-col and use justify-content: center; to center them. Then you can add a gap to space them out. I also added display: flex; on your social-links to allow them to flex to stay on the same line.
* {
margin: 0;
padding: 0;
}
#import url('https://fonts.googleapis.com/css2?family=Poppins:wght#300;400;500;600;700&display=swap');
body {
line-height: 1.5;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.social-links {
display: flex;
}
.textDecoration {
text-decoration: none;
color: inherit;
}
.container {
max-width: 100%;
margin: 0px;
}
.row {
display: flex;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
}
ul {
list-style: none;
}
.footer {
background-color: #24262b;
padding: 0px 0;
width: 100%;
}
.footer-col {
display: flex;
width: 100%;
justify-content: center;
gap: 2em;
}
.footer-col h4 {
font-size: 18px;
color: #ffffff;
text-transform: capitalize;
margin-bottom: 35px;
font-weight: 500;
position: relative;
}
.footer-col h4::before {
content: '';
position: absolute;
left: 0;
bottom: -10px;
background-color: red;
height: 2px;
box-sizing: border-box;
width: 50px;
}
.footer-col ul li:not(:last-child) {
margin-bottom: 10px;
}
.footer-col ul li a {
font-size: 16px;
text-transform: capitalize;
color: #ffffff;
text-decoration: none;
font-weight: 300;
color: #bbbbbb;
display: block;
transition: all 0.3s ease;
}
.footer-col ul li a:hover {
color: #ffffff;
padding-left: 8px;
}
.footer-col .social-links a {
display: inline-block;
height: 40px;
width: 40px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0 10px 10px 0;
text-align: center;
line-height: 40px;
border-radius: 50%;
color: #ffffff;
transition: all 0.5s ease;
}
.footer-col .social-links a:hover {
color: #24262b;
background-color: #ffffff;
}
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<p>In this example, we remove the bullets from the list, and its default padding and margin.</p>
<ul>
<li>Home</li>
<li>News</li>
<li>Contact</li>
<li>About</li>
</ul>
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col">
<h4>Terms & Conditions</h4>
<h4><a class="textDecoration" href="#privacy">Privacy and Policy</a></h4>
<h4>Follow Us</h4>
</div>
<div class="social-links"><img src="./img/face4.png">
<img src="./img/ig3.png">
<img src="./img/tw2.png">
<img src="./img/yt2.png">
</div>
</div>
</div>
</footer>
</body>
</html>
I have tried literally everything to try and make the exit icon show up on the menu by giving it an index of 999 but still no luck in making it show, any idea why it is not working?
I have added the JavaScript as well.
menuBtn.addEventListener('click' , () => {
const menu = document.querySelectorAll('.menu');
for(let el of menu){
el.style.display = 'block'
}
})
/*Navbar*/
.navbar {
width: 100%;
position: fixed;
font-family: "Ubuntu", sans-serif;
padding: 30px 0;
}
.navbar .logo a {
font-size: 2rem;
font-weight: 600;
color: white;
}
.navbar .logo a span {
color: crimson;
transition: all 0.3s ease;
}
.sticky {
padding: 30px 0;
background-color: crimson;
}
.sticky .logo a span {
color: #fff;
}
.menu li {
display: inline-block;
list-style: none;
}
.menu li a {
color: #fff;
font-size: 1.1rem;
font-weight: 500;
margin-left: 35px;
padding-left: 5px;
transition: color 0.3s ease;
}
.menu li a:hover {
border-left: 3px solid white;
color: crimson;
}
.sticky .menu li a:hover {
color: white;
}
.navbar .max-width {
display: flex;
align-items: center;
justify-content: space-between;
}
.max-width {
max-width: 1300px;
padding: 0 80px;
margin: auto;
}
/*Menu Button*/
.fa.fa-bars.menuBtn {
color: #fff;
font-size: 35px;
cursor: pointer;
display: none;
}
.fa.fa-times-circle.exit {
color: white;
font-size: 35px;
cursor: pointer;
display: none;
}
#media (max-width: 934px) {
.max-width {
padding: 0 50px;
}
.fa.fa-bars.menuBtn {
display: block;
padding-left: 10em;
}
.menu {
position: fixed;
height: 100vh;
width: 100%;
left: 0;
top: 0;
background-color: #111;
text-align: center;
padding-top: 110px;
display: none;
}
.fa.fa-times-circle.exit {
z-index: 999;
display: none;
margin: 1.8rem;
}
.menu ul li {
display: block;
}
.menu ul li a {
display: inline-block;
margin: 20px 0;
font-size: 35px;
}
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/#fortawesome/fontawesome-free#5.15.3/css/fontawesome.min.css" integrity="sha384-wESLQ85D6gbsF459vf1CiZ2+rr+CsxRY0RpiF1tLlQpDnAgg6rwdsUF1+Ics2bni" crossorigin="anonymous">
<header>
<nav class="navbar" id="nav">
<div class="max-width">
<div class="logo"><a id="headSpan" href="index.html">Port<span>folio.</span></a></div>
<div class="menu">
<ul>
<li>Home</li>
<li>About</li>
<li>Skills</li>
<li>Projects</li>
<li>CV</li>
<li>Contact</li>
</ul>
</div>
<div>
<i class="fa fa-bars menuBtn" id="menuBtn" aria-hidden="true"></i>
<i class="fa fa-times-circle exit" id="exitBtn" aria-hidden="true"></i>
</div>
</div>
</nav>
<!--Head Banner-->
<section class="home" id="home">
<div class="max-width">
<div class="home-content">
<div class="text-1">Hello, my name is</div>
<div class="text-2">Hadi Zouhbi</div>
<div class="text-3">And I'm a <span id="headSpan"><Developer></Developer></span></div>
</div>
</div>
</section>
</header>
Because it never made display:block when enter in small screen like you did for menubtn.
.fa.fa-bars.menuBtn {
display: block;
padding-left: 10em;
}
Do the same for exit icon under #media (max-width: 934px) also
.fa.fa-times-circle.exit {
display: inline-block;
}
And remove this code
.fa.fa-times-circle.exit {
z-index: 999;
display: none;
margin: 1.8rem;
}
Working example:
/*Navbar*/
body {
background-color: #ccc;
}
.navbar {
width: 100%;
position: fixed;
font-family: "Ubuntu", sans-serif;
padding: 30px 0;
}
.navbar .logo a {
font-size: 2rem;
font-weight: 600;
color: white;
}
.navbar .logo a span {
color: crimson;
transition: all 0.3s ease;
}
.sticky {
padding: 30px 0;
background-color: crimson;
}
.sticky .logo a span {
color: #fff;
}
.menu li {
display: inline-block;
list-style: none;
}
.menu li a {
color: #fff;
font-size: 1.1rem;
font-weight: 500;
margin-left: 35px;
padding-left: 5px;
transition: color 0.3s ease;
}
.menu li a:hover {
border-left: 3px solid white;
color: crimson;
}
.sticky .menu li a:hover {
color: white;
}
.navbar .max-width {
display: flex;
align-items: center;
justify-content: space-between;
}
.max-width {
max-width: 1300px;
padding: 0 80px;
margin: auto;
}
/*Menu Button*/
.fa.fa-bars.menuBtn {
color: #fff;
font-size: 35px;
cursor: pointer;
display: none;
}
.fa.fa-times-circle.exit {
color: white;
font-size: 35px;
cursor: pointer;
display: none;
}
#media (max-width: 934px) {
.max-width {
padding: 0 50px;
}
.fa.fa-bars.menuBtn {
display: block;
padding-left: 10em;
}
.fa.fa-times-circle.exit {
display: inline-block;
}
.menu {
position: fixed;
height: 100vh;
width: 100%;
left: 0;
top: 0;
background-color: #111;
text-align: center;
padding-top: 110px;
display: none;
}
.menu ul li {
display: block;
}
.menu ul li a {
display: inline-block;
margin: 20px 0;
font-size: 35px;
}
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/#fortawesome/fontawesome-free#5.15.3/css/fontawesome.min.css" integrity="sha384-wESLQ85D6gbsF459vf1CiZ2+rr+CsxRY0RpiF1tLlQpDnAgg6rwdsUF1+Ics2bni" crossorigin="anonymous">
<header>
<nav class="navbar" id="nav">
<div class="max-width">
<div class="logo"><a id="headSpan" href="index.html">Port<span>folio.</span></a></div>
<div class="menu">
<ul>
<li>Home</li>
<li>About</li>
<li>Skills</li>
<li>Projects</li>
<li>CV</li>
<li>Contact</li>
</ul>
</div>
<div>
<i class="fa fa-bars menuBtn" id="menuBtn" aria-hidden="true"></i>
<i class="fa fa-times-circle exit" id="exitBtn" aria-hidden="true"></i>
</div>
</div>
</nav>
<!--Head Banner-->
<section class="home" id="home">
<div class="max-width">
<div class="home-content">
<div class="text-1">Hello, my name is</div>
<div class="text-2">Hadi Zouhbi</div>
<div class="text-3">And I'm a <span id="headSpan"><Developer></Developer></span></div>
</div>
</div>
</section>
</header>
This question already has answers here:
Does UL have default margin or padding [duplicate]
(2 answers)
Closed 2 years ago.
I have an image and texts (unordered lists), and buttons next to the image, but I'm not able to get the text and buttons closer to the image. I tried inline-block on the class and using fixed position/absolute position but I found using absolute position seems.. not so efficient. Also margin-left didn't work. Is there a simple CSS trick to get the with lists to align left? or close to the image? Below is my code:
li {
text-align: left;
padding: 3px;
}
li.title {
list-style-type: none;
font-size: 15px;
}
li.author {
list-style-type: none;
font-size: 12px;
}
li.isbn {
list-style-type: none;
font-size: 12px;
}
li.price {
list-style-type: none;
font-size: 12px;
font-weight: bold;
}
.flexItem {
display:flex;
align-items: center;
margin-left: 10px;
flex: 1;
}
.flexItem img{
flex-grow:0;
flex-shrink:0;
}
.button {
color: white;
padding: 2px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
transition-duration: 0.4s;
cursor: pointer;
}
.buttonCart {
width: 100px;
background-color: white;
color: black;
border: 2px solid #dd1d5e;
}
.buttonCart:hover {
background-color: #dd1d5e;
color: white;
}
.buttonOnline {
width: 100px;
background-color: white;
color: black;
border: 2px solid #dd1d5e;
}
.buttonOnline:hover {
background-color: #dd1d5e;
color: white;
}
<div class="flexItem">
<img src="images/books/holiday/royal_ester.png" alt="Royal Easter" class="image">
<div class="text">
<ul>
<li class="title"> The Royal Easter </li>
<li class="author"> Marshella Goodsworth </li>
<li class="isbn"> ISBN123123412 </li>
<li class="price"> $14.99 </li>
</ul>
<button class="button buttonCart">Add to Cart</button>
</div>
</div>
Remove the padding on the <ul> element:
li {
text-align: left;
padding: 3px;
}
li.title {
list-style-type: none;
font-size: 15px;
}
li.author {
list-style-type: none;
font-size: 12px;
}
li.isbn {
list-style-type: none;
font-size: 12px;
}
li.price {
list-style-type: none;
font-size: 12px;
font-weight: bold;
}
.flexItem {
display: flex;
align-items: center;
margin-left: 10px;
flex: 1;
}
.flexItem img {
flex-grow: 0;
flex-shrink: 0;
}
.button {
color: white;
padding: 2px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
transition-duration: 0.4s;
cursor: pointer;
}
.buttonCart {
width: 100px;
background-color: white;
color: black;
border: 2px solid #dd1d5e;
}
.buttonCart:hover {
background-color: #dd1d5e;
color: white;
}
.buttonOnline {
width: 100px;
background-color: white;
color: black;
border: 2px solid #dd1d5e;
}
.buttonOnline:hover {
background-color: #dd1d5e;
color: white;
}
ul {
padding: 0;
}
<div class="flexItem">
<img src="https://via.placeholder.com/200x200.png
C/O https://placeholder.com/" alt="Royal Easter" class="image">
<div class="text">
<ul>
<li class="title"> The Royal Easter </li>
<li class="author"> Marshella Goodsworth </li>
<li class="isbn"> ISBN123123412 </li>
<li class="price"> $14.99 </li>
</ul>
<button class="button buttonCart">Add to Cart</button>
</div>
</div>
I'm running a Drupal site and currently having issues with the current footer, I'm trying to figure out why it's constantly overlapping the entire site, I've been able to find out that color of the footer is the issue, I've tried changing the color, the same issue happens. I've tried putting a div tag before the footer and a horizontal line before the footer.
Below I've attached the code the footer is a responsive site, the main purpose of the footer was to have it able to run on mobile and desktop just haven't been able to get this last issue to be resolved. Each section contains a title of each feature including in the
The first section is the style sheet at the very top contains the form height and width. the footer colors are labeled as ct-footer this only includes the tag for each section such as ct-footer background or ct-footer pre for forms and div.
html,
body,
img,
figure {
max-width: 100%;
}
html,
body {
overflow-x: hidden;
color: #000;
-ms-overflow-style: scrollbar;
-webkit-font-smoothing: antialiased;
}
a,
a:hover,
a:focus,
a:active {
text-decoration: none;
color: inherit;
}
a {
-webkit-transition: all .25s ease-in-out;
transition: all .25s ease-in-out;
}
.ct-u-paddingTop10 {
padding-top: 10px !important;
}
.ct-footer {
background-color: #111;
padding-top: 70px;
margin-top: 20px;
position: relative;
}
.ct-footer-pre {
width: 100%;
padding-bottom: 55px;
border-bottom: 1px solid #555;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-footer-pre span {
font-family: 'Open Sans Condensed', sans-serif;
color: #ebebeb;
font-size: 30px;
}
.ct-footer-pre .form-group {
position: relative;
margin: 0;
}
.ct-footer-pre .form-group:before,
.ct-footer-pre .form-group:after {
content: '';
display: table;
}
.ct-footer-pre .form-group:after {
clear: both;
}
.ct-footer-pre .form-group input {
border: 1px solid #39a2bf;
background-color: #333;
color: #fff;
height: 50px;
padding: 0 30px;
margin: 0 5px;
border-radius: 0 !important;
}
.ct-footer-pre .form-group button {
height: 50px;
position: relative;
width: 80px;
padding: 0
}
.ct-footer-list {
padding: 50px 0;
list-style: none;
padding-left: 0;
display: table;
width: 100%;
border-bottom: 1px solid #555;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-footer-list>li .ct-footer-list-header {
font-family: 'Open Sans Condensed', sans-serif;
color: #3a98b2;
font-size: 30px;
}
.ct-footer-list>li ul {
list-style: none;
padding-left: 0;
}
.ct-footer-list>li ul li a {
color: #fff;
}
.ct-footer-list>li ul li a:hover,
.ct-footer-post a:hover {
text-decoration: underline;
}
.ct-footer-post {
background: #000;
padding: 30px 0;
}
.ct-footer-post .inner-left,
.ct-footer-post .inner-right {
padding: 20px 0;
}
.ct-footer-post ul {
list-style: none;
padding-left: 0;
margin: 0 -20px;
}
.ct-footer-post ul li {
display: inline-block;
margin: 0 20px;
}
.ct-footer-post a {
color: #fff;
}
.ct-footer-post p {
color: #fff;
}
.ct-footer-meta {
padding-top: 30px;
}
.ct-footer-meta .ct-socials {
padding: 20px 0;
}
.ct-footer-meta .ct-socials li {
padding: 0 3px;
}
.ct-footer--with-button {
padding-top: 150px;
}
address {
color: #fff;
display: inline-block;
}
address span {
font-weight: 600;
}
address a {
color: #fff;
}
address a:hover {
text-decoration: underline;
}
.btn {
font-family: 'Open Sans Condensed', sans-serif;
border-radius: 0;
border: none;
text-transform: uppercase;
color: #111;
font-size: 26px;
padding: 12px 30px;
}
.btn.btn-motive {
background-color: #00bff3;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-motive:hover,
.btn.btn-motive:hover:active {
background-color: #00bff3;
}
.btn.btn-violet {
color: #fff;
background-color: #4f4f99;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-violet:hover {
background-color: #37376b;
}
.btn.btn-violet:hover:active {
background-color: #2f2f5b
}
.btn.btn-green {
color: #fff;
background-color: #43670f;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-green:hover {
background-color: #36520c;
}
.btn.btn-green:hover:active {
background-color: #314a0b;
}
.btn.btn-red {
color: #fff;
background-color: #da2229;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-red:hover {
background-color: #ae1b21;
}
.btn.btn-red:hover:active {
background-color: #9d181e
}
.btn.btn-white {
background-color: #fff;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-white:hover {
background-color: #d9d9d9;
}
.btn.btn-white:hover:active {
background-color: #c9c9c9
}
.btn.btn-large {
padding: 20px 50px;
font-size: 30px;
white-space: normal;
}
.ct-mediaSection {
background-attachment: fixed;
}
.ct-section_header--type1 {
font-family: 'Open Sans Condensed', sans-serif;
color: #000;
font-size: 115px;
text-transform: uppercase;
}
.ct-section_header--type2 small {
font-family: 'coquette', fantasy;
font-size: 58px;
line-height: .7;
display: block;
font-weight: 700;
position: relative;
left: -12px;
}
.ct-section_header--type2 span {
font-family: 'Bebas Neue';
font-size: 115px;
line-height: .8;
}
.ct-section_header--type2 img {
display: inline-block;
float: left;
position: relative;
top: 15px;
padding-right: 3px;
}
.ct-section_header--type3 {
text-align: center;
}
.ct-section_header--type3 small {
font-family: 'coquette', fantasy;
font-size: 50px;
padding: 15px 0;
font-weight: 700;
color: #fff;
background-image: url("/core/fileparse.php/16/urlt/../images/ribbon.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: block
}
.ct-section_header--type3 span {
font-family: 'Bebas Neue';
font-size: 150px;
font-weight: 400;
text-transform: uppercase;
line-height: .85
}
.ct-section_header--type4 {
text-align: center;
}
.ct-section_header--type4:before,
.ct-section_header--type4:after {
content: '';
display: table
}
.ct-section_header--type4:after {
clear: both
}
.ct-section_header--type4 small {
font-family: 'coquette', fantasy;
font-size: 50px;
color: inherit;
font-weight: 700;
display: block
}
.ct-section_header--type4 span {
font-family: 'nimbus-sans-condensed', sans-serif;
font-weight: 400;
font-weight: bold;
font-size: 150px;
text-transform: uppercase;
display: block;
line-height: .7
}
.ct-section_header+p {
font-size: 30px;
font-weight: 700;
letter-spacing: -1.5px;
text-align: center;
}
.ct-section_header--type4+p {
font-family: 'nimbus-sans-condensed', sans-serif;
font-weight: 400;
font-size: 40px;
font-weight: 700;
line-height: 1;
}
/* Media Queries */
#media (min-width:1200px) {
.ct-footer-pre {
display: table;
}
.ct-footer-pre>.inner {
display: table-cell;
vertical-align: middle;
}
.ct-footer-list>li {
width: 20%;
display: table-cell;
vertical-align: top;
}
.ct-footer-list>li:last-child {
width: 7%;
}
}
#media (max-width:1199px) {
.ct-footer-pre .form-group {
padding-top: 15px
}
}
#media (max-width: 1199px) {
.ct-footer-list>li {
display: inline-block;
float: left;
}
}
#media (min-width:992px) {
.ct-footer-post .inner-left {
float: left;
}
.ct-footer-post .inner-right {
float: right;
}
}
#media (max-width:991px) {
.ct-footer-post {
text-align: center;
}
}
#media (min-width: 768px) and (max-width: 1199px) {
.ct-footer-list>li {
width: 33.3333%;
}
}
#media (min-width:768px) {
.ct-footer-post p {
display: inline-block;
}
.ct-footer-post p+p {
padding-left: 50px;
}
}
#media (max-width:767px) {
address {
padding-top: 30px;
}
}
#media (min-width: 480px) and (max-width:767px) {
.ct-footer-list>li {
width: 50%;
}
}
#media (min-width:480px) {
.ct-footer-pre .form-group button {
top: -1px;
}
.ct-footer-pre .form-group input {
width: 331px;
}
}
#media (max-width:479px) {
.ct-footer-pre .form-group input {
float: left;
width: 70%;
margin: 0;
}
.ct-footer-pre .form-group button {
float: left;
width: 30%;
}
.ct-footer-list>li {
width: 100%;
text-align: center;
}
.ct-footer-list {
padding: 20px 0;
}
.btn.btn-large {
padding: 20px 10px;
line-height: .9;
font-size: 26px;
letter-spacing: -.2px;
}
.ct-section_header--type1 {
font-size: 60px;
line-height: .8;
}
.ct-section_header+p {
font-size: 22px;
}
.ct-section_header--type3 small {
font-size: 25px;
}
.ct-section_header--type4 small {
font-size: 40px;
}
.ct-section_header--type3 span {
font-size: 90px;
}
.ct-section_header--type4 span {
font-size: 80px;
}
.ct-section_header--type4+p {
font-size: 28px;
}
}
<footer class="ct-footer">
<div class="container">
<form action="" enctype="multipart/form-data" method="post" name="contentForm"> </form>
<ul class="ct-footer-list text-center-sm">
<li>
<h2 class="ct-footer-list-header">Contract Vehicles</h2>
<ul>
<li>Company</li>
<li>Clients</li>
<li>News</li>
<li>Careers</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">Services</h2>
<ul>
<li>Design</li>
<li>Marketing</li>
<li>Sales</li>
<li>Programming</li>
<li>Support</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">About us</h2>
<ul>
<li>Thought Leadership</li>
<li>Webinars</li>
<li>Events</li>
<li>Sponsorships</li>
<li>Advisors</li>
<li>Training Program</li>
<li>Activities & Campaigns</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">Resources </h2>
<ul>
<li>WebCorpCo Blog</li>
<li>Hackathons</li>
<li>Videos</li>
<li>News Releases</li>
<li>Newsletters
<ul>
<li>FAQ</li>
<li>Our Board</li>
<li>Our Staff</li>
<li>Contact Us</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="ct-footer-meta text-center-sm">
<div class="row">
<div class="col-sm-6 col-md-2"><img alt="logo" src="https://www.solodev.com/assets/footer/logo.png" /></div>
<div class="col-sm-6 col-md-3">
<address><span>WebCorpCo</span><br />
123 Easy Street<br />
Orlando, Florida, 32801<br />
<span>Phone: (555) 555-8899</span></address>
</div>
<div class="col-sm-6 col-md-2 ct-u-paddingTop10">
<img alt="app store" src="https://www.solodev.com/assets/footer/appstore.png" />
</div>
<div class="col-sm-6 col-md-2 ct-u-paddingTop10">
<img alt="google play store" src="https://www.solodev.com/assets/footer/androidstore.png" />
</div>
<div class="col-sm-6 col-md-3">
<ul class="ct-socials list-unstyled list-inline">
<li>
<img alt="facebook" src="https://www.solodev.com/assets/footer/facebook-white.png" />
</li>
<li>
<img alt="twitter" src="https://www.solodev.com/assets/footer/twitter-white.png" />
</li>
<li>
<img alt="youtube" src="https://www.solodev.com/assets/footer/youtube-white.png" />
</li>
<li>
<img alt="instagram" src="https://www.solodev.com/assets/footer/instagram-white.png" />
</li>
<li>
<img alt="pinterest" src="https://www.solodev.com/assets/footer/pinterest-white.png" />
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="ct-footer-post">
<div class="container">
<div class="inner-left">
<ul>
<li>FAQ</li>
<li>News</li>
<li>Contact Us</li>
</ul>
</div>
<div class="inner-right">
<p>Copyright © 2016 WebCorpCo. Privacy Policy</p>
<p><a class="ct-u-motive-color" href="" target="_blank">Web Design</a> by DigitalUs on Solodev CMS</p>
</div>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
The procedure I did to make the footer stay in place and not overlap the content is putting a and I even added a to double check the issue, at the beginning of the code. The footer stays in place and doesn't overlap the website content anymore. It's also a very responsive footer plus the improvement.
<style type="text/css">html,
body,
img,
figure {
max-width: 100%;
}
html,
body {
overflow-x: hidden;
color: #000;
-ms-overflow-style: scrollbar;
-webkit-font-smoothing: antialiased;
}
a,
a:hover,
a:focus,
a:active {
text-decoration: none;
color: inherit;
}
a {
-webkit-transition: all .25s ease-in-out;
transition: all .25s ease-in-out;
}
.ct-u-paddingTop10 {
padding-top: 10px !important;
}
.ct-footer {
background-color: #111;
padding-top: 70px;
margin-top: 20px;
position: relative;
}
.ct-footer-pre {
width: 100%;
padding-bottom: 55px;
border-bottom: 1px solid #555;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-footer-pre span {
font-family: 'Open Sans Condensed', sans-serif;
color: #ebebeb;
font-size: 30px;
}
.ct-footer-pre .form-group {
position: relative;
margin: 0;
}
.ct-footer-pre .form-group:before,
.ct-footer-pre .form-group:after {
content: '';
display: table;
}
.ct-footer-pre .form-group:after {
clear: both;
}
.ct-footer-pre .form-group input {
border: 1px solid #39a2bf;
background-color: #333;
color: #fff;
height: 50px;
padding: 0 30px;
margin: 0 5px;
border-radius: 0 !important;
}
.ct-footer-pre .form-group button {
height: 50px;
position: relative;
width: 80px;
padding: 0
}
.ct-footer-list {
padding: 50px 0;
list-style: none;
padding-left: 0;
display: table;
width: 100%;
border-bottom: 1px solid #555;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-footer-list > li .ct-footer-list-header {
font-family: 'Open Sans Condensed', sans-serif;
color: #3a98b2;
font-size: 30px;
}
.ct-footer-list > li ul {
list-style: none;
padding-left: 0;
}
.ct-footer-list > li ul li a {
color: #fff;
}
.ct-footer-list > li ul li a:hover,
.ct-footer-post a:hover {
text-decoration: underline;
}
.ct-footer-post {
background: #000;
padding: 30px 0;
}
.ct-footer-post .inner-left,
.ct-footer-post .inner-right {
padding: 20px 0;
}
.ct-footer-post ul {
list-style: none;
padding-left: 0;
margin: 0 -20px;
}
.ct-footer-post ul li {
display: inline-block;
margin: 0 20px;
}
.ct-footer-post a {
color: #fff;
}
.ct-footer-post p {
color: #fff;
}
.ct-footer-meta {
padding-top: 30px;
}
.ct-footer-meta .ct-socials {
padding: 20px 0;
}
.ct-footer-meta .ct-socials li {
padding: 0 3px;
}
.ct-footer--with-button {
padding-top: 150px;
}
address {
color: #fff;
display: inline-block;
}
address span {
font-weight: 600;
}
address a {
color: #fff;
}
address a:hover {
text-decoration: underline;
}
.btn {
font-family: 'Open Sans Condensed', sans-serif;
border-radius: 0;
border: none;
text-transform: uppercase;
color: #111;
font-size: 26px;
padding: 12px 30px;
}
.btn.btn-motive {
background-color: #00bff3;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-motive:hover,
.btn.btn-motive:hover:active {
background-color: #00bff3;
}
.btn.btn-violet {
color: #fff;
background-color: #4f4f99;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-violet:hover {
background-color: #37376b;
}
.btn.btn-violet:hover:active {
background-color: #2f2f5b
}
.btn.btn-green {
color: #fff;
background-color: #43670f;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-green:hover {
background-color: #36520c;
}
.btn.btn-green:hover:active {
background-color: #314a0b;
}
.btn.btn-red {
color: #fff;
background-color: #da2229;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-red:hover {
background-color: #ae1b21;
}
.btn.btn-red:hover:active {
background-color: #9d181e
}
.btn.btn-white {
background-color: #fff;
-webkit-transition: all .25s ease;
transition: all .25s ease;
}
.btn.btn-white:hover {
background-color: #d9d9d9;
}
.btn.btn-white:hover:active {
background-color: #c9c9c9
}
.btn.btn-large {
padding: 20px 50px;
font-size: 30px;
white-space: normal;
}
.ct-mediaSection {
background-attachment: fixed;
}
.ct-section_header--type1 {
font-family: 'Open Sans Condensed', sans-serif;
color: #000;
font-size: 115px;
text-transform: uppercase;
}
.ct-section_header--type2 small {
font-family: 'coquette', fantasy;
font-size: 58px;
line-height: .7;
display: block;
font-weight: 700;
position: relative;
left: -12px;
}
.ct-section_header--type2 span {
font-family: 'Bebas Neue';
font-size: 115px;
line-height: .8;
}
.ct-section_header--type2 img {
display: inline-block;
float: left;
position: relative;
top: 15px;
padding-right: 3px;
}
.ct-section_header--type3 {
text-align: center;
}
.ct-section_header--type3 small {
font-family: 'coquette', fantasy;
font-size: 50px;
padding: 15px 0;
font-weight: 700;
color: #fff;
background-image: url("/core/fileparse.php/16/urlt/../images/ribbon.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: block
}
.ct-section_header--type3 span {
font-family: 'Bebas Neue';
font-size: 150px;
font-weight: 400;
text-transform: uppercase;
line-height: .85
}
.ct-section_header--type4 {
text-align: center;
}
.ct-section_header--type4:before,
.ct-section_header--type4:after {
content: '';
display: table
}
.ct-section_header--type4:after {
clear: both
}
.ct-section_header--type4 small {
font-family: 'coquette', fantasy;
font-size: 50px;
color: inherit;
font-weight: 700;
display: block
}
.ct-section_header--type4 span {
font-family: 'nimbus-sans-condensed', sans-serif;
font-weight: 400;
font-weight: bold;
font-size: 150px;
text-transform: uppercase;
display: block;
line-height: .7
}
.ct-section_header + p {
font-size: 30px;
font-weight: 700;
letter-spacing: -1.5px;
text-align: center;
}
.ct-section_header--type4 + p {
font-family: 'nimbus-sans-condensed', sans-serif;
font-weight: 400;
font-size: 40px;
font-weight: 700;
line-height: 1;
}
/* Media Queries */
#media (min-width:1200px) {
.ct-footer-pre {
display: table;
}
.ct-footer-pre > .inner {
display: table-cell;
vertical-align: middle;
}
.ct-footer-list > li {
width: 20%;
display: table-cell;
vertical-align: top;
}
.ct-footer-list > li:last-child {
width: 7%;
}
}
#media (max-width:1199px) {
.ct-footer-pre .form-group {
padding-top: 15px
}
}
#media (max-width: 1199px) {
.ct-footer-list > li {
display: inline-block;
float: left;
}
}
#media (min-width:992px) {
.ct-footer-post .inner-left {
float: left;
}
.ct-footer-post .inner-right {
float: right;
}
}
#media (max-width:991px) {
.ct-footer-post {
text-align: center;
}
}
#media (min-width: 768px) and (max-width: 1199px) {
.ct-footer-list > li {
width: 33.3333%;
}
}
#media (min-width:768px) {
.ct-footer-post p {
display: inline-block;
}
.ct-footer-post p + p {
padding-left: 50px;
}
}
#media (max-width:767px) {
address {
padding-top: 30px;
}
}
#media (min-width: 480px) and (max-width:767px) {
.ct-footer-list > li {
width: 50%;
}
}
#media (min-width:480px) {
.ct-footer-pre .form-group button {
top: -1px;
}
.ct-footer-pre .form-group input {
width: 331px;
}
}
#media (max-width:479px) {
.ct-footer-pre .form-group input {
float: left;
width: 70%;
margin: 0;
}
.ct-footer-pre .form-group button {
float: left;
width: 30%;
}
.ct-footer-list > li {
width: 100%;
text-align: center;
}
.ct-footer-list {
padding: 20px 0;
}
.btn.btn-large {
padding: 20px 10px;
line-height: .9;
font-size: 26px;
letter-spacing: -.2px;
}
.ct-section_header--type1 {
font-size: 60px;
line-height: .8;
}
.ct-section_header + p {
font-size: 22px;
}
.ct-section_header--type3 small {
font-size: 25px;
}
.ct-section_header--type4 small {
font-size: 40px;
}
.ct-section_header--type3 span {
font-size: 90px;
}
.ct-section_header--type4 span {
font-size: 80px;
}
.ct-section_header--type4 + p {
font-size: 28px;
}
}
</style>
<div class="container"> </div>
<footer class="ct-footer">
<div class="container">
<form action="" enctype="multipart/form-data" method="post" name="contentForm"> </form>
<ul class="ct-footer-list text-center-sm">
<li>
<h2 class="ct-footer-list-header">Contract Vechciles</h2>
<ul>
<li>Company</li>
<li>Clients</li>
<li>News</li>
<li>Careers</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">Services</h2>
<ul>
<li>Design</li>
<li>Marketing</li>
<li>Sales</li>
<li>Programming</li>
<li>Support</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">About us</h2>
<ul>
<li>Thought Leadership</li>
<li>Webinars</li>
<li>Events</li>
<li>Sponsorships</li>
<li>Advisors</li>
<li>Training Program</li>
<li>Activities & Campaigns</li>
</ul>
</li>
<li>
<h2 class="ct-footer-list-header">Resources </h2>
<ul>
<li>WebCorpCo Blog</li>
<li>Hackathons</li>
<li>Videos</li>
<li>News Releases</li>
<li>Newsletters
<ul>
<li>FAQ</li>
<li>Our Board</li>
<li>Our Staff</li>
<li>Contact Us</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="ct-footer-meta text-center-sm">
<div class="row">
<div class="col-sm-6 col-md-2"><img alt="logo" src="https://www.solodev.com/assets/footer/logo.png" /></div>
<div class="col-sm-6 col-md-3">
<address><span>WebCorpCo</span><br />
123 Easy Street<br />
Orlando, Florida, 32801<br />
<span>Phone: (555) 555-8899</span></address>
</div>
<div class="col-sm-6 col-md-2 ct-u-paddingTop10"> </div>
<div class="col-sm-6 col-md-3">
<p><img alt="facebook" src="https://www.solodev.com/assets/footer/facebook-white.png" /><img alt="twitter" src="https://www.solodev.com/assets/footer/twitter-white.png" /><img alt="youtube" src="https://www.solodev.com/assets/footer/youtube-white.png" /><img alt="instagram" src="https://www.solodev.com/assets/footer/instagram-white.png" /><img alt="pinterest" src="https://www.solodev.com/assets/footer/pinterest-white.png" /></p>
</div>
</div>
</div>
</div>
<div class="ct-footer-post">
<div class="container">
<div class="inner-left">
<ul>
<li>FAQ</li>
<li>News</li>
<li>Contact Us</li>
</ul>
</div>
<div class="inner-right">
<p>Copyright © 2016 WebCorpCo. Privacy Policy</p>
<p><a class="ct-u-motive-color" href="" target="_blank">Web Design</a> by DigitalUs on Solodev CMS</p>
</div>
</div>
</div>
</footer>