Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry How to make a input box invisible, but showing the text in it?

    I have a javascript that show different text to some pictures. But the text is showed in a input textbox with border that I can't make invisible. How to make the hole box invisible but showing the text?!?!?!?

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    411
    Thanks
    2
    Thanked 32 Times in 32 Posts
    You don't need script, just style the HTML:

    <input type="text" style="background-color:transparent;border:0px solid white;">
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    New Coder
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Another way is using CSS:

    Code:
    INPUT {
    	color: #000066;
    	font : normal 10pt Verdana, Helvetica, Arial;
    	background : none;
    	border : none;
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •