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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:00:39+00:00 2026-06-15T01:00:39+00:00

My knowledge of css and html is fairly limited. I am trying to make

  • 0

My knowledge of css and html is fairly limited. I am trying to make tiles that contain an image and one line of text, and these tiles should go next to each other, then continue on the next line if the screen’s width has been used.

Example of what I need

This image shows what I need. The blue areas are images, the text below it is horizontally aligned center. The tiles are 160px wide, their height depends on how long the text is, but should be at least 150px. I know I have to work with divs, obviously, but I can’t really get any further than that.

  • 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-15T01:00:42+00:00Added an answer on June 15, 2026 at 1:00 am

    HTML

        <div><img src=".jpg" width="110" />text</div>
          .
          .
          .
         <div><img src=".jpg" width="110" />text</div>
    

    CSS

    div{
        width:160px;
        border:1px solid grey;
        text-align:center;
        min-height:150px;
        height:auto;
        vertical-align:middle;
        padding:8px;
        float:left
    }
    img{display:block; margin:0 auto}
    

    DEMO

    Resize the result part to see the effect

    min-height:150px make default height as 150px

    height:auto helps to extend the div based on the content.

    float:left makes divs to sit next to each other.

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

Sidebar

Related Questions

I'm trying to write a program that will take an HTML file and make
I'm trying to apply my poor knowledge of CSS to a little toy project
How can I make a SVG appear reliably without scrollbars in HTML? Something that
Is knowledge of HTML beyond the basics a prerequisite for learning CSS? I am
i'm new to drupal, but i have a good knowledge about php, and html/css.
My knowledge of css is very limited. In a larger context, I need to
I am trying out knockoutjs at the moment, with my fairly rudimentary knowledge of
Can anyone please help. I am refreshing my knowledge of HTML and CSS (its
I know XHTML CSS but PHP knowledge is not much and i want to
I would like to build a mobile app, brewed from nothing more but html/css

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.