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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:54:16+00:00 2026-05-25T17:54:16+00:00

Starting with the markup #row { } #label { float: left; width:100px } #image

  • 0

Starting with the markup

#row { }
#label { float: left; width:100px }
#image { float: left }

<div id="row">
    <div id="label">Label Here</div>
    <div id="image"><img src="http://placekitten.com/100"></div>
    <div id="image"><img src="http://placekitten.com/100"></div>
</div>

As shown here: http://jsfiddle.net/Hyx5n/

I would like to move the label down to the bottom edge of the images. So it looks like this:

mockup

I have tried putting “position: relative” in the container and “position absolute” in the label div. But then the images are no longer in the same row: http://jsfiddle.net/Hyx5n/1/

  • 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-25T17:54:17+00:00Added an answer on May 25, 2026 at 5:54 pm

    Try it like this: http://jsfiddle.net/uac3Z/

    Basically,

    <div id="row">
        <div id="label">Label Heere</div>
        <div id="images">
            <div class="image"><img src="http://placekitten.com/100"></div>
            <div class="image"><img src="http://placekitten.com/100"></div>
        </div>    
    </div>
    

    with

    #row { position:relative; float:left; }
    #label { position: absolute; bottom: 0; width:100px }
    .image { float: left }
    #images { margin-left: 110px }
    

    I made a div#images that encapsulates both other div.image’s. Then those div#row was set to float, having the text lying on the bottom. Hence, The div#label would appear above the image. In order to have the div#label on the left of the image, I made the div#images have a margin-left of 110px (as div#label would have 100px).

    Also note that your current div#image should be a class and not an id, because you use it more than once.

    Hope it helps 🙂

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

Sidebar

Related Questions

Starting from an Html input like this: <p> <a href=http://www.foo.com>this if foo</a> <a href=http://www.bar.com>this
I have the following HTML markup: <body> <div class=wrapper> <div class=head> <p class=title>title</p> <a
Starting with a bitmap image .. Is there a trivial way to do this
I am just starting to learn Silverlight, not too familiar with Markup languages, nor
I'm using this markup <label> Date <input type=text data-datepicker={maxDate: '+1d'} /></label> <label> Another date
Starting with 2005, VS started this behavior of when starting debugging session it spawns
Starting from ASP.NET MVC Preview 3, HTML.Button ( and other related HTML controls) are
Starting a new project and would like to use one of the MVC framworks.
Starting with the error: Error 81 The OutputPath property is not set for this
Starting with the following LINQ query: from a in things where a.Id == b.Id

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.