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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:38:52+00:00 2026-06-02T17:38:52+00:00

I have a registration form if username does not exist in database then it

  • 0

I have a registration form if username does not exist in database then it shows an image beside my text box(thick mark image) and along with that i want to show my text that

“this user name already exist”

$("#usr_verify").css({ "background-image": "url('<?php echo base_url();?>images/no.png')" });
$("#usr_verify2").text("it does not exist ::");

these two selectors are sending my text and my image in two different spans one with id usr_verify and other with the id usr_verify2

now both the span tags are in one paragraph tag. Now my error is that the text is overlapping the image, text appears onto that image. Any idea where i have gone wrong ?

  • 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-02T17:38:57+00:00Added an answer on June 2, 2026 at 5:38 pm

    It’s difficult to tell exactly what’s going on without looking at your markup, and perhaps a JsFiddle, but here’s a stab at it:

    Spans are inline elements, and as such, can’t be given an explicit height and width. Background images are not image blocks, that assume the space required to show the entire image, but really just fill whatever area is granted them.

    Try using an img instead of a span, or try to give the span display: inline-block so that you can set its width and height to whatever the image requires.

    Edit:

    A JsFiddle showing what I mean…

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

Sidebar

Related Questions

I have registration form, which is saving user info in 'tblusers' -> 'Username', but
I have a registration form with several validator controls. I am checingk the username
i have a problem with this registration form, im checking the password and username,
In my web application i have registration form, when user register i want to
I have a registration form with common registration fields and two multiple selection Lists
I have a registration form leveraging xVal to handle all validation on the form.
I have a registration form where this CSS rules apply. when user submits with
I have a registration form. When I hit the Submit button it should check
I have a registration form on my layout grid, made out of a stackPanel.
i have a registration form which contains a postalcode and a country drop down

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.