SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member yl88's Avatar
    Join Date
    Sep 2005
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to CSS an input box with the specified code rather than the default one?

    Hi,

    in my CSS file, i have the following codes.
    Code:
    input, textarea {
    	border: 1px solid #004C75;
    	background-color: #F4F4F4;
    	margin: 0px;
    	padding: 0px;
    	font-family: Tahoma;
    	font-size: 11px;
    }
    
    abc.input {
    	font-size: 10px;
    }
    My question is when I include the class 'abc' into a specified input box, it doesn't work, it's still using the default style.

    Any help?

    Thanks!
    Joke Demo -- Over 9,000 Jokes!
    Idol Directory - Run a webhost? Submit it here!
    ForumURL.com - Forum Directory. Over 2000 Links Added.
    HostAUS.com - For Sale! PM me for details.

  2. #2
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Plano
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    with correct syntax, your CSS tags will begin like the following:

    input.abc


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
  •