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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:31:10+00:00 2026-05-30T21:31:10+00:00

In a <div> there are two <span> . One pulls in an image of

  • 0

In a <div> there are two <span>. One pulls in an image of a QR code from

http://chart.apis.google.com

The other <span> next to it is just text with a link to download the QR. The designer had envisioned that the DOWNLOAD link would align to the bottom of the image, the challenge is that the image has an unknown border. I understand that this will mean some trial and error to get it visually right.

I tried adding padding and margins but then it sends both <span> a bit higher. I added a red outline for visual reference

.qr_image { position:left; outline: 1px solid red ; }
.qr_download { color: #1d8cd2; text-decoration: underline; outline: 1px solid red; }
  • 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-30T21:31:11+00:00Added an answer on May 30, 2026 at 9:31 pm

    By default an image will align with a text on the bottom border in the HTML specs.

    <span><img src="http://img_url" /></span>
    <span>text</span>
    

    Should produce an image with a piece of text to its immediate right with bottom aligned. Isn’t this what you wanted?

    Since I cannot see your example, I’m assuming that you are talking about having a CSS border on the image? So

    <span><img src="http://img_url" style="border: 4px solid black" /></span>
    <span>text</span>
    

    But the text would still be aligned to the bottom of the image with the border. If this is not what you are asking, could you give a more specific example?

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

Sidebar

Related Questions

I'm trying to use jquery tabs, i got the code from the site: http://docs.jquery.com/UI/Tabs
one <div id=2 class=h>two</div> <div id=3 class=h>three</div> <div id=4 class=h>4</div> <div id=5 class=h>5</div> When
If i have the following markup; <div id=container> <div id=box> <div id='sameHeight'>One<br>two<br>three</div> <div id='sameHeight'>four</div>
I have a container (div) with a background image. In this div there is
There is div named dvUsers. there is an anchor tag lnkUsers. When one clicks
the html structure: <div id=test> <form> <input type=radio name=content class=s_code checked=checked /><span>code</span> <input type=radio
I've got a following problem. So there are two lists - each one displays
I have a page which essentially looks like this: <div id=foo> <a>One</a>, <a>Two</a>, <a>Three</a>,
Is there any way, how I can to identify two xpath values in one.
How to center a div across all browsers and behind this div there should

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.