SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot LORDGreg's Avatar
    Join Date
    May 2001
    Location
    Ptuj, Slovenia
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well.. i' making a button, but want to look diferent than default system button,.. so i decided to use a CSS style on button:

    INPUT.button {
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    font-size: 8pt;
    border-left: 2 solid #999999;
    border-top: 2 solid #999999;
    border-right: 2 solid #999999;
    border-bottom: 2 solid #999999;
    }

    now, the point is.. i want to have the same look of button when i don't click on any of FORM things and when i write something in input text... (same border, and so on) how to do that?

    and when i will clik on that button, the border will change,...

    please help soon,

    thanks,
    lordgreg, sloreactor.com
    http://www.sloreactor.com/

  2. #2
    SitePoint Zealot LORDGreg's Avatar
    Join Date
    May 2001
    Location
    Ptuj, Slovenia
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay folx.. i figured it out...

    looks like this:

    < input type="text" onFocus="this.style.background='blue'"onBlur="this.style.background='red'" >

    well, looks like this..
    lordgreg, sloreactor.com
    http://www.sloreactor.com/

  3. #3
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should put <form> tags around any form elements...for the sake of us Mozilla users.

  4. #4
    PHP Developer W1LL's Avatar
    Join Date
    Apr 2001
    Location
    Leicester, UK
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Going back to the original post... you can just put:

    border: 2px solid #999999;

    instead of all that border-left, border-right stuff.
    Anything that saves space is always a good thing

    - Will

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could even do border: 2px solid #999;


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
  •