How to create wizard as sequence diagram on overflow in HTML? - html

I want to have a wizard form with too many steps, I was able to get in one single straight line. But when view on a small screen and content overflows it's going out of the box. So to avoid it I am thinking of doing as in the image. So how to make this in HTML5, CSS3 and bootstrap without JQuery or any JS libraries
Here is the link to minimal HTML code
<style>
.step-indicator {
border-collapse: separate;
display: block;
margin-left: 0px;
position: relative;
table-layout: fixed;
text-align: center;
padding-left: 0;
margin-bottom: 0;
overflow-x: auto;
}
.step-indicator li {
display: table-cell;
position: relative;
float: none;
padding: 0;
width: 1%;
}
.step-indicator li:after {
background-color: #c8ced3;
content: "";
display: block;
height: 1px;
position: absolute;
width: 100%;
top: 20px;
}
.step-indicator li:after {
left: 50%;
}
.step-indicator li:last-of-type:after {
display: none !important;
}
.step-indicator li.active .step {
border-color: #378ad8;
color: #378ad8;
}
.step-indicator li.active .caption {
color: #378ad8;
}
.step-indicator li.complete:after {
background-color: #0cbb70;
}
.step-indicator li.complete .step {
border-color: #0cbb70;
color: #0cbb70;
}
.step-indicator li.complete .caption {
color: #0cbb70;
}
.step-indicator .step {
background-color: #fff;
border-radius: 50%;
border: 1px solid #c8ced3;
color: #c8ced3;
height: 40px;
line-height: 40px;
margin: 0 auto;
position: relative;
width: 40px;
z-index: 1;
}
.step-indicator .step:hover {
cursor: pointer;
}
.step-indicator .caption {
color: #c8ced3;
padding: 11px 16px;
}
.step-indicator .caption span:hover {
cursor: pointer;
}
</style>
<div class="container-fluid">
<div class="animated fadeIn">
<div class="row">
<div class="col-12">
<div class="card text-center">
<div class="card-body">
<ol class="step-indicator ps">
<!--bindings={
"ng-reflect-ng-for-of": "[object Object],[object Object"
}-->
<li>
<div class="step"><i class="step-icon fas fa-link"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>1</span></div>
</li>
<li class="ng-star-inserted active">
<div class="step"><i class="step-icon fas fa-search"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>2</span></div>
</li>
<li>
<div class="step"><i class="step-icon fas fa-poll"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>3</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa cfa-datacenter"></i></div>
<div class="caption hidden-xs hidden-sm pb-0"><span>4</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-cube"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>5</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-fire"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>6</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-sitemap"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>7</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-balance-scale"></i></div>
<div class="caption hidden-xs hidden-sm pb-0"><span>8</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-laptop"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>9</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-database"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>10</span></div>
</li>
<li>
<div class="step"><i class="step-icon fa fa-clipboard"></i>
</div>
<div class="caption hidden-xs hidden-sm pb-0"><span>11</span></div>
</li>
</ol>
</div>
</div>
</div>
<div class="col-12">
</div>
</div>
</div>
</div>

Related

Text is placed to left when aligned with image

I'm trying to align an image (a flag) with a text. Like in this footer:
I'm trying style="display:inline-block;" elements but the text and image go to far to the left:
Original footer: (Blue arrow indicates a gap)
Codepen
https://codepen.io/anon/pen/xNNrQW
Remove display:inline-block from 'footer_text_right' and wrap the name 'Peru' inside a span tag
CODEPEN
.padding-top3 {
padding-top: 3%;
}
.padding-bottom2 {
padding-top: 2%;
}
#footer-navbar {
background-color: #ededed;
}
ul > li {
display: inline-block;
/* You can also add some margins here to make it look prettier */
zoom:1;
*display:inline;
/* this fix is needed for IE7- */
}
.footer_text {
font-size: 14px;
font-weight: bold;
letter-spacing: .2em;
padding: 0px;
margin: 0px;
}
.footer_nav_links {
margin-right: 2%;
}
.footer_icons {
font-size: 18px;
color: #bfbfbf;
}
.footer_icons:hover {
color: #707070;
}
.footer_ul {
width: 100%;
}
.margin-right3 {
margin-right: 3%;
}
/* new css */
.footer_text_right img {
min-width: 15px;
}
.footer_text_right span {
display: inline-block;
vertical-align: middle;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="">
<div id="footer-navbar" class="footer_text">
<div class="container padding-top3 padding-bottom2">
<div class="row">
<div class="col-md-7">
<ul class="footer_ul">
<li class="footer_nav_links">
<a class="" href="/quienes_somos/">¿Quiénes somos?</a>
</li>
<li class="footer_nav_links">
<a class="" href="/como_comprar/">¿Cómo comprar?</a>
</li>
<li class="footer_nav_links">
<a class="" href="/contactanos/">Contáctanos</a>
</li>
</ul>
</div>
<div class="col-md-5">
<div class="margin-right15">
<p class="footer_text_right text-right"><img style="display:inline-block; align:center;vertical-align: middle;" src="https://stickers-gallito-uploaded-files.s3.amazonaws.com/static/img/home/peru-square-flag.jpg"
width="5%" height="5%">
<span>Perú</span></p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-7">
<ul class="footer_ul footer-links">
<li class="margin-right3"><i class="fab fa-twitter footer_icons"></i></i></li>
<li class="margin-right3"><i class="fab fa-instagram footer_icons"></i></i></li>
<li class="margin-right3"><i class="fab fa-facebook-square footer_icons"></i></i></li>
<li class="margin-right3"><i class="fab fa-youtube footer_icons"></i></i></li>
</ul>
</div>
<div class="col-md-5 text-right">
<div class="right margin-right15">
<span class="footer_text_right">© 2019 StickersGallito</span>
<a class="footer_text_right" href="/legal/privacy">Términos</a> & <a class="footer_text_right" href="/legal/terms">Condiciones</a>
</div>
</div>
</div>
</div>
</div>
<p class="footer_text_right text-right" style="display:inline-block;vertical-align: middle; float:right;"><img style="display:inline-block; align:center;vertical-align: middle;" src="https://stickers-gallito-uploaded-files.s3.amazonaws.com/static/img/home/peru-square-flag.jpg" width="15%" height="15%"> Perú</p>
Try this it works !!
Take out the img from p element and remove the inline style -- you use bootsrap so all you have to do is to set row class to wrap div (wrap of the p and img)
.padding-top3 {
padding-top: 3%;
}
.padding-bottom2 {
padding-top: 2%;
}
#footer-navbar {
background-color: #ededed;
}
ul>li {
display: inline-block;
zoom: 1;
display: inline;
}
.footer_text {
font-size: 14px;
font-weight: bold;
letter-spacing: .2em;
padding: 0px;
margin: 0px;
}
.footer_nav_links {
margin-right: 2%;
}
.footer_icons {
font-size: 18px;
color: #bfbfbf;
}
.footer_icons:hover {
color: #707070;
}
.footer_ul {
width: 100%;
}
.margin-right3 {
margin-right: 3%;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<div class="">
<div id="footer-navbar" class="footer_text">
<div class="container padding-top3 padding-bottom2">
<div class="row">
<div class="col-md-7">
<ul class="footer_ul">
<li class="footer_nav_links">
<a class="" href="/quienes_somos/">¿Quiénes somos?</a>
</li>
<li class="footer_nav_links">
<a class="" href="/como_comprar/">¿Cómo comprar?</a>
</li>
<li class="footer_nav_links">
<a class="" href="/contactanos/">Contáctanos</a>
</li>
</ul>
</div>
<div class="col-md-5">
<div class="row">
<p class="footer_text_right text-right">Perú</p>
<img src="https://stickers-gallito-uploaded-files.s3.amazonaws.com/static/img/home/peru-square-flag.jpg" width="5%" height="5%">
</div>
</div>
</div>
<div class="row">
<div class="col-md-7">
<ul class="footer_ul footer-links">
<li class="margin-right3"><i class="fab fa-twitter footer_icons"></i></li>
<li class="margin-right3"><i class="fab fa-instagram footer_icons"></i></li>
<li class="margin-right3"><i class="fab fa-facebook-square footer_icons"></i></li>
<li class="margin-right3"><i class="fab fa-youtube footer_icons"></i></li>
</ul>
</div>
<div class="col-md-5 text-right">
<div class="right margin-right15">
<span class="footer_text_right">© 2019 StickersGallito</span>
<a class="footer_text_right" href="/legal/privacy">Términos</a> & <a class="footer_text_right" href="/legal/terms">Condiciones</a>
</div>
</div>
</div>
</div>
</div>
Please do style like this
<p class="footer_text_right text-right " style="display:inline-block;vertical-align: middle; float:right">Perú</p>
<img style="display:inline-block; margin-top:2px; float:right; vertical-align:middle" src="https://images.pexels.com/photos/237018/pexels-photo-237018.jpeg?cs=srgb&dl=asphalt-beauty-colorful-237018.jpg&fm=jpg" width="5%" height="5%" />
I checked this code in your codepen and it works fine.In stacks code snippet,due to small space its not showing well.
Please try this :
<div class="margin-right15" style=" text-align:right;">
Add style with class="margin-right15", its working and align right side.

I have a small bug in my Web Gallery, When ever a name of Artist is big it messed up the mobile layout

hello i have an online gallery which is used to show artists. The problem is it is good on computer now but when ever i change the name of an artist and the name is big it will messed up layout on mobile.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" type="text/css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
.row {
display: flex;
flex-wrap: wrap;
}
.col {
display: inline-flex;
flex-wrap: wrap;
}
.container .row {
margin-right: -5px;
margin-left: -5px;
}
.container .row .col {
padding: 5px;
}
#media (min-width: 768px) {
.container .row .col {
min-height: 580px;
}
}
.profile_card {
border: 3px solid #222;
}
.profile_card .profile_image {
position: relative;
overflow: hidden;
}
.profile_card .profile_image > a > img {
width: 100%;
height: auto;
transform: scale(1.1, 1.1);
transition: all 0.50s linear 0s;
}
.profile_card:hover .profile_image img {
transform: scale(1.3, 1.3);
}
.profile_card .profile_content {
padding: 10px 0;
text-align: center;
}
.profile_card .profile_content h3 {
margin: 0 0 10px 0;
font-size: 20px;
color: #9BA34D;
}
.profile_card .profile_content h3 > span {
color: #444;
font-size: 15px;
margin-left: 15px;
}
.profile_card .profile_content .social_links {
margin: 0 0 10px 0;
padding: 0;
}
.profile_card .profile_content .social_links li {
list-style: none;
display: inline-block;
}
.profile_card .profile_content .social_links li a {
width: 30px;
height: 30px;
color: #333;
font-size: 13px;
line-height: 30px;
text-align: center;
background: #d3d3d3;
border-radius: 30px;
text-decoration: none;
transition: all 0.50s linear 0s;
}
.profile_card .profile_content .social_links li a:hover {
background: #8E9545;
color: #fff;
}
.profile_card .profile_content .read_more {
font-size: 16px;
color: #9BA34D;
display: inline-block;
text-decoration: none;
text-transform: capitalize;
}
.profile_card .profile_content .read_more > i {
font-size: 20px;
color: #5F6332;
animation: slideInRight 1s ease-in-out 2s infinite;
}
#keyframes slideInRight {
0% {
transform: translateX(0px);
}
30% {
transform: translateX(5px);
}
60% {
transform: translateX(15px);
}
90% {
transform: translateX(5px);
}
100% {
transform: translateX(0px);
}
}
.image-overlay .image-overlay-inside {
display: none;
}
.image-overlay {
display: none;
background: none;
}
</style>
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Silento.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Silentó<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Tony-Yayo.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Tony Yayo<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Salvo-Riggi.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Salvo Riggi<span>DJ / Music Producer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Natalia-Itani.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Natalia Itani<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Claudia-Valentina.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Claudia Valentina<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Alain-Sceciall.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Alain Scecial<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Nessi-Anshal.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Nessi Anshal<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 col">
<div class="profile_card">
<div class="profile_image">
<a href="#">
<img class="img-responsive" src="http://gtrrecordingstudio.com/gtr/wp-content/uploads/2017/06/Njimbam-Musica.jpg" alt="" />
</a>
</div>
<div class="profile_content">
<h3>Njimbam Musica<span>Singer</span></h3>
<ul class="social_links">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
read more <i class="fa fa-long-arrow-right"></i>
</div>
</div>
</div>
</div>
</div>
Please try this:
.profile_content h3{max-width:180px;word-break:break-word}

Front-end CSS HTML Accordion

I have been trying to add a specific accordion to a site I'm working on, however, when the "+" is clicked for the tab to open and display content, this does not happen. The accordion tabs all remain closed but the screen does jump to the top whenever I press the accordion header"+'. Any help will be appreciated.
Code is provided below:
.accord-tab-box {
padding-top: 40px;
padding-bottom: 20px;
}
.accordion-box {
margin-bottom: 20px;
}
.accord-elem {
margin-bottom: 20px;
}
.accord-title {
padding: 16px 14px;
border: 1px solid #dbdbdb;
position: relative;
}
.accord-title h5 {
padding-right: 48px;
}
.accord-title h5 i {
color: #007aff;
font-size: 20px;
vertical-align: middle;
margin-right: 12px;
}
a.accord-link {
display: inline-block;
position: absolute;
width: 46px;
height: 100%;
top: 0;
right: 0;
border-left: 1px solid #dbdbdb;
background: url('/Content/myTemplate/images/add.png') center center no-repeat;
transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
}
.accord-elem.active a.accord-link {
background: url('/Content/myTemplate/images/add.png') center center no-repeat;
}
a.accord-link.opened {
background: url('/Content/myTemplate/images/substract.png') center center no-repeat;
}
.accord-content {
display: none;
padding: 22px;
border: 1px solid #dbdbdb;
border-top: none;
overflow: hidden;
}
.accord-content span.image-content {
display: inline-block;
float: left;
width: 68px;
height: 68px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-o-border-radius: 50%;
margin-right: 22px;
background: #007aff;
}
.accord-content span.logo-content {
display: inline-block;
float: left;
width: 110px;
margin-right: 15px;
}
.accord-content span.image-content i {
color: #fff;
font-size: 30px;
text-align: center;
width: 100%;
line-height: 68px;
vertical-align: middle;
}
.accord-content span.logo-content i {
color: #fff;
font-size: 30px;
text-align: center;
width: 100%;
line-height: 68px;
vertical-align: middle;
}
.accord-elem.active .accord-content {
display: block;
}
.why-convertible-box {
padding-top: 60px;
}
.why-convertible-box h1 {
margin-bottom: 10px;
}
.why-convertible-box h1 span {
font-weight: 600;
}
.why-convertible-box h1 i {
color: #0a9dbd;
margin-left: 10px;
}
.why-convertible-box p {
margin-bottom: 15px;
}
.why-convertible-box p a {
color: #0076f9;
font-weight: 700;
}
<div class="why-convertible-box">
<div class="container">
<h1>Why choose <span>PosWorx</span><i class="fa fa-question-circle"></i></h1>
</div>
</div>
<div class="accord-tab-box">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="accordion-box">
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-money fa-fw"></i>Sales</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Posworx offers rental packages which make our system both affordable and hassle-free. With minimal upfront costs and an all-inclusive monthly rental, we've got you covered.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-star fa-fw"></i>Returns</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Posworx consistently strives to deliver a robust hardware and software solution that is both industry leading and hardened.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-wrench fa-fw"></i>On-Site Support</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>We offer professional onsite support with all our contract options with the highest technician to customer ratio in the country you are assured prompt, professional service always.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-tty fa-fw"></i>Laybyes</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Helpdesk service 24/7/365 which caters for telephone and remote network support.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-desktop fa-fw"></i>Bio Metric Support</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Unlimited classroom environment training sessions in our main centres ensures you get the most from your investment.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-thumbs-up fa-fw"></i>User-Friendly Solution</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Our product has evolved through constant feedback from the industry over the past 30 years. This has resulted in a user-friendly software solution that is both practical and functional.</p>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="accordion-box">
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-calculator fa-fw"></i>Inter Branch Transfers</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Easily manage the core element of your business by tracking stock shortages as well as optimising your order levels to ensure maximum profit.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-bar-chart fa-fw"></i>Time and Attendance</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>To help you improve your operational efficiencies through analysis.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-exchange fa-fw"></i>Easy Integration</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Posworx systems easily integrate with well over 25 programs to ensure you can provide your customs with more services on payment options, loyalty programs and so much more while making your life easier.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-tablet fa-fw"></i>Posworx Mobile</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>We utilize the latest technology to ensure that all your vital store information is available to you anytime, anywhere with our WEB APP and SMS feature.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-cloud fa-fw"></i>Backup to Cloud</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Posworx strives for constant improvement, innovation and integration.</p>
</div>
</div>
<div class="accord-elem">
<div class="accord-title">
<h5><i class="fa fa-info-circle fa-fw"></i>Posworx Interactive Reports</h5>
<a class="accord-link" href="#"></a>
</div>
<div class="accord-content">
<p>Posworx has a rapidly growing customer base of well over 5000 customers incorporating over 60 national franchises and an international footprint.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Did you get that code from planung-berlin.de? Do remember to copy the javascript files as well or the code won't work.
Try this:
JavaScript:
$(document).ready(function($) {
var clickElem = $('a.accord-link');
clickElem.on('click', function(e){
e.preventDefault();
var $this = $(this),
parentCheck = $this.parents('.accord-elem'),
accordItems = $('.accord-elem'),
accordContent = $('.accord-content');
if( !parentCheck.hasClass('active')) {
accordContent.slideUp(400, function(){
accordItems.removeClass('active');
});
parentCheck.find('.accord-content').slideDown(400, function(){
parentCheck.addClass('active');
});
} else {
accordContent.slideUp(400, function(){
accordItems.removeClass('active');
});
}
});

'Text-decoration: none !important' not working with bootstrap

Here is my codepen: https://codepen.io/LastSoldi3r/pen/OmjGgR
HTML:
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<script src="https://use.fontawesome.com/1ade2ea03e.js"></script>
</head>
<body>
<ul>
<li><a class="active" href="#home"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><i class="fa fa-info-circle" aria-hidden="true"></i> About</li>
<li><i class="fa fa-folder-open" aria-hidden="true"></i> Portfolio</li>
<li><i class="fa fa-address-book" aria-hidden="true"></i> Contact</li>
</ul>
<div class="container-fluid" style="margin-left: 10%; padding: 1px ;">
<a name="home">
<div class="row">
<div class="col-md-12">
<img width="100%" height="100%" class="code" src="http://cdn2.cloudpro.co.uk/sites/cloudprod7/files/java_0.jpg">
<img class="nametag" src="http://i.imgur.com/12ZcxYW.png">
</div>
</div>
</div>
<div class="container-fluid text" style="margin-left: 10%; padding: 1px 16px;">
<!--About Me-->
<a name="about">
<h2 align="center">About</h2><br>
<div class="row">
<div class="col-md-6">
<p id="aboutMe">I earned my Associates of Science for Information Technology in 2015. I am now working on my certification in Front End Web Development with the end goal of being a certified Full Stack Web Developer. I am achieving this goal with the help of freeCodeCamp().</p>
<div class="col-md-12">
<h2 align="center">Skills</h2><br>
</div>
<div class="row">
<div class="col-md-3 skills">
<i class="fa fa-coffee"></i>
<p>JAVA</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-html5"></i>
<p>HTML5</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-css3"></i>
<p>CSS3</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-code"></i>
<p>JAVASCRIPT</p>
</div>
</div>
</div>
<div class="col-md-6">
<img width="50%" height="50%" src="https://scontent.fhsv1-1.fna.fbcdn.net/v/t1.0-9/15219976_10153891163957294_6687591802937802260_n.jpg?oh=dccd86082954a5d9d1764fbd53ad70dc&oe=5982B68A">
</div>
</div>
<!--Portfolio-->
<br><br>
<a name="portfolio">
<div class="well background">
<h2 align="center">Portfolio</h2><br>
</div>
</div>
</body>
</html>
CSS:
body {
background-color: #011f4b !important;
margin: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 10%;
background-color: #b3cde0;
position: fixed;
height: 100%;
overflow: auto;
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
li a.active {
background-color: #005b96;
color: white;
}
li a:hover:not(.active) {
background-color: #6497b1;
color: white;
}
#aboutMe {
font-size: 20px;
}
.code {
position: relative;
top: 0;
left: 0;
}
.nametag {
position: absolute;
top: 35px;
left: 60px;
}
.skills {
text-align: center;
font-size: 1.7em;
width: 110%;
}
.background {
background-color: #03396c !important;
}
I understand that you can change the css within bootstrap itself to change these effects. However, I am learning and seeing as I am new I just used the link provided on the bootstrap website instead of sifting through the css. If you look at my pen you will see that hovering over any text well darken it and underline some parts.
I have tried overriding the code in various ways.
My most recently tried, and most commonly found solution:
a.hover {text-decoration: none !important;}
This has not worked for me and I haven't been able to find any other working solution.
add this simple code to your css file :
html a:hover {
text-decoration: none !important;
}
here is how your page will shown :
html a:hover {
text-decoration: none !important;
}
body {
background-color: #011f4b !important;
margin: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 10%;
background-color: #b3cde0;
position: fixed;
height: 100%;
overflow: auto;
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
li a.active {
background-color: #005b96;
color: white;
}
li a:hover:not(.active) {
background-color: #6497b1;
color: white;
}
#aboutMe {
font-size: 20px;
}
.code {
position: relative;
top: 0;
left: 0;
}
.nametag {
position: absolute;
top: 35px;
left: 60px;
}
.skills {
text-align: center;
font-size: 1.7em;
width: 110%;
}
.background {
background-color: #03396c !important;
}
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<script src="https://use.fontawesome.com/1ade2ea03e.js"></script>
</head>
<body>
<ul>
<li><a class="active" href="#home"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><i class="fa fa-info-circle" aria-hidden="true"></i> About</li>
<li><i class="fa fa-folder-open" aria-hidden="true"></i> Portfolio</li>
<li><i class="fa fa-address-book" aria-hidden="true"></i> Contact</li>
</ul>
<div class="container-fluid" style="margin-left: 10%; padding: 1px ;">
<a name="home">
<div class="row">
<div class="col-md-12">
<img width="100%" height="100%" class="code" src="http://cdn2.cloudpro.co.uk/sites/cloudprod7/files/java_0.jpg">
<img class="nametag" src="http://i.imgur.com/12ZcxYW.png">
</div>
</div>
</div>
<div class="container-fluid text" style="margin-left: 10%; padding: 1px 16px;">
<!--About Me-->
<a name="about">
<h2 align="center">About</h2><br>
<div class="row">
<div class="col-md-6">
<p id="aboutMe">I earned my Associates of Science for Information Technology in 2015. I am now working on my certification in Front End Web Development with the end goal of being a certified Full Stack Web Developer. I am achieving this goal with the help of freeCodeCamp().</p>
<div class="col-md-12">
<h2 align="center">Skills</h2><br>
</div>
<div class="row">
<div class="col-md-3 skills">
<i class="fa fa-coffee"></i>
<p>JAVA</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-html5"></i>
<p>HTML5</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-css3"></i>
<p>CSS3</p>
</div>
<div class="col-md-3 skills">
<i class="fa fa-code"></i>
<p>JAVASCRIPT</p>
</div>
</div>
</div>
<div class="col-md-6">
<img width="50%" height="50%" src="https://scontent.fhsv1-1.fna.fbcdn.net/v/t1.0-9/15219976_10153891163957294_6687591802937802260_n.jpg?oh=dccd86082954a5d9d1764fbd53ad70dc&oe=5982B68A">
</div>
</div>
<!--Portfolio-->
<br><br>
<a name="portfolio">
<div class="well background">
<h2 align="center">Portfolio</h2><br>
</div>
</div>
</body>
</html>
You were super close!
li a:hover:not(.active) {
background-color: #6497b1;
color: white;
text-decoration: none;
}
Here is a forked example of what you are looking for:
https://codepen.io/anon/pen/NjaobY
I just added text-decoration: none to your existing CSS. https://codepen.io/anon/pen/Lyzqxp
Replace a.hover with a:hover and it should work.
.hover means "class named hover"
:hover means "when the element is hovered"
If you're using Chrome, the Developper Tools (right click -> inspect element) -or similar firebug features- will allow you to see what css is being rendered on any element.
you should override bootstrap style by "!important" please use this:
https://codepen.io/houtan/pen/mmBvop

Background to a collapsed footer

I have some troubles to put a background colour to all the footer when it collapses, There are some blank spaces in the middle of the footer... I have tried this CSS code {background-size: 100% 100%;}
{
height: 317px;
background-color: #3b3b3b;
margin-top: 200px;
padding: 4% 0;
}
.no a {
color: white;
}
footer .container {
height: 317px;
background-color: #3b3b3b;
margin-top: 200px;
width: 1500px;
}
footer ul,
.taber {
margin-top: 100px;
}
.last,
.no {
margin-top: 100px;
}
.last img {
margin-bottom: 34px;
}
footer ul {
margin: 0;
padding: 0 0 0;
}
footer ul li,
.taber {
font-size: 16px;
font-family: Aleo;
color: white;
list-style: none;
margin-bottom: 10px;
font-size: 16px
}
#media (max-width: 723px) {
.taber {
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
cursor: auto;
color: yellow;
background-color: #3b3b3b;
background-size: 100% 100%;
}
.taber.collapsed:after {
content: "+";
float: right;
font-size: 22px;
margin-right: 10px;
}
.taber:after {
content: "-";
float: right;
font-size: 22px;
margin-right: 10px;
}
.panel-collapse {
padding-left: 15px;
padding-right: 15px;
}
#collapseOne,
#collapsetwo,
#collapsethree,
#collapsefour {
background-color: #3b3b3b;
}
footer >.container {
padding-left: 0;
padding-right: 0px;
}
<footer>
<div class="container">
<div class="row">
<div class="col-md-2 col-md-offset-2 col-sm-3">
<div data-toggle="collapse" class="taber" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
New York Restaurant
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>3926 Anmoore Road</li>
<li>New York, NY 10014</li>
<li><strong>02.94.23.9.66</strong>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-2">
<div class="taber" data-toggle="collapse" data-parent="#accordion" href="#collapsetwo" aria-expanded="false" aria-controls="collapseOne">
France Restaurant
</div>
<div id="collapsetwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>68, rue de la Coronne</li>
<li>75002 PARIS</li>
<li><strong>02.94.23.9.66</strong>
</li>
</ul>
</div>
</div>
<div class="no col-md-2 col-sm-2">
<div id="collapsethree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>Blog
</li>
<li>Careers
</li>
<li>Privacy Policy
</li>
<li>Contact
</li>
</ul>
</div>
</div>
<div class="col-md-3 col-sm-3">
<div class="last">
<img src="img/logo_footer.png" alt="">
</div>
<div id="collapsefour" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>© All Rights Reserved 2014.</li>
<li>Find More at <strong>Pixelhint.com</strong>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>
Looks like you might be dealing with collapsing-margin
Below a snippet testing about it with the following rule (one way among others ) :
/* hold margins within containers */
.row>*>* {border:1px transparent solid;}
Snippet updated to run :
#media (max-width: 723px) {
.taber {
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
cursor: auto;
color: yellow;
background-color: #3b3b3b;
background-size: 100% 100%;
}
.taber.collapsed:after {
content: "+";
float: right;
font-size: 22px;
margin-right: 10px;
}
.taber:after {
content: "-";
float: right;
font-size: 22px;
margin-right: 10px;
}
.panel-collapse {
padding-left: 15px;
padding-right: 15px;
}
#collapseOne,
#collapsetwo,
#collapsethree,
#collapsefour {
background-color: #3b3b3b;
}
/* hold margins within containers */
.row>*>* {border:1px transparent solid;}
.last img {display:block}/* just to erase the gap it produces here */
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<footer>
<div class="container">
<div class="row">
<div class="col-md-2 col-md-offset-2 col-sm-3">
<div data-toggle="collapse" class="taber" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
New York Restaurant
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>3926 Anmoore Road</li>
<li>New York, NY 10014</li>
<li><strong>02.94.23.9.66</strong>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-2">
<div class="taber" data-toggle="collapse" data-parent="#accordion" href="#collapsetwo" aria-expanded="false" aria-controls="collapseOne">
France Restaurant
</div>
<div id="collapsetwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>68, rue de la Coronne</li>
<li>75002 PARIS</li>
<li><strong>02.94.23.9.66</strong>
</li>
</ul>
</div>
</div>
<div class="no col-md-2 col-sm-2">
<div id="collapsethree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>Blog
</li>
<li>Careers
</li>
<li>Privacy Policy
</li>
<li>Contact
</li>
</ul>
</div>
</div>
<div class="col-md-3 col-sm-3">
<div class="last">
<img src="img/logo_footer.png" alt="">
</div>
<div id="collapsefour" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<ul>
<li>© All Rights Reserved 2014.</li>
<li>Find More at <strong>Pixelhint.com</strong>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>