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

  • Home
  • SEARCH
  • 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 6569665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:39:37+00:00 2026-05-25T14:39:37+00:00

Html: <section id=grid> <aside class=grid> <img class=img src=i/img.jpg /> <p></p> </aside> <aside class=grid> <img

  • 0

Html:

<section id="grid">
    <aside class="grid">
        <img class="img" src="i/img.jpg" />
        <p></p>
    </aside>
    <aside class="grid">
        <img class="img" src="i/img.jpg" />
        <p></p>
    </aside>
    <aside class="grid">
        <img class="img" src="i/img.jpg" />
        <p></p>
    </aside>    
</section>

css:

#grid{  
    margin:50px 0 0 10px;
    width:100%;
    text-align:center;
}
.grid{
    margin-left:20px;
    margin:0 auto;
    width:300px;    
}

How to place this sections in one line and centered?

  • 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-05-25T14:39:37+00:00Added an answer on May 25, 2026 at 2:39 pm

    I hope this is what you wanted: http://jsfiddle.net/thirtydot/ypce8/

    My answer is more complicated than it could have been for two reasons:

    • I’m assuming the number of items is not fixed.
    • I included support for IE6/7 (assuming you’re already using html5shiv or similar).
    #grid {  
        margin: 50px 0 0 10px;
        width: 100%;
        text-align: center;
        zoom: 1;
        border: 1px dashed #f0f
    }
    .grid {
        border: 1px solid red;
        margin-left: 16px;
        width: 300px;
        vertical-align: top;
        display: inline-block;
        /*if you need ie6/7 support*/
        *display: inline;
        zoom: 1
    }
    .grid:first-child {
        margin-left: 0
    }
    .grid img {
        display: block
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My html is something like this: <a class=tableheadlink href=#>Impressions</a> <a href=#><img src=images/table-sort.png alt= /></a>
The following is an section of my CSS file plus some HTML. Can anyone
I have the following HTML: <section id=sidebar class=grid_3> <section id=content class=grid_9> I used jQuery
I have the following html in my site: <link type=text/css href=/Styles/ui-lightness/jquery-ui-1.8.2.custom.css rel=Stylesheet /> <link
please see this html codes : <!-- PAGE - 5 --> <div class=section cc_content_5
I'm using the .load() function to load a section of html that has some
I have a base.html which has a login section at the top of every
I have 11 checkboxes in my HTML form and already have a section in
I follow example from here using section listview http://lalit3686.blogspot.com/2012/05/sectionadapter.html But how can I implement
I have a website which slides to a section called blog in my HTML.

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.