Hidden fields have some width?

Discussion in 'CSS' started by mahmood, Apr 14, 2006.

  1. #1
    Seems that hidden fields take some space. I tried setting width and margin to 0px but it didn't help.

    Any idea?
     
    mahmood, Apr 14, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Have you tried setting padding to 0px as well?

    Normally I just put this in my CSS file and I've never noticed a problem with hidden fields.

    form {
    	padding: 0px;
    	margin: 0px;
    }
    Code (markup):
     
    Slapyo, Apr 15, 2006 IP
  3. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Hidden fields are hidden :) They are not rendered at all, they are used solely when submitting the form.

    The space must be coming from margin/padding on the surrounding or nearby elements.

    - P
     
    penagate, Apr 16, 2006 IP