Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

<INPUT> and <SPAN>

Featured Replies

Today I was looking at the front page of http://twitter.com/ (without being logged in) and I really liked the simplistic login style they had but I am not quite sure how to code it for myself.

 

At first, I thought they had somehow managed to have plain text as the background for the input fields but noticed in their HTML code that they simply had something to the effect of the following html for their forums:

 

<span>Enter email</span>
<input type="text" value="" />

<span>Enter password:</span>
<input type="password" value="" />

 

Their html had a bit of extra's, like some css classes and such, but that was the core of it. This may seem like a stupid question, but I'm just wondering how they managed to have the values with the span overlap the inputs, and what possible jQuery or Javascript they may have used to make it seemingly disappear as soon as you begin entering text (not on focus).

 

This seems kinda basic but for some reason I can't figure it out. Hopefully people thinking more clearly than myself may be able to help. Thank you in advance for any contributions you may be able to make to helping me solve this issue!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.