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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:30:14+00:00 2026-05-13T13:30:14+00:00

I have the html page where textual article title is followed by an image.

  • 0

I have the html page where textual article title is followed by an image. When the title is big enough some part of it goes to newline together with the image. But sometimes the textual title fits the page, but only without image, so the image goes to newline. How to glue the image with the last word of the title, so that image will go to the new line only with the part of text?

The current HTML markup:

 <div class="title">
<a href="link to the article">Article title goes here...</a><img src="/pics/.gif"/>

  • 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-13T13:30:15+00:00Added an answer on May 13, 2026 at 1:30 pm

    Adding a non-breaking space between the img and the anchor tag should keep the browser from splitting them on separate lines. That will glue the image to the whole link, however.

    To get the image glued to only the last work of the link, you can either take the last word out of the link, or put the image in, and then the same non-breaking space between the last word and the image will give you the layout you want.

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

Sidebar

Related Questions

I have an HTML page with some textual spans marked up something like this:
I have HTML page with some HTML element with ID=logo . I need to
How to find all files in directory? I have HTML page in some directory.
I have an HTML page with a pink background image. I want to define
I have an html page that's built dynamically. Some of the images come from
I have html page with frame where I want to show some web pages/sites.
I have html page which has following line with some html entities like &#146;.
I have a HTML page with which I want to do some client side
I have HTML page where windows media player is embedded. It works very well
I have a HTML page, with html-mode enabled. I call function sgml-validate to check

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.