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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:10:18+00:00 2026-05-22T20:10:18+00:00

code: <a href=…><img src=..’ /><span>..</span></a> works fine in all cases, but <a href=…> <img

  • 0

code:

<a href="..."><img src="..' /><span>..</span></a>

works fine in all cases, but

<a href="...">
  <img src="..." />
  <span>..</span>
</a>

doesn’t work in firefox, even in the latest FF. Seems it’s default behavior in IE & chrome to ignore(collpase) the extra white spaces and line feeds. But it’s not the case in FF.

Is there any way to force firefox to ignore the white spaces? Thanks in advance.

  • 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-22T20:10:19+00:00Added an answer on May 22, 2026 at 8:10 pm

    You can not do that. You’ll have to either change your markup or the CSS styles so that the image and span are correctly aligned in all browsers.

    In case the image is the same for every link, another technique is to change the CSS style for the <a> tag, so that the image is set als left-aligned, unrepeated background image and a left padding pushes the text to the right so that the image is visible.

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

Sidebar

Related Questions

I have some simple code like: $('#modal-buttons [href*=close]').bind('click.modalClose',function(){ app().modal('close') }); But let's say I
i have code that sets window.location.href = [someurl] but i want to have it
Why doesn't the following jQuery code work? $(function() { var regex = /\?fb=[0-9]+/g; var
The following code this not work, because attr is undefined: $(#foo a[href]).each(function() { this.attr(href,
This code loads the href into a new window and into self, why is
i have code, which does something like this: item.previous.parent.parent.aTag['href'] now i would like to
The below code works as far as I can tell except for the var
I've got some code that looks similar to this: <h:outputLink value=#{bean.url} /> But the
I have this var in my code: var href = $(this).attr('href'), str = href.split('/').slice(-2,-1)[0];
I have this code: var guestid = $(this).attr('href'); This gets me the current url,

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.