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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:01:54+00:00 2026-06-09T13:01:54+00:00

I have written the script for jQuery columnizer. Everything works okay with one noteworthy

  • 0

I have written the script for jQuery columnizer. Everything works okay with one noteworthy exception:

I am wanting to fix the number of columns to 3 AND increase the padding to 10px. As the layout stands now, I am not happy with how tight the columns sit after forming.

When I use CSS to adjust the padding, the last column gets pushed out and kicked down:

Code:

<script>
$(function(){
        $('#sectionID').columnize({ columns: 3 });
});
</script>
<style type="text/css">
.column{padding:10px; }
</style>

Any ideas or tips?

Thanks!

/Brian

  • 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-09T13:01:56+00:00Added an answer on June 9, 2026 at 1:01 pm

    the best way i’ve found to solve this problem is to add the padding to the elements inside the column instead. it’ll depend on the content you have. if you have just paragraphs inside the column, then changing the rule to .column p is enough.

    The easiest solution would be to use a child selector and add the padding to the items inside the column with:

    .column > * { padding: 10px }
    

    That should work for 90% of people’s needs for column padding, but note since it’s added to children of the column it’ll be adding top/bottom padding to each element too instead of just to the column – which may not be desired.

    Another option (which requires additional markup) is to add a div to the container that you’re columnizing, and then add the padding to that new div. So instead of:

    <div id=sectionID>
    ... content to columnize ...
    </div>
    

    you’d have:

    <div id=sectionID>
    <div class=for_padding>
    ... content to columnize ...
    </div>
    </div>
    

    and your CSS would be:

    .column .for_padding { padding: 10px; }
    

    You’d still columnize the sectionID div, and columnizer will add that <div class=for_padding> wrapping the inside of each column.

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

Sidebar

Related Questions

I have written a jQuery image resize script that works fine when the images
I have a jQuery countdown script written, it works in all other browsers except
I'm trying to write a jQuery script (I have never written one before and
I have written a script that fires a jQuery POST to retrieve data from
I have written a script which works, but I'm guessing isn't the most efficient.
I have written a bash script which installs a number of packages, however for
I have written a Javascript/jQuery script. Its purpose is to serve as a responsive
I have written a simple jQuery script that changes the hash tag of a
I have written a jQuery script to glow and then fade out similar to
I'm learning javascript and jquery and have written a very basic script inside my

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.