#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    SPAIN
    Posts
    47
    Rep Power
    15
    Is there possible (using style sheets or similar) to make transparent a form element (such as textboxs, lists, ...) so the background image could be seen trought it?

    Thanks in advance!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    16
    No.
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    errrrr - yes - in IE

    in style sheet - try something like
    TEXTAREA {
    width:600;height:120;
    font: 8pt Verdana;
    background:white url(images/yourimages.gif);
    margin:5px;
    border:none;
    overflow:scroll;
    }

    this will not work with all form elements - and will (as usual) not work in Netscape - but fine in IE 4&5 -
    trap to avoid - you may need to do 2 style sheets 1 for NS 1 for IE and then do a bit of browser sniffing and doc.write the CSS dependant on the browser - I posted the textarea example as it gives the greatest problems in netscape - but you can use similar code for input , select etc

    Regards Simon


    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Replies: 1
    Last Post: November 4th, 2003, 04:43 PM
  2. Can I disable form elements using JavaScript
    By adamdan in forum JavaScript Development
    Replies: 1
    Last Post: September 4th, 2003, 11:37 AM
  3. Help getting form elements
    By etones in forum PHP Development
    Replies: 9
    Last Post: December 23rd, 2002, 01:42 PM
  4. Layers and form elements not showing ($%&*# Netscape!)
    By VincentKyle in forum HTML Programming
    Replies: 8
    Last Post: June 4th, 2001, 02:23 PM
  5. Replies: 7
    Last Post: May 31st, 2001, 10:16 PM

IMN logo majestic logo threadwatch logo seochat tools logo