Single price grid component (HTML & CSS Project) I would appreciate some feedback on this single price grid component project completed using HTML and CSS.
I am trying to recreate the content shown by this image: https://res.cloudinary.com/practicaldev/image/fetch/s--FzGw2rbZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3y0bhisv135j7979dk3m.jpg
HTML file
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;
    &lt;title&gt;Price Grid&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&quot;container&quot;&gt;

        &lt;div class=&quot;description&quot;&gt;
            &lt;h2&gt;Join our community&lt;/h2&gt;
            &lt;h3&gt;30-day, hassle-free money back guarantee&lt;/h3&gt;
            &lt;h3&gt;Gain access to our full library of tutorials along with expert code reviews.
                &lt;br&gt;Perfect for any developers who are serious about honing their skills.
            &lt;/h3&gt;    
        &lt;/div&gt;

        &lt;div class=&quot;pricing&quot;&gt;
            &lt;h3&gt;Monthly Subscription&lt;/h3&gt;
            &lt;h2&gt;$29 per month&lt;/h2&gt;
            &lt;h2&gt;Full access for less than $1 a day&lt;/h2&gt;
            &lt;button&gt;Sign up&lt;/button&gt;
        &lt;/div&gt;

        &lt;div class=&quot;featuredContent&quot;&gt;
            &lt;h2&gt;Why us?&lt;/h2&gt;
            &lt;ul&gt;
                &lt;li&gt;Tutorials by industry experts&lt;/li&gt;
                &lt;li&gt;Peer &amp; expert code review&lt;/li&gt;
                &lt;li&gt;Coding exercises&lt;/li&gt;
                &lt;li&gt;Access to our GitHub repos&lt;/li&gt;
                &lt;li&gt;Community forum&lt;/li&gt;
                &lt;li&gt;Flashcard decks&lt;/li&gt;
                &lt;li&gt;New videos every week&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;

    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

CSS File
html {
    margin: 0;
    padding: 0;
    font-family: 'Abel', sans-serif;
}

body {
    background-color: rgb(230, 230, 230);
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    border: 20px solid rgb(20, 148, 20);
    border-radius: 25px;
}

.description {
    padding: 20px;
    text-align: left;
    background-color: rgb(255, 255, 255);
}

.pricing {
    position: relative;
    float: left;
    top: 5.5%;
    height: 55%;
    width: 50%;
    color: white;
    background-color: rgb(43, 179, 177);
    text-align: center;
}

.featuredContent {
    position: relative;
    float: right;
    top: 5.45%;
    color: rgb(255, 255, 255);
    background-color: rgb(74, 190, 189);
    height: 55%;
    width: 50%;
}

.featuredContent h2 {
    text-align: center;
}

.featuredContent ul {
    position: relative;
    list-style: none;
    left: 20%;
}
HTML
Several elements are marked up as headlines, although they certainly aren't ones:

The text &quot;Gain access...&quot; in the description element should be two(!) paragraphs. (Don't use &lt;br&gt; to create paragraph-like line breaks.)
&lt;p&gt;Gain access to our full library of tutorials along with expert code reviews.&lt;/p&gt;
&lt;p&gt;Perfect for any developers who are serious about honing their skills.&lt;/p&gt;    


&quot;$29 per month&quot; and &quot;Full access...&quot; in pricing shouldn't be headlines either - especially not h2s after a h3. Also the price (&quot;$29&quot;) itself needs to be markuped separately, since it's highlighted compared to the rest of the line. For example:
&lt;div class=&quot;price&quot;&gt;&lt;strong&gt;$29&lt;/strong&gt; per month&lt;/div&gt;
&lt;p&gt;Full access for less than $1 a day&lt;/p&gt;


&quot;Why us?&quot; looks identical and is structurally identical to the headline &quot;Monthly Subscription&quot; in pricing, so it should have the same headline level.


The &quot;button&quot; &quot;Sign up&quot; functionally looks more like a link, than a &lt;button&gt;. (Buttons are primarily used to submit forms, which this is not.)
The class names are too generic and so can collide with other classes used on the site. Instead of container something like price-component would be more appropriate. And for the inner components either use a child/descendant selector in the CSS so that the rules only apply to your component:
.price-component &gt; .description

Or use a CSS naming scheme (such as BEM) to create a unique class names for the inner components such as price-component__description.
CSS
Avoid absolute positioning. Centering the price component like that is only appropriate, if it's only used as a modal dialog, that covers the rest of the content of the page and the screen shot doesn't seem to indicate that. In order to &quot;just&quot; center it, use CSS grid or flex.
Also the use of relative positioning isn't appropriate. On those floats it is strange. It just creates a gap where there shouldn't be one and lets the elements overlap the bottom border. And on the list use either a left-margin or just a general padding on the featuredContent element.
Float is not appropriate for layout any more. This component is the perfect example for a grid layout.
Hard coding the width and height in pixels makes the component unresponsive to the screen and font size. For the max-width use relative units such as rem and don't set the height at all, letting it resize dynamically based on the content size. Also consider an alternative media query based layout for smaller screen sizes where it would be too wide.
Don't center all the text. For one, it contradicts the screen shot, but more importantly centered text is difficult to read.
Example: https://jsfiddle.net/vjr2ogpq/