Padding around form fields

Discussion in 'HTML' started by Neil, Feb 23, 2005.

  1. Neil

    Neil Guest

    Hi, using css is it possible to add white space above and below a form
    field like say, a textarea or a text input field? If so, could you
    perhaps point me in the right direction?

    Thanks,
    Neil
     
    Neil, Feb 23, 2005
    #1
    1. Advertising

  2. Neil

    Steve Pugh Guest

    (Neil) wrote:

    >Hi, using css is it possible to add white space above and below a form
    >field like say, a textarea or a text input field? If so, could you
    >perhaps point me in the right direction?


    padding would be inside the form field - between the border and the
    content, as with all other HTML elements.
    margin would be outside the border.

    But browsers vary in how much they apply styles to form elements so
    experiment.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Feb 23, 2005
    #2
    1. Advertising

  3. Neil

    Neil Guest

    Yup, that's what I thought.

    Thanks Steve

    Neil
     
    Neil, Feb 23, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    7
    Views:
    5,674
    Joe Smith
    Jul 22, 2004
  2. Thor W Hammer
    Replies:
    5
    Views:
    2,779
    Erik Funkenbusch
    Nov 10, 2005
  3. Hans Nieser
    Replies:
    4
    Views:
    1,493
    Hans Nieser
    Sep 16, 2004
  4. Piet
    Replies:
    0
    Views:
    557
  5. Network/Software Buyer
    Replies:
    0
    Views:
    422
    Network/Software Buyer
    May 23, 2010
Loading...

Share This Page