UL inside a Div vertically centered | Bootstrap 3.3.7 - css

I'm new at StackOverflow (and HTML5/CSS) and this is my first post. (and I'm not speak english very well)
I'm trying to make a nav bar inside a div but I can't centered vertically. I've tried:
vertical-align: middle;
change the height of the content div and center the UL
"play" with display property
read every post I've found on internet but I can't figure out.
.article {
border: 1px solid;
border-color:rgba(210,246,1, 1);
}
<div class="row article">
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-3">
<ul class="nav nav-pills nav-stacked">
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Convenio Vigente
</a>
</li>
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Escala Salarial vigente
</a>
</li>
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Escalas Salariales Anteriores
</a>
</li>
</ul>
</div>
<div class="col-xs-12 col-sm-8 col-md-9 col-lg-9">
<section>
<p class="centrarp">
<h3>Convenio 244/94</h3>
<h5 class="justificar">TRABAJADORES COMPRENDIDOS - ENUNCIACION DE ACTIVIDADES</h5>
<p class="justificar centrarp">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</section>
</div>
</div>
this is the result

Because you don't want this on every .row.article on your website, I added a custom class: .vCenter.
#media(min-width: 768px) {
.row.article.vCenter {
display: flex;
}
.row.article.vCenter>.col-lg-3 .nav-pills {
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row article vCenter">
<div class="col-xs-12 col-sm-4 col-md-3 col-lg-3">
<ul class="nav nav-pills nav-stacked">
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Convenio Vigente
</a>
</li>
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Escala Salarial vigente
</a>
</li>
<li>
<a href="#">
<img src="{% static 'imagenes/logo.png' %}" alt="Stia" class="logopeque">Escalas Salariales Anteriores
</a>
</li>
</ul>
</div>
<div class="col-xs-12 col-sm-8 col-md-9 col-lg-9">
<section>
<p class="centrarp">
<h3>Convenio 244/94</h3>
<h5 class="justificar">TRABAJADORES COMPRENDIDOS - ENUNCIACION DE ACTIVIDADES</h5>
<p class="justificar centrarp">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</section>
</div>
</div>
If you prefer them more "spaced", you could try space-around or even space-between instead of center for justify-content.
And don't forget to parse your final CSS through Autoprefixer before deploying.

Related

Is it possible to put the collapsible icon on the left side of the text? Right now it's on the right

Code:
<div class="panel panel-default">
<div class="panel-heading collapsed" data-toggle="collapse" data-target="#collapseOrderItems1"> Products 1 <i class="chevron fa fa-fw" ></i></div>
<div class="collapse" id="collapseOrderItems1">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<div class="panel-heading collapsed" data-toggle="collapse" data-target="#collapseOrderItems2"> Products 2 <i class="chevron fa fa-fw" ></i></div>
<div class="collapse" id="collapseOrderItems2">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
.panel-heading .chevron:after {
content: "\f078";
}
.panel-heading.collapsed .chevron:after {
content: "\f054";
}
Codepen: https://codepen.io/anon/pen/PPxOJX
I'm not sure if it's possible. I'm only able to move the whole entire chunk around. I'm having trouble just moving the collapsible icon.
You can update your HTML code to place your icon before the text :
<div class="panel-heading collapsed" data-toggle="collapse" data-target="#collapseOrderItems1"> <i class="chevron fa fa-fw" ></i> Products 1 </div>

Problem with left positioning of menu sidebar doesn't work

Good evening everyone, I am creating my first basic web application and I have problems with the frontend, I am not very good with this topic.
I have a problem with my css html code.
I have 2 menus a sidebar and a navbar I want to get my menu (sidebar) to be positioned on the left side but I can't get close to that effect.
I leave a photo so you can see how I want the menu to look
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
/* unvisited link */
a:link {
color: black;
}
/* visited link */
a:visited {
color: black;
}
/* mouse over link */
a:hover {
color: blue;
text-decoration: none;
}
/* selected link */
a:active {
color: blue;
}
#RenderBody {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 0px;
padding-top: 40px;
padding-bottom: 0px;
padding-right: 0px;
padding-left: 0px;
}
i.fas,
i.fab {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 5px;
margin-left: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding-right: 0px;
padding-left: 0px;
font-size:25px;
}
a:hover {
color: violet;
}
.fa-fish {
color: red;
}
.fa-frog {
color: red;
}
.fa-user-ninja.vanished {
opacity: 0.0;
}
.fa-facebook {
color: rgb(59, 91, 152);
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
.wrapper {
}
#sidebar {
min-width: 250px;
max-width: 250px;
background: #7386D5;
color: #fff;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -250px;
}
#sidebar .sidebar-header {
padding: 20px;
background: #6d7fcc;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#sidebar ul p {
color: #fff;
padding: 10px;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
}
#sidebar ul li a:hover {
color: #7386D5;
background: #fff;
}
#sidebar ul li.active > a,
a[aria-expanded="true"] {
color: #fff;
background: #6d7fcc;
}
a[data-toggle="collapse"] {
position: relative;
}
.dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #6d7fcc;
}
ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>#ViewData["Title"] - test</title>
<environment include="Development">
<!-- <Libreria Font Awesome> -->
<script src="https://kit.fontawesome.com/55c228f8f9.js"></script>
<!-- <Libreria TadaTable> -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<!-- <Libreria Boostrap> -->
<!-- <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="~/css/site.css" />
</environment>
</head>
<body>
<div class="wrapper">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header">
<h3>Bootstrap Sidebar</h3>
</div>
<ul class="list-unstyled components">
<p>Dummy Heading</p>
<li class="active">
Home
<ul class="collapse list-unstyled" id="homeSubmenu">
<li>
Home 1
</li>
<li>
Home 2
</li>
<li>
Home 3
</li>
</ul>
</li>
<li>
About
</li>
<li>
Pages
<ul class="collapse list-unstyled" id="pageSubmenu">
<li>
Page 1
</li>
<li>
Page 2
</li>
<li>
Page 3
</li>
</ul>
</li>
<li>
Portfolio
</li>
<li>
Contact
</li>
</ul>
<ul class="list-unstyled CTAs">
<li>
Download source
</li>
<li>
Back to article
</li>
</ul>
</nav>
<!-- Sidebar -->
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="TopNavBar">
<div class="container">
<button type="button" id="sidebarCollapse" class="btn btn-info">
<i class="fas fa-align-left"></i>
<span>Toggle Sidebar</span>
</button>
<a class="navbar-brand" href="/"><i class="fas fa-home"></i>Inicio</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" id="TopUL">
<li class="nav-item active">
About
</li>
<li class="nav-item active">
Contact
</li>
</ul>
<partial name="_LoginPartial" />
</div>
</div>
</nav>
<!--/.Navbar-->
<div class="container">
<div class="arrow">
<div id="RenderBody">
<div class="card">
<div class="card-body">
<h1> This is the Index </h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="py-5">
<div class="container">
<div class="row">
<div class="col-md-9">
<form class="form-inline"></form>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-facebook-square fa-3x"></i>
</a>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-twitter-square fa-3x"></i>
</a>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-instagram fa-3x"></i>
</a>
</div>
</div>
<div class="row">
<div class="col-md-12 mt-3 text-center">
<p>© Copyright 2019 - All rights reserved.</p>
</div>
</div>
</div>
</div>
</footer>
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- <Libreria TadaTable>-->
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<!-- </Libreria TadaTable>-->
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
#RenderSection("Scripts", required: false)
</div>
</body>
</html>
Set the position value to fiexed or absolute and show/hide the menu by changing left value
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$("body").toggleClass('show-menu'); // Toggle the body margin
});
/* unvisited link */
a:link {
color: black;
}
/* visited link */
a:visited {
color: black;
}
/* mouse over link */
a:hover {
color: blue;
text-decoration: none;
}
/* selected link */
a:active {
color: blue;
}
#RenderBody {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 0px;
padding-top: 40px;
padding-bottom: 0px;
padding-right: 0px;
padding-left: 0px;
}
i.fas,
i.fab {
margin-top: 0px;
margin-bottom: 0px;
margin-right: 5px;
margin-left: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding-right: 0px;
padding-left: 0px;
font-size:25px;
}
a:hover {
color: violet;
}
.fa-fish {
color: red;
}
.fa-frog {
color: red;
}
.fa-user-ninja.vanished {
opacity: 0.0;
}
.fa-facebook {
color: rgb(59, 91, 152);
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
.wrapper {
}
body{
overflow: hidden;
transition: margin-left .3s;
margin-left: 0px;
}
body.show-menu{
margin-left: 250px;
}
#sidebar {
min-width: 250px;
max-width: 250px;
background: #7386D5;
color: #fff;
transition: all 0.3s;
/*======== Edit ========*/
position: fixed; /* Or you can make it 'absolute' if you don't want it to be fiexed */
top: 0px; /* For the header */
height: 100%;
left: -250px;
z-index: 10;
}
#sidebar.active {
left: 0px;
}
#sidebar .sidebar-header {
padding: 20px;
background: #6d7fcc;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#sidebar ul p {
color: #fff;
padding: 10px;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
}
#sidebar ul li a:hover {
color: #7386D5;
background: #fff;
}
#sidebar ul li.active > a,
a[aria-expanded="true"] {
color: #fff;
background: #6d7fcc;
}
a[data-toggle="collapse"] {
position: relative;
}
.dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #6d7fcc;
}
ul.CTAs {
padding: 20px;
}
ul.CTAs a {
text-align: center;
font-size: 0.9em !important;
display: block;
border-radius: 5px;
margin-bottom: 5px;
}
a.download {
background: #fff;
color: #7386D5;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>#ViewData["Title"] - test</title>
<environment include="Development">
<!-- <Libreria Font Awesome> -->
<script src="https://kit.fontawesome.com/55c228f8f9.js"></script>
<!-- <Libreria TadaTable> -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<!-- <Libreria Boostrap> -->
<!-- <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="~/css/site.css" />
</environment>
</head>
<body>
<div class="wrapper">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header">
<h3>Bootstrap Sidebar</h3>
</div>
<ul class="list-unstyled components">
<p>Dummy Heading</p>
<li class="active">
Home
<ul class="collapse list-unstyled" id="homeSubmenu">
<li>
Home 1
</li>
<li>
Home 2
</li>
<li>
Home 3
</li>
</ul>
</li>
<li>
About
</li>
<li>
Pages
<ul class="collapse list-unstyled" id="pageSubmenu">
<li>
Page 1
</li>
<li>
Page 2
</li>
<li>
Page 3
</li>
</ul>
</li>
<li>
Portfolio
</li>
<li>
Contact
</li>
</ul>
<ul class="list-unstyled CTAs">
<li>
Download source
</li>
<li>
Back to article
</li>
</ul>
</nav>
<!-- Sidebar -->
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="TopNavBar">
<div class="container">
<button type="button" id="sidebarCollapse" class="btn btn-info">
<i class="fas fa-align-left"></i>
<span>Toggle Sidebar</span>
</button>
<a class="navbar-brand" href="/"><i class="fas fa-home"></i>Inicio</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" id="TopUL">
<li class="nav-item active">
About
</li>
<li class="nav-item active">
Contact
</li>
</ul>
<partial name="_LoginPartial" />
</div>
</div>
</nav>
<!--/.Navbar-->
<div class="container">
<div class="arrow">
<div id="RenderBody">
<div class="card">
<div class="card-body">
<h1> This is the Index </h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="py-5">
<div class="container">
<div class="row">
<div class="col-md-9">
<form class="form-inline"></form>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-facebook-square fa-3x"></i>
</a>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-twitter-square fa-3x"></i>
</a>
</div>
<div class="col-4 col-md-1 align-self-center">
<a href="#">
<i class="fab fa-instagram fa-3x"></i>
</a>
</div>
</div>
<div class="row">
<div class="col-md-12 mt-3 text-center">
<p>© Copyright 2019 - All rights reserved.</p>
</div>
</div>
</div>
</div>
</footer>
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- <Libreria TadaTable>-->
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<!-- </Libreria TadaTable>-->
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
#RenderSection("Scripts", required: false)
</div>
</body>
</html>
You probably want that first block of <nav> ... </nav> (sidebar) underneath your second <nav> ... </nav> (navbar)

Overflow makes flexbox unresponsive

Adding overflow style to a flexbox element makes it unresponsive, below is the code:
.projects-wrapper{
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
width: 95%;
margin: 0 auto ;
padding-bottom: 1rem;
}
.project {
margin: 1rem;
flex: 1 1 0;
border-radius: 5%;
background: rgb(189, 198, 209);
transition: all 1s ease-out;
cursor: pointer;
}
<div class="projects-wrapper">
<div class="project">
<img src="img/restaurantapi.png" alt="">
<div class="project-title">
<h1>Microservices-Based App</h1>
</div>
<div class="project-content">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<span class="card-meta">
<i class="fab fa-github fa-2x"></i>
</span>
</div>
<div class="project">
<img src="img/restaurantapi.png" alt="">
<div class="project-title">
<h1>Microservices-Based App</h1>
</div>
<div class="project-content">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<span class="card-meta">
<i class="fab fa-github fa-2x"></i>
</span>
</div>
</div>
Whenever I add to the .project class overflow:hidden, flexbox becomes unresponsive. I am not sure why, any suggestions are appreciated.
Edit: I just added some lorem ipsum text.
The reason why the flex starts to wrap "on mobile" is that with default overflow the layout engine tries to have all of the content fit, and the widest "single non breakable element" is the word "Microservices-" - as soon as the width of the .project is less than the width of that word then the wrapping occurs, giving you a "responsive" feel. Once you add overflow:hidden you are telling the layout engine that even overflowing elements can be clipped by the parent.
The best solution would be a more conscious decision on when the wrapping should occur, e.g. decide that for max-width: ...px the max width of the .project should be set.
If you want to have the exact same behavior as without the overflow:hidden - the break would occur on the longest word, then use min-width: min-content, as shown below:
.projects-wrapper{
display: flex;
flex-wrap: wrap;
justify-content: center;
text-align: center;
width: 95%;
margin: 0 auto ;
padding-bottom: 1rem;
}
.project {
margin: 1rem;
flex: 1 1 0;
border-radius: 5%;
background: rgb(189, 198, 209);
transition: all 1s ease-out;
cursor: pointer;
min-width: min-content;
overflow: hidden;
}
<div class="projects-wrapper">
<div class="project">
<img src="img/restaurantapi.png" alt="">
<div class="project-title">
<h1>Microservices-Based App</h1>
</div>
<div class="project-content">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<span class="card-meta">
<i class="fab fa-github fa-2x"></i>
</span>
</div>
<div class="project">
<img src="img/restaurantapi.png" alt="">
<div class="project-title">
<h1>Microservices-Based App</h1>
</div>
<div class="project-content">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<span class="card-meta">
<i class="fab fa-github fa-2x"></i>
</span>
</div>
</div>

how to make left column sticky foundation 6.4

I want to stick left column like youtube (dont want to use off-canvas)
developed this
http://wall.iamdeepak.io/
but as you can see if you scroll main page it also scroll categories (left column) area
Top Bar Working Fine
<div id="topbar" data-sticky-container>
<div class="top-bar" data-sticky data-options="marginTop:0;">
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
<li>
<div data-responsive-toggle="categories_menu" data-hide-for="medium">
<button class="menu-icon" type="button" data-toggle></button>
</div>
</li>
<li class="menu-text">top bar is perfect</li>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu">
<li>
<input type="search" placeholder="Search">
</li>
<li>
<button type="button" class="button ripple">Search</button>
</li>
</ul>
</div>
</div>
Main Content Area (want to make 1st column (#categories_menu) stick like youtube). It is sticky but not the way I want.
<div class="expanded row medium-collapse">
<nav id="categories_menu" class="medium-2 columns" data-sticky-container>
<div class="sticky" data-sticky data-top-anchor="topbar:bottom" data-margin-top="2" style="margin: 0">
<div class="sticky-menu">
<ul class="vertical menu accordion-menu" data-accordion-menu data-multi-open="false">
<li class="menu-text">Category</li>
<li class="">
<a href="#" title="Architecture Wallpapers">
<i class="icon-magic-wand"></i>
<span>Architecture</span>
</a>
<ul class="menu vertical nested categories_sub" id="categories_sub0">
<li class="">
<a href="http://wallpapersden5.app/3d-wallpapers/" title="3D Wallpapers">
<i class="icon-contrast"></i>
<span>3D</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/abstract-wallpapers/" title="Abstract Wallpapers">
<i class="icon-spades"></i>
<span>Abstract</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/anime-wallpapers/" title="Anime Wallpapers">
<i class="icon-eye"></i>
<span>Anime</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/fantasy-wallpapers/" title="Fantasy Wallpapers">
<i class="icon-fire"></i>
<span>Fantasy</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/textures-wallpapers/" title="Textures Wallpapers">
<i class="icon-library"></i>
<span>Textures</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/vector-wallpapers/" title="Vector Wallpapers">
<i class="icon-stack"></i>
<span>Vector</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/minimalist-wallpapers/" title="Minimalist Wallpapers">
<i class="icon-eyedropper"></i>
<span>Minimalist</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/inspirational-quotes-wallpapers/" title="Inspirational & Quotes Wallpapers">
<i class="icon-hammer"></i>
<span>Quotes</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/artist-wallpapers/" title="Artist Wallpapers">
<i class="icon-shield"></i>
<span>Artist</span>
</a>
</li>
</ul>
</li>
<li class="">
<a href="#" title="Bollywood Wallpapers">
<i class="icon-film"></i>
<span>Bollywood</span>
</a>
<ul class="menu vertical nested categories_sub" id="categories_sub1">
<li class="">
<a href="http://wallpapersden5.app/bollywood-movies-wallpapers/" title="Bollywood Movies Wallpapers">
<i class="icon-video-camera"></i>
<span>Bollywood Movies</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/bollywood-actress-wallpapers/" title="Bollywood Actress Wallpapers">
<i class="icon-accessibility"></i>
<span>Bollywood Actress</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/bollywood-actors-wallpapers/" title="Bollywood Actors Wallpapers">
<i class="icon-user-tie"></i>
<span>Bollywood Actors</span>
</a>
</li>
</ul>
</li>
<li class="">
<a href="#" title="Hollywood Wallpapers">
<i class="icon-heart"></i>
<span>Hollywood</span>
</a>
<ul class="menu vertical nested categories_sub" id="categories_sub2">
<li class="">
<a href="http://wallpapersden5.app/hollywood-movies-wallpapers/" title="Hollywood Movies Wallpapers">
<i class="icon-video-camera"></i>
<span>Hollywood Movies</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/hollywood-actress-wallpapers/" title="Hollywood Actress Wallpapers">
<i class="icon-accessibility"></i>
<span>Hollywood Actress</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/hollywood-actors-wallpapers/" title="Hollywood Actors Wallpapers">
<i class="icon-user-tie"></i>
<span>Hollywood Actors</span>
</a>
</li>
</ul>
</li>
<li class="">
<a href="#" title="Celebs Wallpapers">
<i class="icon-tv"></i>
<span>Celebs</span>
</a>
<ul class="menu vertical nested categories_sub" id="categories_sub3">
<li class="">
<a href="http://wallpapersden5.app/girls-wallpapers/" title="Girls Wallpapers">
<i class="icon-accessibility"></i>
<span>Girls</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/men-wallpapers/" title="Man Wallpapers">
<i class="icon-user-tie"></i>
<span>Man</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/music-wallpapers/" title="Music Wallpapers">
<i class="icon-podcast"></i>
<span>Music</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/tv-series-wallpapers/" title="TV Series Wallpapers">
<i class="icon-tv"></i>
<span>TV Series</span>
</a>
</li>
</ul>
</li>
<li class="">
<a href="http://wallpapersden5.app/animals-wallpapers/" title="Animals Wallpapers">
<i class="icon-bug"></i>
<span>Animals</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/games-wallpapers/" title="Games Wallpapers">
<i class="icon-mug"></i>
<span>Games</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/nature-wallpapers/" title="Nature Wallpapers">
<i class="icon-magnet"></i>
<span>Nature</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/superheroes-cartoons-wallpapers/" title="Superheroes & Cartoons Wallpapers">
<i class="icon-svg"></i>
<span>Superheroes</span>
</a>
</li>
<li class="">
<a href="#" title="Others Wallpapers">
<i class="icon-lab"></i>
<span>Others</span>
</a>
<ul class="menu vertical nested categories_sub" id="categories_sub8">
<li class="">
<a href="http://wallpapersden5.app/brands-wallpapers/" title="Brands Wallpapers">
<i class="icon-shield"></i>
<span>Brands</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/flowers-wallpapers/" title="Flowers Wallpapers">
<i class="icon-leaf"></i>
<span>Flowers</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/food-wallpapers/" title="Food Wallpapers">
<i class="icon-spoon-knife"></i>
<span>Food</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/hi-tech-wallpapers/" title="Hi-Tech Wallpapers">
<i class="icon-lab"></i>
<span>Hi-Tech</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/macro-wallpapers/" title="Macro Wallpapers">
<i class="icon-drive"></i>
<span>Macro</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/other-wallpapers/" title="Other Wallpapers">
<i class="icon-diamonds"></i>
<span>Other</span>
</a>
</li>
</ul>
</li>
<li class="">
<a href="http://wallpapersden5.app/city-wallpapers/" title="City Wallpapers">
<i class="icon-earth"></i>
<span>City</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/holidays-wallpapers/" title="Holidays Wallpapers">
<i class="icon-airplane"></i>
<span>Holidays</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/wwe-wallpapers/" title="WWE Wallpapers">
<i class="icon-codepen"></i>
<span>WWE </span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/sport-wallpapers/" title="Sport Wallpapers">
<i class="icon-dice"></i>
<span>Sport</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/space-wallpapers/" title="Space Wallpapers">
<i class="icon-rocket"></i>
<span>Space</span>
</a>
</li>
<li class="">
<a href="http://wallpapersden5.app/cars-wallpapers/" title="Cars Wallpapers">
<i class="icon-truck"></i>
<span>Cars</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="content" class="medium-8 columns" style="padding: 0 10px;">
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium architecto deleniti, eos excepturi expedita facilis hic ipsa maxime nemo quae quidem quis quisquam reiciendis sit tempore temporibus totam ut veniam?
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div>Deserunt error nesciunt non optio repudiandae sit suscipit voluptas! Corporis dolor et ipsa labore nemo repellendus ullam velit. Ab consequatur consequuntur earum in inventore iure magni nam obcaecati officia temporibus.
</div>
<br/>
<br/>
<br/>
<div>A adipisci eum illum inventore laudantium necessitatibus numquam odit sapiente voluptatum? Fugit inventore magnam, modi nesciunt obcaecati quia quo ratione sequi tempora ullam? Ea, laudantium omnis optio sed sint unde!
</div>
<div>Ab assumenda atque beatae corporis culpa earum exercitationem nobis sit veniam. Alias fuga minima necessitatibus quisquam? Accusantium at autem blanditiis cum expedita labore nihil repellendus reprehenderit repudiandae, rerum sed temporibus.
</div>
<br/>
<br/>
<br/>
<div>Amet beatae consequatur dicta eaque facere ipsum necessitatibus nemo, quaerat quas quibusdam rerum totam. Aliquam aut consequuntur pariatur vitae. Aspernatur atque dignissimos distinctio laborum? Minus molestias obcaecati repudiandae saepe soluta.
</div>
<div>Alias amet aut autem beatae cupiditate ea eaque error et expedita in libero nesciunt nisi nostrum nulla perspiciatis quis repellendus suscipit, temporibus ut veniam. Cum minima quia rem repellat rerum.
</div>
<br/>
<br/>
<br/>
<div>Ab dignissimos distinctio dolorum odio quae. Alias error, facere impedit labore minus sed tempore ut! Officiis placeat similique totam. Consectetur dicta error impedit incidunt modi obcaecati perferendis possimus quaerat unde?
</div>
</div>
<div class="medium-2 columns">
<section class="resolution">
<ul class="vertical menu accordion-menu" data-accordion-menu data-multi-open="false">
<li class="menu-text mbb">Your Screen : <span id="myres"></span></li>
<li class="text-center hide-for-small-only">
<div class="addthis_horizontal_follow_toolbox"></div>
</li>
<li class="menu-text">Resolution</li>
<li>
Wide Screen
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=2048x1152">
2048x1152
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=2560x1080">
2560x1080
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=2560x1024">
2560x1024
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=2560x1600">
2560x1600
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1920x1200">
1920x1200
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1680x1050">
1680x1050
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1440x900">
1440x900
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1280x800">
1280x800
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=2560x1440">
2560x1440
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1600x900">
1600x900
</a>
</li>
</ul>
</li>
<li>
HD Screen
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=1920x1080">
1920x1080
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1280x720">
1280x720
</a>
</li>
</ul>
</li>
<li>
Ultra HD Screen
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=3840x2400">
3840x2400
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=3840x2160">
3840x2160
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=5120x2880">
5120x2880
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=7680x4320">
7680x4320
</a>
</li>
</ul>
</li>
<li>
Full Screen
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=1600x1200">
1600x1200
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1400x1050">
1400x1050
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1280x960">
1280x960
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1152x864">
1152x864
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1024x768">
1024x768
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1280x1024">
1280x1024
</a>
</li>
</ul>
</li>
<li>
Mobile
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=2160x3840">
2160x3840
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1440x2560">
1440x2560
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1080x1920">
1080x1920
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1024x600">
1024x600
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=960x544">
960x544
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=800x1280">
800x1280
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=800x600">
800x600
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=720x1280">
720x1280
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=540x960">
540x960
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=480x800">
480x800
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=360x640">
360x640
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=320x480">
320x480
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=320x240">
320x240
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=240x400">
240x400
</a>
</li>
</ul>
</li>
<li>
Apple
<ul class="menu vertical nested">
<li>
<a href="http://wallpapersden5.app/?resolution=2932x2932">
2932x2932
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=2248x2248">
2248x2248
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1280x2120">
1280x2120
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=1224x1224">
1224x1224
</a>
</li>
<li>
<a href="http://wallpapersden5.app/?resolution=950x1534">
950x1534
</a>
</li>
</ul>
</li>
</ul>
</section>
</div>
You can try this one
$(window).scroll(function(){
manageproductimage();
});
$(document).ready(function(){
manageproductimage();
});
function manageproductimage(){
var imgagesideht = $('.left-side-wrapper .left-inner').height();
var contentht = $('.right-side-content').height();
var position = $('.left-side-wrapper .left-inner').offset();
var headerHeight = $('.top-bar').innerHeight() + 72;
var scrltop = $(window).scrollTop();
var topposition = position.top;
var remht = contentht - imgagesideht;
var compareht = headerHeight + remht;
if(contentht > imgagesideht){
if(scrltop > headerHeight){
$('.left-side-wrapper .left-inner').css('position', 'fixed');
$('.left-side-wrapper .left-inner').css('top', 0);
if(scrltop > headerHeight + imgagesideht){
var tttt = headerHeight + imgagesideht;
var hhhh = tttt - scrltop;
$('.left-side-wrapper .left-inner').css('top', tttt - scrltop);
}
}
else{
$('.left-side-wrapper .left-inner').css('position', '');
$('.left-side-wrapper .left-inner').css('top', '');
}
}
}
*{
padding: 0px;
margin: 0px;}
p {
color: #8e8e8e;
font-family: arial;
font-size: 15px;
line-height: 27px;}
h1, h2, h3, h4, h5, h6 {
color: #333;
font-family: arial;
font-size: 20px;
margin-bottom: 10px;}
body {
background: #d7d7d7 none repeat scroll 0 0;
}
.main-wrapper {
padding: 15px;
}
.top-bar {
background: #fff none repeat scroll 0 0;
padding: 15px;
}
.scrollin-wrapper::after {
clear: both;
content: "";
display: table;
}
.left-side-wrapper .left-inner {
background: #fff none repeat scroll 0 0;
box-sizing: border-box;
padding: 10px;
width: 500px;
}
.scrollin-wrapper {
margin-top: 15px;
}
.left-side-wrapper {
background: #fff none repeat scroll 0 0;
box-sizing: border-box;
float: left;
width: 500px;
}
.right-side-content {
background: #fff none repeat scroll 0 0;
box-sizing: border-box;
float: right;
padding: 15px;
width: calc(100% - 515px);
}
.details-section {
background: #fff none repeat scroll 0 0;
margin-top: 15px;
padding: 15px;
}
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
</head>
<body>
<div class="main-wrapper">
<div class="top-bar">
<h3>Top bar</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<div class="scrollin-wrapper">
<div class="left-side-wrapper">
<div class="left-inner">
<div class="content">
<h3>
Left side sticky
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
</div>
<div class="right-side-content">
<div class="right-inner">
<div class="content">
<h3>
Right side contnet
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
</div>
</div>
<div class="details-section">
<h3>
Fill width bottom contnet
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p><p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
</div>
</body>
</html>

How to set custom post structure in Wordpress

I am looking for code block to change image tumbnail position in WordPress theme folder.
The position what I want is , I want image tumbail is left side of Same div.row and Post's Title and Entry will be Right side of same "div.row" Element. I just want to know how to set it."
<div class="row">
<div class="foo">
<div class="bar">
<img src="images/myimage.png" alt="" titl="">
</div>
</div>
<div class="foo2">
<div class="bar2">
<h1 class="mytitle">What am I doing?</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a>Read More</a>
</div>
</div>
</div>

Resources