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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:02:07+00:00 2026-06-01T12:02:07+00:00

I want to create span exactly like an input textbox , but inside the

  • 0

I want to create span exactly like an input textbox , but inside the span, it is a href link .

Please advise.

  • 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-01T12:02:08+00:00Added an answer on June 1, 2026 at 12:02 pm

    I’m not sure why you would want to “deceive” a user by making an a tag look like an input, but I will trust your reasoning is honorable. Mr Lister had a good comment that different browsers render input differently. That being so, I think your best bet at getting something that works fairly well cross-browser is something like this (the first in the example is a link, the second a real input to compare).

    I only tested this in FF. I set the opacity of the text in the a through the rgba to hide it but keep it for search engine purposes (so you don’t just have an empty a tag as far as the search engines are concerned). In using a “real” input to achieve the look, it adds non-semantic html, but it does allow for better cross-browser rendering of the box.

    HTML

    <span class="fakeInput">
       <input type="text" value="Your link"/>
       <a href="#">Your link</a>
    </span>
    

    CSS

    .fakeInput {
        position: relative;
        display: inline-block;
        margin: 1px;
    }
    
    .fakeInput input {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 0;
        width: 100px;
    }
    
    .fakeInput a {
        position: relative;
        display: block;
        width: 100px;
        z-index: 1;
        text-decoration: none;
        color: rgba(256, 256, 256, 0); /*hide anchor text, let input show */
        border: 1px solid transparent;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a span inside of a link (a href) tag, I
I want to create a hover tooltip which displays what's inside the span and
I want to create a handlebars helper that works like {{#each}} but gives me
I want to create conditional comments in XSLT. But when I use this: <!--
I want to create a textbox, which can be edited and shows the text
I currently have a tab image that I want to re-create in CSS, but
I want to create xpath query to get url from link1 and link 2
I want to create something like a recorder whichs tracks all actions of a
<div style=width:500px;> <p>To create not a block, but an inline code span,use backticks:Press the
I want to create an input box with a submit button to the right.

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.