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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:07:27+00:00 2026-05-15T17:07:27+00:00

I want to create a fixed layout that displays some images. for example, a

  • 0

I want to create a fixed layout that displays some images. for example, a “table” of 3 images in a row and 3 images in a column.
Also i need that every li conatins some fixed width and height and the image centered and alignet to top.

So i’ve thinked in something like this:

<ul>
<li><img /></li>
<li><img /></li>
<li><img /></li>
</ul>
<ul>
<li><img /></li>
<li><img /></li>
<li><img /></li>
</ul>
<ul>
<li><img /></li>
<li><img /></li>
<li><img /></li>
</ul>

But i don’t know css, still i’ve created some like this but still doesn’t work…

ul {display: block; text-align: center; border:#666666 solid 1px; height: 150px; padding:0; margin:0;}
li { list-style:none; float:left; width: 150px; height: 150px; margin-bottom: 32px;}

Fixed version:

ul{ height: 180px; text-align:center;padding:0;}
li{list-style:none;padding:0;width: 25%;height: 180px;float: left; display:inline-block;}

Note: Only works for only one <ul> with many <li>, the columns are setted changing the width of the <li>. 25% means 4 columns, 33% = 3 columns, etc. Formula: 100/(desired columns).

  • 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-15T17:07:28+00:00Added an answer on May 15, 2026 at 5:07 pm

    I’ve made 3×3 box with list tag and uploaded here, hope it help you Sein.

    CSS:

    <style type="text/css">
        ul { list-style-type:none; margin:0px; padding:0px; overflow:hidden; }
        li { float:left; width:150px; height:150px; margin:2px; padding:3px; background:#CCCCCC; text-align:center; }
        li img { max-width:144px; }
    </style>
    

    HTML:

    <ul>
        <li><img src="" /></li>
        <li><img src="" /></li>
        <li><img src="" /></li>
    </ul>
    <ul>
        <li><img src="" /></li>
        <li><img src="" /></li>
        <li><img src="" /></li>
    </ul>
    <ul>
        <li><img src="" /></li>
        <li><img src="" /></li>
        <li><img src="" /></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a simple http proxy server that does some very basic
I want to create a dialog that contains some kind of text element (JLabel/JTextArea
I want to create a text box with a fixed width that will fit
I want to create a mutli dimensional array without a fixed size. I need
Every time that I want to do a Layout, I'm getting a black layout
I want to create fixed status bar in by web form to display various
I want to create a function that performs a function passed by parameter on
I have implemented some utility classes in Flex that I want to use in
I want to create a layout like this: On the top a TextView, after
I want to create UIBarButtonItems programmatically and place these fixed space items between buttons.

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.