Transitioning hover text causes rows to shift downwards (Bootstrap)

I can't figure out why my col-sm-4 elements are moving downward when transitioning.

It seems like there might be a conflict in one of the class properties, resulting in excessive height for each box.

UPDATE: The page has been revised and the issue was actually a common bug related to Bootstrap 3 and wrapping elements, causing the row to have varying heights.

Answer №1

After some adjustments, I managed to get it working correctly. It seems that the issue was with the way you were applying the margin-bottom property. In your code, you were adding it to the .cat-post-container class, which is nested inside the .col-sm-4 class. To fix this, you should apply the margin-bottom directly to the .col-sm-4 class like so:

.col-sm-4 {
    margin-bottom: 20px;
}

.cat-post-container {
    // margin-bottom: 20px; *remove this rule*
}

Additionally, since your box is acting as a link, make sure to set the .col-sm-4 a element to display block in order to cover the content area properly.

.col-sm-4 > a {
    display: block;
}

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

The CSS ID selector fails to load on Android WebView

I am facing an issue while trying to load HTML with CSS that includes an ID selector. The file is not loading to the webview as expected. Here is the code snippet I attempted to load: <!DOCTYPE html> <html> <head> ...

Enrich your HTML using AngularJS

CSS <div class="container"> <section> <p>{{content}}</p> </section> </div> script.js (function () { var script = function ($scope){ $scope.content = "example"; } }()); I am currently ...

Is it possible to create a table using a loop in an SQLite query?

Welcome In the company where I work, Excel is currently being used to manage a large database of items for cost estimation purposes. To simplify this process, I am developing an Electron App that will replace Excel with a more user-friendly interface and ...

Obtain the accurate sequence of tr elements in the form of a jQuery object

Even though you can define tfoot before tbody in the source code, when displayed in the browser tfoot will still appear last: <table> <thead><tr><th>i get displayed first</th></tr></thead> <tfoot><t ...

Interactive SVG viewport dimension

Check out my "hamburger button" made in SVG, shown below. body { margin: 0; text-align: center; } svg#ham-btn { margin: 2rem; border: 1px solid black; fill: #383838; } <svg id="ham-btn" width="107.5px" height="80px" viewBox="0 0 80 80" pre ...

Having trouble getting Bootstrap 5 to work with a position-relative row?

I am having trouble placing the * sign on the left side. Whenever I try to do so, it only works if I remove the row class. <!doctype html> <html lang="fa" dir="rtl"> <head> <meta charset="utf-8"> ...

calculation of progress bar advancement

I want to make the progress bar in my game responsive to changes in the winning score. Currently, it moves from 0% to 100%, which is equivalent to 100 points - the default winning score. But I need the progress bar to adjust accordingly based on the user-i ...

Having trouble with your JQuery code?

I created this program to toggle the visibility of a message on a webpage. The hiding and unhiding functionality is working, but I am encountering an issue when trying to change the text on the button. Here is the HTML Code: <!DOCTYPE html> < ...

a pair of liquid divs aligned next to each other

I am attempting to line up two fluid divs next to each other. You can see a preview of the current layout here. My goal is to have two flexible divs side by side. This is the code I currently have: .images { border: 1px solid red; position:absolute; ...

Photographs within a line of HTML tables

I have been struggling with this issue, and it's honestly such a simple mistake! All I need is for each picture to be accompanied by a small box below it containing the name. I want all 4 pictures to be displayed in a row. However, when viewing this ...

Issue with Closing Bootstrap 4 Modal on Hide Operation

I had successfully implemented this feature in bootstrap 3, but unfortunately, I have not been able to replicate the same in bootstrap 4 (beta). The modal for the sign-in form is structured as follows: <div class="modal fade" id="signInModal" tabindex ...

Newbies struggle with styling HTML elements within nested IDs

I am new to learning HTML and struggling with working with IDs and classes within IDs and classes. Based on my understanding, an ID is denoted by a # symbol. So if I wanted to style an ID within another ID, would it be written like: #ID1 #ID2 { ... ...

AngularJS Routing misinterprets hash href from jQuery UI Datepicker

This issue is a result of my own oversight. I neglected to properly initialize the model for the datepicker, causing jQuery UI to prevent the navigation event from firing. If you're encountering this same problem, chances are there's another mist ...

Combine Two Values within Model for Dropdown Menu

I am currently facing a situation where I have a select box that displays a list of users fetched from the backend. The select box is currently linked to the name property of my ng model. However, each user object in the list also contains an email proper ...

Is there a way to make the <iframe> adjust its size as the element it contains grows, without

Seeking assistance with a specific issue. My goal is to have an iframe appear on hover of another element and expand with it. The problem I'm facing is that the iframe shows up quickly and extends beyond its parent container. Here's what I have: ...

Error message: Unhandled error - $(...).sidr does not exist as a function. [Chrome developer console]

I included this code in the basic module HTML block of a WordPress page builder and encountered the white screen of death. According to the Chrome developer console, the following error occurred: helpers.js?ver=4.5.3:15 Uncaught TypeError: $(...).sidr is ...

Try a new button-controlled game instead of relying on the keyboard

I've been working on a browser game using HTML5 and Java. Initially, I had the game controls set up with keyboard inputs. Now, I'm attempting to switch from keyboard controls to buttons, but I can't seem to get it right. I'm struggling ...

Concealing an input field in AngularJS

I am currently developing a login page with register and login options using AngularJS. The interface includes three input fields: username, password, and name. I aim to display the name field upon clicking the register button and hide it upon clicking t ...

What is the best way to dynamically include CSS in AngularJS?

Hello, I am currently attempting to add CSS dynamically but for some reason it is not working. Below you will find the code that I have been using: angular.module('myApp', [ 'myApp.controllers','myApp.services']). config([&ap ...

Split Screen Text Comparisons

For some reason, I am finding it challenging to display two paragraphs side by side without disrupting the overall layout. If you would like a visual explanation of the issue, please check out this video: Video If you're interested in reviewing the c ...