Responsive Play Title Card Design using HTML & CSS

Responsive Play Title Card Design using HTML & CSS

Hello developers, today in this blog you'll learn how to create a Responsive Play Title Card Design using HTML & CSS.

The card design can be a convenient means of displaying contents that include various information pictures or icons of the particular information that what has to be displayed or conveyed, title and description.

In this blog (Responsive Play Title Card Design) on the webpage, there are four cards, the cards have some game pictures with the title of the game at the bottom of the card. We have done this card to create a play card design with its title, where you can create many cards as many cards as you need with the respective picture and title. This Play Title Card Design is made responsive. When you view this page on a larger screen, the cards are arranged horizontally, whereas on the smaller screen the cards are arranged vertically that is one by one.

The source code of this Responsive Play Title Card Design is given below, and you can copy the source code of this program. You can use this code of Responsive Play Title Card Design with your creativity and can take this card to the subsequent level.

Responsive Play Title Card Design [Source Code]

To make this website (Responsive Play Title Card Design), you need to create two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Play Title Cards || LearningRobo</title> <link rel="stylesheet" href="./style.css"> </head> <body> <div class="cards-list"> <div class="card 1"> <div class="card_image"> <img src="https://cdn.pixabay.com/photo/2020/05/16/00/33/wallpapers-5175527__340.png" /> </div> <div class="card_title title-white"> <p>Card Title</p> </div> </div> <div class="card 2"> <div class="card_image"> <img src="https://cdn.pixabay.com/photo/2020/05/16/00/25/wallpapers-5175518__340.png" /> </div> <div class="card_title title-white"> <p>Card Title</p> </div> </div> <div class="card 3"> <div class="card_image"> <img src="https://cdn.pixabay.com/photo/2020/05/16/00/32/wallpapers-5175525__340.png" /> </div> <div class="card_title"> <p>Card Title</p> </div> </div> <div class="card 4"> <div class="card_image"> <img src="https://media0.giphy.com/media/3oriNZN3vh5XFSr8Gc/200.webp?cid=ecf05e47qg5ed3aehfiwv64sz9qamv4yl6ihrzwvg5xceu1d&rid=200.webp&ct=g" /> </div> <div class="card_title title-black"> <p>Card Title</p> </div> </div> </div> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤</span> by <a href="https://www.learningrobo.com/">Learning Robo</a></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script> </body> </html>
CSS provides style to an HTML page. To make the page responsive and attractive and responsive create a CSS file with the name style.css and remember that you have to create a file with a .css extension.


.cards-list {
  z-index: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card {
  margin: 30px auto;
  width: 300px;
  height: 300px;
  border-radius: 40px;
box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: 0.4s;
}

.card .card_image {
  width: inherit;
  height: inherit;
  border-radius: 40px;
}

.card .card_image img {
  width: inherit;
  height: inherit;
  border-radius: 40px;
  object-fit: cover;
}

.card .card_title {
  text-align: center;
  border-radius: 0px 0px 40px 40px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 30px;
  margin-top: -80px;
  height: 40px;
}

.card:hover {
  transform: scale(0.9, 0.9);
  box-shadow: 5px 5px 30px 15px rgba(0,0,0,0.25), 
    -5px -5px 30px 15px rgba(0,0,0,0.22);
}

.title-white {
  color: Black;
}

.title-black {
  color: black;
}

@media all and (max-width: 500px) {
  .card-list {
    flex-direction: column;
  }
}



.card {
  margin: 30px auto;
  width: 300px;
  height: 300px;
  border-radius: 40px;
  background-image: url('https://i.redd.it/b3esnz5ra34y.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-repeat: no-repeat;
box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
  transition: 0.4s;
}
body{
  background: #bc4e9c;  
background: -webkit-linear-gradient(to right, #f80759, #bc4e9c);  
background: linear-gradient(to right, #f80759, #bc4e9c); 

}

.credit a{
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  }
  
  .credit {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 10px;
    color:#000;
    text-align: center;
  }
We hope you would like this Responsive Play Title Card Design using HTML & CSS.

Thank you for reading our blog. If you face any problem in creating this Responsive Play Title Card Design using HTML & CSS, then contact us or comment us. We’ll try to provide a solution to your problem as soon as possible.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome