CODE VN

CODE VN

1656300029

Cách tạo bảng định giá đáp ứng bằng HTML và CSS

Trong hướng dẫn này, bạn sẽ học cách tạo bảng định giá hiện đại Reponsive bằng HTML & CSS. Để tạo bảng định giá Đáp ứng, trước tiên bạn cần tạo hai tệp, một tệp HTML và một tệp khác là tệp CSS .

1: Đầu tiên, tạo một tệp HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pricing Table</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
 
    <div class="pricing-table">
        <!-- 1 card -->
        <div class="pricing-card">
            <h3 class="pricing-card-header">Lean</h3>
            <div class="price"> $4.88/yr
              </div>
            <ul>
                <li>Free control plane included</li>    
            </ul>
            <a href="#" class="order-btn">Order Now</a>                          
        </div>
 
        <!-- 2 card -->
        <div class="pricing-card">
            <h3 class="pricing-card-header">Standard</h3>
            <div class="price"> $8.88/yr
              </div>
            <ul>
                <li>Deploy in seconds</li>
                 
            </ul>
            <a href="#" class="order-btn">Order Now</a>                          
        </div>
 
        <!-- 3 card -->
 
        <div class="pricing-card">
            <h3 class="pricing-card-header">Advanced</h3>
            <div class="price"> $20.88/yr
              </div>
            <ul>
                <li>Free daily backups,</li>
                 
            </ul>
            <a href="#" class="order-btn">Order Now</a>                          
        </div>
 
        <!-- 4th card  -->
        <div class="pricing-card">
            <h3 class="pricing-card-header">Enterprise</h3>
            <div class="price"> $48.88/yr
              </div>
            <ul>
                <li>Highly available</li>
                 
            </ul>
            <a href="#" class="order-btn">Order Now</a>                          
        </div>
         
    </div>
     
</body>
</html>

 

2: Thứ hai, tạo một tệp CSS


 

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&amp;family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap');
 
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
}
 
body{
    background-color: #0D0D20;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
 
.pricing-table{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: min(1920px,100%);
}
 
.pricing-card{
    flex: 1;
    max-width: 360px;
    background-color: #171727;
    margin: 20px 10px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    color: #ffffff;
    transition: .3s linear;
    border-radius: 20px;
    /* border: 0.5px solid #fff; */
     
}
 
.pricing-card-header{
    background-color: #171727;
    display: inline-block;
    color: #fff;
    padding: 12px 30px;
    border-radius: 0 0 20px 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    transition: .4s linear;
}
 
.pricing-card:hover .pricing-card-header {
    box-shadow: 0 0 0 26em #242486;
}
 
.price{
    font-size: 30px;
    font-weight: 500;
    color: #ffffff;
    margin: 40px 0;
    transition: .2s linear;
}
 
.price sup, .price span {
    font-size: 22px;
    font-weight: 700;
}
 
.pricing-card li {
    font-size: 16px;
    padding: 10px 0;
    
}
 
.pricing-card:hover , .pricing-card:hover .price {
    color: #fff;
}
 
 
 
.order-btn {
    display: inline-block;
    margin-bottom: 40px;
    margin-top: 80px;
    border: 2px solid #1F1F35;
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 500;
    transition: .3s linear;
}
 
.order-btn:hover {
    background-color: #0fbcf9;
    color: #fff;
}
 
@media screen and (max-width:1100px)
{
    .pricing-card{
        flex: 50%;
    }
}

Bây giờ bạn đã tạo thành công Bảng định giá đáp ứng chỉ bằng HTML và CSS.

What is GEEK

Buddha Community

anita maity

anita maity

1618667723

Sidebar Menu Using Only HTML and CSS | Side Navigation Bar

how to create a Sidebar Menu using HTML and CSS only. Previously I have shared a Responsive Navigation Menu Bar using HTML & CSS only, now it’s time to create a Side Navigation Menu Bar that slides from the left or right side.

Demo

#sidebar menu using html css #side navigation menu html css #css side navigation menu bar #,pure css sidebar menu #side menu bar html css #side menu bar using html css

Alisha  Larkin

Alisha Larkin

1617789060

HTML Tutorial For Beginners

The prospect of learning HTML can seem confusing at first: where to begin, what to learn, the best ways to learn — it can be difficult to get started. In this article, we’ll explore the best ways for learning HTML to assist you on your programming journey.

What is HTML?

Hypertext Markup Language (HTML) is the standard markup language for documents meant to be displayed in a web browser. Along with Cascading Style Sheets (CSS) and JavaScript, HTML completes the trio of essential tools used in creating modern web documents.

HTML provides the structure of a webpage, from the header and footer sections to paragraphs of text, videos, and images. CSS allows you to set the visual properties of different HTML elements, like changing colors, setting the order of blocks on the screen, and defining which elements to display. JavaScript automates changes to HTML and CSS, for example, making the font larger in a paragraph when a user clicks a button on the page.

#html #html-css #html-fundamentals #learning-html #html-css-basics #html-templates

anita maity

anita maity

1621077133

Responsive Footer Design using HTML, CSS & Bootstrap

Hello Readers, welcome to my other blog, today in this blog I’m going to create a Responsive Footer by using HTML & CSS only. Earlier I have shared How to create a Responsive Navigation Menu and now it’s time to create a footer section.

As you can see on the image which is given on the webpage. There are various important topics there like About us, Our services and subscribes, some social media icons, and a contact section for easy connection. I want to tell you that it is fully responsive. Responsive means this program is fit in all screen devices like tablet, small screen laptop, or mobile devices.

Live Demo


#responsive footer html css template #footer design in html #simple footer html css code #simple responsive footer codepen #responsive footer code in html and css #responsive footer html css codepen

Alayna  Rippin

Alayna Rippin

1603188000

Creating a CSS Visual Cheatsheet

The other day one of our students asked about possibility of having a CSS cheatsheet to help to decide on the best suited approach when doing this or that layout.

This evolved into the idea of making a visual CSS cheatsheet with all (most) of the common patterns we see everyday and one of the best possible conceptual implementation for them.

In the end any layout could and should be split into parts/blocks and we see every block separately.

Here is our first take on that and we would be happy to keep extending it to help us all.

Please, send you suggestions in the comments in community or via gitlab for the repeated CSS patterns with your favourite implementation for that so that we will all together make this as useful as it can be.

#css #css3 #cascading-style-sheets #web-development #html-css #css-grids #learning-css #html-css-basics

This CSS Cut Out Effect is Guaranteed to Blow Your Mind 🤯

This effect is so cool and just fun to see. What it comes down to is having a background image show through the text.

How it works is that we will have a div that will have the image as a background. On that, we put our text element, using blend-mode it will show through the image.

The result you can see and touch on this Codepen.

#css #css3 #html-css #css-grids #learning-css #html-css-basics