What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

2 col on desktop and 1 col mobile

lill77

New member
Joined
Sep 16, 2022
Messages
1
Reaction score
0
HTML Coins
0
Hi im trying to get this card css code to work 2 col on desktop and 1 col mobile . Im adding it as html onto a Shopify page ?

Any help would be great , thanks.

here is the code i have

<meta name="viewport" content="width=device-width, initial-scale=1">



<style>



.container-home{
width: 100%;

}

.container-home .card{
position: relative;
cursor: pointer;
}

.container-home .card .face{
width: 50%;
height: 500px;
transition: 0.5s;
}

.container-home .card .face.face1{
position: relative;
background: #fff;
justify-content: center;
align-items: center;
z-index: 1;
transform: translateY(250px);
flex-direction: row;
flex-wrap: wrap;
}

.container-home .card:hover .face.face1{
background: #84A6BC;
transform: translateY(0);
}

.container-home .card .face.face1 .content{
opacity: 1;
transition: 0.5s;
}

.container-home .card:hover .face.face1 .content{
opacity: 1;
}

.container-home .card .face.face1 .content img{
max-width: 100px;
}

.container-home .card .face.face1 .content h3{
margin: 10px 0 0;
padding: 0;
color: darkgrey;
text-align: center;
font-size: 1.5em;
}

.container-home .card .face.face2{
position: relative;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
box-sizing: border-box;
transform: translateY(-100px);
}

.container-home .card:hover .face.face2{
transform: translateY(0);
}

.container-home .card .face.face2 .content p{
margin: 0;
padding: 0;
}

.container-home .card .face.face2 .content a{
margin: 15px 0 0;
display: inline-block;
text-decoration: none;
font-weight: 700;
padding: 10px;
border: 0.5px solid #333;
}

.container-home .card .face.face2 .content a:hover{
background: #d56227;
color: #fff;
}





</style>




<div class="container-home">
<div class="card">
<div class="face face1">
<div class="content">
<img src="https://cdn.shopify.com/s/files/1/0607/9073/5048/files/66859-200.png?v=1663239145">
<h3>Design...</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cum cumque minus iste veritatis provident at.</p>
<a href="#" class="button-home">Take me there</a>
</div>
</div>
</div>
<div class="card">
<div class="face face1">
<div class="content">
<img src="https://cdn.shopify.com/s/files/1/0607/9073/5048/files/66859-200.png?v=1663239145">
<h3>Select...</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cum cumque minus iste veritatis provident at.</p>
<a href="#">Take me there</a>
</div>
</div>
</div>
<div class="card">
<div class="face face1">
<div class="content">
<img src="https://cdn.shopify.com/s/files/1/0607/9073/5048/files/66859-200.png?v=1663239145">
<h3>Supply...</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cum cumque minus iste veritatis provident at.</p>
<a href="#">Take me there</a>
</div>
</div>
</div>
<div class="card">
<div class="face face1">
<div class="content">
<img src="https://cdn.shopify.com/s/files/1/0607/9073/5048/files/66859-200.png?v=1663239145">
<h3>Install...</h3>
</div>
</div>
<div class="face face2">
<div class="content">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas cum cumque minus iste veritatis provident at.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
</div>
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back