Welcome to WebmasterWorld Guest from 54.224.50.28

Forum Moderators: not2easy

Message Too Old, No Replies

Styling a label?

     
10:11 am on Sep 8, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 9, 2003
posts:503
votes: 0


I actually need some help...eek :-/

I have a form I'm styling which is a set height (28px) and I cannot override this.

Inside the input box is a value. The value shows text inside the input box. What I need is a way to style the value text so it aligns evenly with the input box. It is currently top left and I would like it middle left with some left padding.

The basic code is:
<input name="WebmasterWorld" type="text" value="Enter your article search here" />

Is there a way of styling just the value?

10:14 am on Sept 8, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 9, 2003
posts:503
votes: 0


No matter, figured out the answer :-)

You have to compensate for the padding and borders by reducing the width and height of the inputs to reflect the dimensions given. Do this and it will all align.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members