Issue with displaying the correct size of column shortcodes in Wordpress

My column shortcode plugin doesn't seem to be working properly as the one_half column shortcodes are extending too far into the content area and wrapping onto the next line when placed side by side. What could be causing this issue? To see an example, visit this link where "benefits" and "book ahead" should be on the same row.

Answer №1

You may want to reconsider the total width of your one_half columns as they currently do not align: 48% width with a 4% margin-right.

Consider adjusting to a 46% width and 4% margin, or finding a combination that does not exceed 50% in total.

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

Place the child in the center of the parent container without any specified height or width

I am in the process of developing a popover system that consists of two main divs: the popover-container and the popover. The container is a small 0px by 0px sized div responsible for positioning relative to the page. My objective is to have the child popo ...

Upgrade the old website by incorporating some components of the Framework CSS

Having experience with bootstrap, semanticUI, foundation, and other frameworks, my new project involves adding features to an existing website without rebuilding it entirely. I am looking to implement a partial view using a framework's CSS. How can I ...

Safari: The onbeforeunload event

Welcome! To experience the Leave | Stay confirmation box on your page, please make sure you are using Safari 10. I am currently facing an issue with getting the confirmation box to display properly across different browsers. To begin, please visit and l ...

send css as a parameter to the component

Could it be possible to develop a component with specific CSS attributes? I am aware that the following approach is not valid. <template> <div id="textContainer"> {{ content }} </div> </template> <script> export defa ...

What are the methods for displaying an image using CSS content?

My code is displaying information on a webpage. I have text being shown on my website, but I'm struggling to add an image near that text. { "id": 85, "parent": null, "created": "2019-02-06", "modified": "2019-02-06", "content": ...

Varying spacing among elements with identical classes

I'm facing some styling issues. My goal is to ensure that each h3 tag has the same distance between the bottom border of its container (marked with a pink border) and the bottom border of its parent (indicated in the image below): https://i.sstatic.ne ...

Is it possible to add animated text using anime.js?

var elements = document.querySelectorAll('.content'); anime({ targets: elements, content: 100, }); <script src="https://raw.githubusercontent.com/juliangarnier/anime/master/lib/anime.min.js"></script> <span class="content"> ...

Using CSS to align and place elements

Currently facing a challenge with my HTML/CSS code regarding the horizontal centering of two divs (A, B) within one absolutely positioned div (C) that contains background images. Key aspects to consider: The bottom edge of the larger div (A) should alig ...

Creating consistent widths for drop downs and text boxes in Bootstrap

I'm currently using VB.Net MVC, Razor, Bootstrap, and Visual Studio 2013. My clients have requested that the dropdowns match the width of the text boxes. Here is how I create my dropdowns: @<div class="row"> <div class="col-md-4"> ...

Ways to retrieve the JSON id once an item has been generated

My current project involves utilizing a function to share a collection of bookmarks among users. I am working with the WordPress UserPro Bookmarks plugin and need assistance in obtaining the ID after a new item is created. function share_collection($id,$n ...

Adjusting background size for Bootstrap

Embarking on my Bootstrap journey, I am faced with the task of coding a responsive design. This project was purchased and now needs to be made clickable :) It utilizes the Bootstrap grid and has a width of 1920px. My query is: How can I make the backgrou ...

Simple method to modify the text size of the entire HTML page

Looking for a way to adjust the font size of an entire HTML document? I'd like to have two buttons - one to increase the font size and the other to decrease it. Each button will trigger a JavaScript function; function increaseFontSize(){ //Increase ...

What is the best way to combine colors using CSS?

I am trying to customize my code with the following elements: .featured { background-color: rgba(100, 150, 200, 1); } .hidden { background-color: black; } <div> <p class="featured hidden">Lorem ipsum dolor sit amet</p> < ...

The color of the link refuses to change

The link text is displaying in a persistent purple color, despite my attempts to change it to white. I have experimented with adding nav:link and nav:active, but the text reverts to the default color without any CSS styling applied. I have included the fo ...

Text Alignment Issue in Icon Bar of Zurb Foundation 5

There's an unusual problem I'm encountering with the alignment of text under the icon bar not being properly centered below the icons. Here is a snippet of the code: <div class="row"> <div class="small-12 columns"> < ...

Enhancing Wordpress wp_query results with personalized key and value properties

I have successfully retrieved all the posts using this specific query. However, my goal is to enhance these posts by adding custom field keys and values that can be passed along with each post object. $args = array( 'p' => 996, ...

Utilizing Jquery Masonry to create a visually appealing layout with dynamically sized items

Greetings, I am currently facing an issue on my blog where the grid resizes when clicking on an item, but the masonry layout doesn't adjust accordingly and causes items to become disorganized. If you'd like to see an example of this issue in act ...

Are you seeing empty squares in place of Font Awesome icons?

If the Font Awesome icons are displaying as blank squares in all browsers despite correctly linking the stylesheet and attempting to install the package through npm which results in a npm ERR! code E401, it can be frustrating. Even after checking the brows ...

The animation in my SVG comes to a halt at a certain point

I am having an issue with my SVG element (shown below) where it stops animating after a certain period of time. I want the animation to continue indefinitely like in this jsfiddle. .path { stroke-dasharray: 20; animation: dash 10s linear; } @ ...

Bespoke media queries spanning the entire application

Currently, I am utilizing the angular7 application along with bootstrap 4.2.1. Although Bootstrap provides numerous breakpoints, I only require three specific breakpoints for my project. To achieve this customization, I made modifications in the following ...