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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:29:58+00:00 2026-06-17T14:29:58+00:00

I need to show a picture and text next to it, but the problem

  • 0

I need to show a picture and text next to it, but the problem is that the picture is too big and I need to reduce it by setting custom width and height.

CSS:

#list{
    max-height:200px;
    overflow-y:auto;
    padding:5px;
    /*display: none;*/
}

.info{
    border: 1px dashed #CCCCCC;
    margin-bottom: 5px;
    padding:0 5px;
    overflow: hidden;
    cursor: pointer;
}

.info .image{
    width:20%;
    height:30%;
    display:inline-block;
    margin-right:20px
}

.info .image img{
    width: 100%;
    height: 100%;
}

.info .text_data{
    display: inline-block;
}

HTML:

<div id="list" class="select_block">
    <div class="info">
        <div class="image">
            <img src="https://dl.dropbox.com/u/14396564/screens/screenshot.jpg">
        </div>
        <div class="text_data">
            <p>
                Name: Some name
                <br />
                Start: 2012-05-17 04:43:40
                <br />
                End: 2012-05-17 04:43:40
            </p>
        </div>
    </div>
</div>

http://jsfiddle.net/nonamez/e5hyX/

In Firefox it’s like
firefox

In Safari (probably in chrome is the same)
safari

So I need something like this (hover on the picture shows it in full size, so I only need a list of previews, but with percentage).

need

  • 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-17T14:29:59+00:00Added an answer on June 17, 2026 at 2:29 pm

    If you only set the height or the width, the browser will scale the image in proportion to its natural dimensions. If you need to make sure that it stays inside a given area, make sure you use the max-* properties. For example:

    width:50%;
    max-width:100px;
    max-height:80px;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need show a notication modal window.. But since its a fluid layout the
I need to show for every link, dynamically some text with Java-Script (jQuery). The
I need to show a div positioned relative to where the link is that
I have picture in my dropbox, which i need to show in Uitable view.
me again... I need show 10 or 20 or 50 results number of results
I need to show a form exactly in front of another form, this lead
I need to show a UIActionSheet on a popover and this popover has an
I need to show non available dates in different color based on the event
I need to show more than one report on a Page like Classic Report,
I need to show a form using a button, and hide it when the

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.