Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:55:23+00:00 2026-06-15T21:55:23+00:00

I have a five column grid. I’ve initially set them up as so: <div

  • 0

I have a five column grid. I’ve initially set them up as so:

<div class="row">
    <div class="span1">...</div>
    <div class="span3">...</div>
    <div class="span1">...</div>
    <div class="span4">...</div>
    <div class="span1">...</div>
</div>

The first column contains one of two icons, both of the same width: 18px. span1 resolves to 60px, however, so there’s a lot of wasted space.

How do I declare a column that’s 18px?

This only affects one page of my app, so it’s not enough to customise the entire Bootstrap CSS, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:55:24+00:00Added an answer on June 15, 2026 at 9:55 pm

    You can add your own class:

    ...
    .myspan {
        width:18px;
        margin-right:52px;
    }
    ...
    

    Then add the class to your tag:

    <div class="row">
        <div class="myspan">...</div>
        <div class="span3">...</div>
        <div class="span1">...</div>
        <div class="span4">...</div>
        <div class="span1">...</div>
    </div>
    

    Or even use inline css (but it’s less clean)

    <div class="row">
        <div class="span1" style="width:18px;margin-right:52px">...</div>
        <div class="span3">...</div>
        <div class="span1">...</div>
        <div class="span4">...</div>
        <div class="span1">...</div>
    </div>
    

    Every class containing “span” will get a margin-left of 30px and be set as float:left so you just need to specify the margin-right and width properties.

    This is because of the [class*="span"] selector in bootstrap.css

    In this example, I set a margin-right of 52px to keep the grid system, but you can change it to 10px if you don’t want wasted space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a five column (text boxes) cell (row) in table view controller
I have a text file with five columns. First column has year(2011 to 2040),
I have grid view which contains five radio buttons per row. Out of these
I have a five tables and their respective column university - id_university (pk) -
I have an HTML table in which the first column's cells each contain a
I have a problem in listview.I my listview i have five columns(question_number,question_text,start_time,end_time,status). the first
I have a grid view with three columns and five rows with text item
If I have five 32x32 pixel images in a div container I can easily
I have five buttons on one form that when clicked enables a bool each
I have five divs on my page (#art #fashion, #self, #nightlife, #community). right now,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.