Columns settings in style.css desktop/responsive view
-
Hello,
In my Theme desktop view i see my products in a 3 column.
In the Tablet view i get a 2 column and in the mobile view 1 column.Can someone help me to change the style.css to get a 2 column in the mobile view, like tablet. I need 2 columns of my products in mobile.
Thank you, here are the code from the style.css
THANK YOU
/* ————————————————————–
17.0 Columns
————————————————————– */
.column {
font-size: 15px;
display: inline-block;
position: relative;
float: left;
width: 30.6%;
margin-right: 4%;
margin-bottom: 4%;
overflow: hidden;
vertical-align: top;
box-shadow: 0 2px 0 #D9E1E7;
border-radius: 3px;
background: #fff;
}.column:nth-child(3n) {
margin-right: 0;
}@media only screen and (max-width: 960px) {
.column {
width: 47%;
}.column:nth-child(3n) {
margin-right: 4%;
}.column:nth-child(2n) {
margin-right: 0;
}
}
@media only screen and (max-width: 600px) {
.column {
width: 100%;
margin-right: 0;
margin-bottom: 8%;
}
}
.widget-section .column {
padding: 6% 4%;
}/* Only one widget */
.widget-section .column:first-child:nth-last-child(1) {
width: 50%;
float: none;
display: block;
margin: 0 auto 6% auto;
}
@media only screen and (max-width: 768px) {
.widget-section .column:first-child:nth-last-child(1) {
width: 100%;
}
}/* Only two widgets */
.widget-section .column:first-child:nth-last-child(2),
.widget-section .column:first-child:nth-last-child(2) ~ .column {
width: 48%;
}
@media only screen and (max-width: 600px) {
.widget-section .column:first-child:nth-last-child(2),
.widget-section .column:first-child:nth-last-child(2) ~ .column {
width: 100%;
}
}/* Only three widgets */
.widget-section .column:first-child:nth-last-child(3),
.widget-section .column:first-child:nth-last-child(3) ~ .column {
width: 30%;
}
@media only screen and (max-width: 960px) {
.widget-section .column:first-child:nth-last-child(3),
.widget-section .column:first-child:nth-last-child(3) ~ .column {
width: 30%;
margin-right: 3%;
}
}
@media only screen and (max-width: 768px) {
.widget-section .column:first-child:nth-last-child(3),
.widget-section .column:first-child:nth-last-child(3) ~ .column {
width: 100%;
}
}.widget-section .column:first-child:nth-last-child(2) ~ .column:last-child,
.widget-section .column:first-child:nth-last-child(3) ~ .column:last-child {
margin-right: 0;
}.price-column-fix {
height: 0 !important;
padding: 0;
border: none;
display: none;
}.widget-icon-text .icon-text-widget,
.widget-icon-text .widget-title {
text-align: center;
}.widget-icon-text .icon-text-widget i {
font-size: 50px;
margin-bottom: 8%;
color: #9ba6b2;
}@media only screen and (max-width: 600px) {
.widget-icon-text .icon-text-widget i {
font-size: 30px;
margin-bottom: 5%;
}
}
.widget-section h2.widget-title {
font-size: 20px;
margin-bottom: 10%;
}@media only screen and (max-width: 600px) {
.widget-section h2.widget-title {
font-size: 16px;
margin-bottom: 5%;
}
}
.widget-section .pricing-table-variable-options,
.footer-widgets .pricing-table-variable-options {
width: 100%;
background: transparent;
padding: 0;
margin-right: 0;
border: none;
}.footer-widgets .pricing-table-variable-options {
border-bottom: dotted 1px rgba(255, 255, 255, 0.15);
padding: 5% 4%;
}.widget-section .pricing-section,
.footer-widgets .pricing-section {
padding: 0;
}.page-template-homepage-php .inside-page {
max-width: 100%;
} -
Hi bg2088,
It looks like you are working on a self hosted WordPress.org site, rather than a WordPress.com site. The differences between the two are explained in more detail here:
We are only able to help with WordPress.com sites here, however, support for WordPress.org sites is available on these forums:
https://wordpress.org/support/
You can open a new topic there :)
Best of luck!
- The topic ‘Columns settings in style.css desktop/responsive view’ is closed to new replies.