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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:15:00+00:00 2026-05-26T11:15:00+00:00

I am developing an app where users can choose the URL of their profile,

  • 0

I am developing an app where users can choose the URL of their profile, ala facebook.com/name. Everything worked out fine, except I’m having styling issues adding a static set of text inside the input, to help convey the message of having your own URL.

Here’s what I want the input to look like when the user is visiting the page:
enter image description here

And here’s what I want it to look like when they add their own input:
enter image description here

Half of this problem is easy, I can just set a large left-padding to the input, get it to display hover effects regardless of where the mouse is and place the input accordingly. But the issue is getting the text into the input line without breaking the styling around it (and preventing the user from being able to select the static text, so that even clicking the static text will “focus” the input field behind it).

I’d really prefer to use pure HTML/CSS, but could use Javascript if it’s a must.

Here’s where I am now, the goal is to bring the “www.website.com” text into the input field without breaking the styling of the textarea to follow: http://jsfiddle.net/rUkS8/1/

Thanks and sorry for such a long description!

  • 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-26T11:15:00+00:00Added an answer on May 26, 2026 at 11:15 am

    Why not bypass the problem and simply have that static text outside of the input?

    www.website.com/<input type="text" name="url" />
    

    This degrades nicely in older/brain dead browsers, works when javascript is disabled, and makes it obvious where the seperate of inputs is.

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

Sidebar

Related Questions

I have an app that I'm developing, in it users can choose a name
Im developoing an app for the iPhone where users can chat using their facebook
I'm developing a commenting application where users can comment with their Facebook or Twitter
I'm developing a web app where users can get coupons and similar things. I
I am developing a BlackBerry app in which users can purchase virtual goods (such
I'm currently developing a facebook app that needs access to a users photos. It
I am developing a Windows Phone app where users can update a list. Each
I'm developing an app through which users can send email messages with attachments. Both
I'm developing an app which will have a central database users can add entries
I am developing an app where users can upload a csv file to documents

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.