Could you make sure to adjust all the columns, as the 2nd and 3rd columns are

Please take a look at the preview of my pricing table code below. You'll notice that the 2nd and 3rd columns are not aligned properly. I need help fixing the code to ensure all 3 columns are level.

Check out the codes below:

<html>
<head>
<style>
@import url(http://fonts.googleapis.com/css?family=Ubuntu);
* {
    margin: 0;
    padding: 0;
}
body {
    font-family: Ubuntu, arial, verdana;
}
.pricing_table {
    line-height: 150%;
    font-size: 12px;
    margin: 0 auto;
    width: 500%;
    max-width: 800px;
    padding-top: 10px;
    margin-top: 100px;
}
.price_block {
    text-align: center;
    width: 100%;
    color: #fff;
    float: left;
    list-style-type: none;
    transition: all 0.25s;
    position: relative;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-bottom: 1px solid transparent;
}

.pricing_table h3 {
    text-transform: uppercase;
color: #fff;
    padding: 5px 0;
    background: #A6DA18;
    margin: -10px 0 1px 0;
}

.price {
    display: table;
    background: #444;
float: center;

...

Answer №1

All your li elements should be placed inside a single ul, as demonstrated below:

<ul class="pricing_table">
<li class="price_block">
        <h3>Pricing Table</h3>

<div class="price">
            <div class="price_figure">
                <span class="price_number">$39.99</span>
                <span class="price_tenure">Only</span>
            </div>

</div>
<ul class="features">
<li>Features 1</li>
<li>Features 2</li>
<li>Features 3</li>
<li>Features 4</li>
<li>Features 5</li>
</ul>
<div class="footer">
            <a class="action_button" href="http://www.blogger.com/blogger.g?blogID=7860351751400882510#">Buy Now</a>

        </div>
</li>


<li class="price_block">
        <h3>Pricing Table</h3>

<div class="price">
            <div class="price_figure">
                <span class="price_number">$39.99</span>
                <span class="price_tenure">Only</span>
            </div>

</div>
<ul class="features">
<li>Features 1</li>
<li>Features 2</li>
<li>Features 3</li>
<li>Features 4</li>
<li>Features 5</li>
</ul>
<div class="footer">
            <a class="action_button" href="http://www.blogger.com/blogger.g?blogID=7860351751400882510#">Buy Now</a>

        </div>
</li>


<li class="price_block">
        <h3>Pricing Table</h3>

<div class="price">
            <div class="price_figure">
                <span class="price_number">$39.99</span>
                <span class="price_tenure">Only</span>
            </div>

</div>
<ul class="features">
<li>Features 1</li>
<li>Features 2</li>
<li>Features 3</li>
<li>Features 4</li>
<li>Features 5</li>
</ul>
<div class="footer">
            <a class="action_button" href="http://www.blogger.com/blogger.g?blogID=7860351751400882510#">Buy Now</a>

        </div>
</li>

</ul>

You can view the Fiddle HERE

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Customize the appearance of an ASP link button within a navigation menu

Just getting started with ASP.net and CSS, I want to customize my link button using CSS similar to other <a href> buttons, but I seem to be running into some issues. This is the code for my menu: <div id="templatemo_menu"> <ul ...

Gliding over the problem with the Azure line

https://i.sstatic.net/7N3hO.jpg Is there a way to hide the opacity and font on hover? I have tried using outline: 0; in my CSS but there is still a blue line lingering. Any ideas on how to remove it? If you need to see the code and the issue I'm des ...

Applying styled text to a Node.js chat application

I developed a chat application using node.js which allows users to enter a username and send messages. The messages are displayed in a <ul> format showing "username: message". I was looking for a way to make the username appear bold and in blue color ...

What is the best way to display each element of an array individually using just Javascript?

I have created a JavaScript array randomizer that displays the elements one by one with a set interval. However, I would like to modify it so that the elements are shown one at a time upon clicking a button instead of automatically changing after an interv ...

Adjust the mouse position upon page loading

I'm looking for a way to manipulate the mouse pointer on my webpage displaying a full-screen slider. I want the slider to stop when the mouse pointer is over it, but I also want the mouse pointer to be displayed at the top of the page when it's n ...

Is it possible to stack divs horizontally in a liquid layout while allowing one of the widths to be dynamic?

This is the code snippet and fiddle I am working with: http://jsfiddle.net/hehUt/2/ <div class="one"></div> <div class="two">text here text here text here text here text here text here text here text here text here text here text here te ...

Adjust the margin-top based on the height of another element

I'm facing an issue with two fixed navbars positioned one under the other. I used the 'fixed-top' class to fix both at the top, but the margin-top I added to make them align is not responsive. Is there a way to make the margin-top responsiv ...

Can TypeScript be imported into HTML to set a color value or modify a color value from HTML using TypeScript?

I've been working on this code for a couple of days now. Utilizing Angular to develop a web application, I am trying to change the color of certain numbers when they reach a specific value. For example, if num > 45 then color = green, otherwise col ...

Do GPU-intensive animations get impacted by the CPU's load?

I have set up a special compositing layer for a div with the following unique styles: div { position: absolute; height: 50px; width: 50px; background: #900; top: 100px; left: 200px; will-change: transform; transform: translateZ(0); } Afte ...

Bootstrap tabs trigger a reconstruction of CSS pseudo elements

I've encountered an issue while trying to add a ::before pseudo element to list item elements within a Bootstrap Tab. The pseudo element comes with a CSS animation that can be triggered by toggling the class. Although everything seems to work, I not ...

Divide the Javascript code from the HTML Canvas

I have been diving into HTML5 Canvas and exploring how to implement it using Javascript code. However, I am facing difficulties separating the Javascript code from the original html file. Despite trying some solutions: HTML5 Canvas not working in extern ...

I am experiencing difficulty locating the style.css file within my Node.js/Express application

I am currently working on a Node.js/Express app and I'm facing an issue where my browser is unable to find my style.css file, even though I am using a static file. Here is the directory structure: public -> css -> styles.css server -> serv ...

From SCSS to Style.css: Transforming Sassy Casc

Recently, the lead developer who worked on this project has left the company and now I have been tasked with taking over the project. Any assistance or guidance in this transition would be greatly appreciated. I must admit, I am not well-versed in WordPre ...

FireFox - Dynamic Blinking Divs on Hover

It seems like in FireFox and IE, my hover effect is blinking for some reason. I can't figure out why this is happening. Should I switch to using JavaScript for my hovers or is there an easier CSS solution? Here's a JSFiddle link to demonstrate th ...

Verify that the web element has a class containing the pseudo selector (:first-child) applied using Selenium WebDriver

Whenever I have a css style that uses the pseudo selector first-child: .point:first-child { margin-left: 0; } Could one find out if a specific DOM element has the class point with the :first-child pseudo-selector applied? .getAttribute("class") isn&a ...

Conceal the slider thumb within the material-ui framework

I've been attempting to conceal the slide thumb, initially without using a library. However, I started considering utilizing material-ui as it might make the process easier. Hence, I'm seeking assistance here. Below is my code snippet: import * ...

Retrieve data from multiple groups of dynamically generated list boxes

I've implemented a form on my website that dynamically adds rows with form fields. Each row consists of a textbox and a multiple select list. I found a helpful tutorial on this topic at: Here is the code for the textbox: <input type="textbox" nam ...

Using Puppeteer and Scrapy, this innovative Web Crawler with Scraper combines the power of both

As a newcomer to web technologies, I am faced with the task of crawling and scraping numerous websites that utilize a combination of React, JavaScript, and HTML. These sites collectively contain approximately 0.1 to 0.5 million pages. My plan is to use Se ...

The sequence in which the Jquery .click() script executes

I have multiple radio buttons that, when clicked, should display the corresponding image with a fade-in effect. However, the functionality only works in the order in which the functions are written. Once the fourth function is executed, the previous ones s ...

The vertical scrollbar is shifting the content to the side, causing a horizontal scrollbar to

Currently, I am working on a web page located at this link: My main focus at the moment is positioning an image in such a way that it appears to be coming out of the right side of the screen. Progress so far is looking promising. However, I have noticed ...