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 9009335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:09:50+00:00 2026-06-16T02:09:50+00:00

For awhile I was avoiding upgrading my bootstrap-sass gem in my ruby project because

  • 0

For awhile I was avoiding upgrading my bootstrap-sass gem in my ruby project because of one single change :

height: auto;

inside the img element.

This property seems to override explicit height properties.

So I have an image that is width 1, height 32 and I use it as such :

<img height="1" width="15" src="/assets/spc.png" alt="">

The height: auto; seems to force the image to display as 15 x 480 (32 x 15 = 480).

I have tried to redefine the img element by adding in-line style in the HEAD of my HTML, (for example img { }) but this does not seem to help.

I am not sure what the appropriate solution is. I use blank images around my site to create specific spaces between other elements. I probably can do this with some other kind of element, like a div or a span?

  • 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-16T02:09:51+00:00Added an answer on June 16, 2026 at 2:09 am

    how about using margin?

    you can for example:

    .spacerdiv{
    
    height:1px;
    width:15px;
    }
    

    add the div in the html and define this class to them.
    But that’s very bad practice. adding redundant elements to DOM

    or even better just define margin

    You can do it object oriented and define things like:

    .margin_left_part_of_site{
    margin: 5px 15px;
    }
    

    You can then add this class to every element that must have these properties.

    A jsfiddle example would allow further help.

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

Sidebar

Related Questions

I've been using Textmate for Ruby/Python scripting for awhile and now have a need
Been playing with Ruby on Rails for awhile and decided to take a look
This one had me going crazy for awhile. I have an app that was
I have been researching this one for awhile. I found several resources on the
So for awhile I've been using a StreamReader/Writer as a wrapper over a TcpClient's
I have noticed that after awhile of debug/tweakcode/debug etc that eventually Silverlight starts to
I was using \documentclass{amsmath} for awhile with no issues, but I recently wanted to
I've searched Google for awhile now, doesn't seem like I am correctly searching it
I have been looking around for awhile now and I can't seem to find
I've been banging my head against the wall for awhile on this but here

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.