3 replies [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

Hi, anyone have any ideas how I can style a textbox whereby from the starting of the cursor, by default will have 1 spacing.

For example,

of course, I can just put it as the value, but I do not want others to have the ability to delete away the spacing. I've seen someone done it before but during that time, I didn't need it. Hope anyone could help. Thanks in advanced.

Sven
Sven's picture
Offline
Enthusiast
Brisbane, Australia
Last seen: 7 years 25 weeks ago
Brisbane, Australia
Timezone: GMT+10
Joined: 2003-03-12
Posts: 166
Points: 0

Try padding-left

The padding-left style property should do what you're after; try something like this:

input { padding-left:5px; }

Anonymous
Anonymous's picture
Guru

Text Box

THANKS Sven!! Works great. oh man, I love this forum and the people here. I did register at first but the activation link was not mail to my yahoo mailbox. Wink

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 7 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5148
Points: 2746

register

Hi andy4,
Send me a personal message with your username and correct email address and I should be able to fix your registration details.