SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    setting form options <option> css

    hi all i have a form and just want to alter the single text fields, but when i add the css and run the page it applys the styles to my submit button, what can i do to the css to leave the submit alone and give it its onw values?

    thanks!

    Code:
    input {
    	padding-left: 5px;
    	height: 8px;	
    }
    whichs affects my submit

    abit of the form code:

    HTML Code:
    <p>
    <select name="category">
    <option value=""></option>
    <option value="enquires">Enquires</option>
    <option value="comments">Comments</option>
    <option value="advertise">Advertise</option>
    </select>&nbsp; Select Category!</p>
    <p>
    <input name="submit" type="submit" id="submit" value="Submit"> 
    </p>
    CHEERS!!!

  2. #2
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    option {
    	padding-left: 5px;
    	height: 8px;	
    }
    (?)

  3. #3
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry i should of shown this bit of code:

    HTML Code:
    <p>
        <input name="name" type="text" id="name" value="">
      &nbsp;* Name !</p>
      <p>
        <input name="email" type="text" id="email" value="">
     &nbsp;*  Email !</p>
    <p>
    <input name="submit" type="submit" id="submit" value="Submit"> 
    </p>
    thanks!!

  4. #4
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #mail, #email {
    	padding-left: 5px;
    	height: 8px;	
    }

  5. #5
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do u mean set a seperate id for these? were du get the mail from? or u just used the aproate name?

    thanks!

  6. #6
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got the ids from the code you posted.

  7. #7
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i c, but mail?

    thanks

  8. #8
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry. My mistake. I meant 'name'. (It's past 4am here - give me a break).

  9. #9
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol!! sorry must be that wine.. lol thanks!!

  10. #10
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just a quick question aswell u have html 4.01 below ur messages do u prefer this to xhtml 1.0? thanks again!!

  11. #11
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by computerbarry
    just a quick question aswell u have html 4.01 below ur messages do u prefer this to xhtml 1.0? thanks again!!
    I know this question wasn't meant for me, but I'll suggest you read the XHTML vs HTML FAQ by Tommy. The facts and differences are outlined there.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •