Building a sturdy base with foundation 6 and incorporating blank columns for

I wanted to format my columns like this:

| TEXT | TEXT | TEXT | TEXT | BLANK | BLANK |

so I implemented it in the following way:

<div class="row">
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
</div>

However, the last column is shifted to the right:

| TEXT | TEXT | TEXT | BLANK | BLANK | TEXT |

To avoid this issue, should I insert two additional blank columns within the row? It does solve the problem, but I am not in favor of adding unnecessary empty elements. Even just one extra blank div prevents the right float.

<div class="row">
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
  <div class="columns medium-4 large-2">TEXT</div>
  <div></div>
</div>

Is there a more optimal solution for this issue?

Answer №1

To make the last column stand out, simply assign the class 'end'

<div class="row">
  <div class="columns medium-4 large-2">CONTENT</div>
  <div class="columns medium-4 large-2">CONTENT</div>
  <div class="columns medium-4 large-2">CONTENT</div>
  <div class="columns medium-4 large-2 end">CONTENT</div>
</div>

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

SCSS files scattered throughout Solution Explorer create disorder in Visual Studio

I currently work with Visual Studio 2013. Typically, in the solution explorer, scss files are displayed with their .css, .css.map, and .min.css files neatly grouped under the main .scss file. However, I'm experiencing a lack of organization as all th ...

Styling with CSS for an associative array with multiple columns

How can I modify this PHP function to display its output within a scrolling text box with word wrap in CSS? <?php function prettyPrint( $my_array ) { if (is_array($my_array)) { echo "<table style=border=0 cellspacing=2 cellpadding ...

How can I move a nested child component out of an ancestor element with overflow set to hidden?

I'm facing an issue with a sliding carousel where the overflow-x property is set to hidden. The carousel displays 4 items at a time, and each item contains a button that triggers a pop-out menu positioned relative to its parent item. The problem arise ...

How can I efficiently invert text and background colors using CSS animation?

My objective is to create an animation that causes text to invert color between its background and its own color. Currently, the animation successfully flips the colors the first time, but struggles to transition back to the default colors, resulting in a ...

Customize footer's background color based on current route in Angular

My footer has a unique wavy design that functions as a block, but I'm facing an issue where the transparent part of the wave appears white because it's taking up space as a block. 1 2 3 Below is the CSS code being used: .wave{ background: ...

The timeline aesthetic can be achieved solely through the use of HTML, CSS, and potentially some Bootstrap functionalities

https://i.sstatic.net/EsDAE.png Up to this point, I've only been able to make it this far. I'm using a sample code from w3school https://i.sstatic.net/G1FcQ.png I've been attempting to get the year in the same position as in the image, bu ...

Tips on creating a React Vite Typescript website that utilizes the entire height and ensures a minimum width

I'm currently working on building a portfolio webpage with React, Vite, and Typescript, but I'm facing an issue where the content is not taking up the full height of the page. I have multiple pages with different lengths of content that I want to ...

Concealing the primary div within a Vue child component

Is there a way to conceal the primary div within a Vue application created using Vue-CLI? I attempted adding the display property, but it did not solve the problem. I am attempting to hide it within my Channels component. Here is how my main component lo ...

Is it possible to adjust the scroll top position using inline style in angularJS/CSS?

I am working on storing the scrollTop value of a vertical menu in my controller so that I can set it up each time I return to the page for persistent scrolling. Does anyone know how I can achieve this? This is the code snippet I am currently using: < ...

Adjust the width of the initial column in the table and ensure it remains noticeable

I am a beginner with bootstrap and I find it extremely useful. I have encountered a problem with a table I am working on. I am trying to set the width of the first column and keep it always visible, but I am having trouble achieving this. I have successful ...

"Utilizing Bootstrap to create a space-saving table layout with an

Using Bootstrap on a table causes an unexpected empty column to appear on the right side (as shown in the screenshot). This issue is strange because it works fine with another table using the same setup... but this particular table seems to have a mind of ...

Footer Design Problems

There seems to be some strange behavior with the footer on my website. In the demo, you'll notice that the HR tag in the location section is being pushed to the bottom of the page, altering the layout. Additionally, I'm attempting to make the Fac ...

Adding a CSS class to a link in Symfony 2 KNP Menu

I am currently utilizing the KnpMenuBundle for Symfony2, but I am facing an issue where I cannot find a way to add a CSS class to the generated links within the menu. I attempted to set the class using the child attribute, but unfortunately, it gets appli ...

Issue with Bootstrap: unable to align columns vertically

I am currently learning how to use bootstrap, but I am facing a challenge with vertical alignment of columns. Despite trying various methods, I can't seem to get the content to align anywhere other than the top. Even starting from scratch with code fr ...

The audio must start playing prior to being forwarded to a new page

As I delve into the world of website development on my own, I have encountered an interesting challenge. At the top of my webpage, I have embedded an audio file within a button. If the user chooses to mute the audio, the navigation links will remain silent ...

Contrast between the structure of asp.net button and hyperlinks

I want to transfer the styles of a hyperlink in regular html to an Asp.net button. However, I encountered a strange background issue that is disrupting the appearance of the buttons. Hyperlink: Asp.net Button How can I remove the outline that appears o ...

Content on the page is not fully visible on mobile devices when the Right-to-Left attribute is applied

I recently added multilanguage support to my blog using the RTL attribute. However, I noticed that when users switch to another language, the page content shifts from LTR to RTL. Everything was working fine until I encountered an issue with a toggle tab o ...

Adjust the height of the second column in Bootstrap 4 textarea to fill the remaining space

I am facing an issue with my layout where I have 2 columns, one containing some inputs and the other only a textarea. The problem is that I want the textarea in the second column to extend and fill the remaining height of the first column, but so far I hav ...

What is the best way to place an icon in the center of a Bootstrap 5 card image?

I'm looking to center an icon within a bootstrap-5 card image. I have an icon that I want to display at the center of my card image, but I'm unsure how to achieve this using either CSS or Bootstrap-5. Can anyone provide guidance on how to accompl ...

Issue: In Firefox, resizing elements using position:absolute does not work as expected

My resizable div code looks like this: #box { height: 10rem; width: 10rem; resize: both; overflow: hidden; border: solid black 0.5rem; position: absolute; pointer-events: none; } <div id="item"></div> While it works perfectly ...