Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Styling a label?

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

10+ Year Member

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 Sep 8, 2009 (gmt 0)

10+ Year Member

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.