homepage Welcome to WebmasterWorld Guest from 54.226.180.223
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Styling a label?
simonuk




msg:3985915
 10:11 am on Sep 8, 2009 (gmt 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?

 

simonuk




msg:3985916
 10:14 am on Sep 8, 2009 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved