SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    731
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Can TextArea Be Used?

    Hi,

    I am trying to create an email form. I have 'input' for the name and email address and I am using 'textarea' for the message which is designed to be taller. However the position and border colour of the textarea appears different than the input yet the code is same.

    Can textarea be using. The textarea border for ddd is much darker.


    Code:
    #contact-area input{
    	padding: 5px;
    	width: 90%;
    	font-family: Helvetica, sans-serif;
    	font-size: 1.4em;
    	border: 2px solid #ddd;
    }
    
    
    #contact-area textarea {
    	padding: 5px;
    	width: 90%;
    	font-family: Helvetica, sans-serif;
    	font-size: 1.4em;
    	height: 125px;
    	border: 2px solid #ddd;
    }
    
    #contact-area input:focus {
    	border: 2px solid #6696F5;
    }
    
    #contact-area textarea:focus{
    	border: 2px solid #6696F5;
    }

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    The border color should be the same with that code, so there may be some other CSS involved. The position and width depends on your CSS—not enough of which you've shown. But setting width="90%" can sometimes produce different results on a text area and an input.


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
  •