SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict inverse.chi's Avatar
    Join Date
    May 2006
    Location
    Oxford, UK | Durham, UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    input styling type image

    right i'll try and describe my requirements as best i can i have some:

    <input type="image"... />

    and also some normal text inputs, i want to apply a witdth of say 100px to the inputs which are type text.

    i was thinking of just using:

    input.text {
    /* styles here */
    }

    but that doesn't work - is there any way of just applying styles to a certain type of inputs.

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    If you use a class or id with the input you should be able to control the width of them with css:
    Code:
    <input type="text" class="textfield" ...
    then
    Code:
    input.textfield {
      width:  100px; 
    }
    or if you want to control all the inputs through out the site you do not even need the class.

  3. #3
    SitePoint Addict inverse.chi's Avatar
    Join Date
    May 2006
    Location
    Oxford, UK | Durham, UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - that is one method of doing it, just need to go around changing all the input's which types are images to that now...


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
  •