Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Print Out (HTML Controls)

Status
Not open for further replies.

Arzo2000

Programmer
Jul 7, 2005
12
CA
I have been looking into this for a long time now. Whenever I want to print out an HTML form, I want only the data entered into the textboxes and textareas/dropdowns to be visible instead of having it wrapped up in one of those controls. Is there a way to get ride of the HTML controls and only view the data inside them using CSS? If not, is there a way to do it through javascripts?

Thanks in advance guys.
 
Not really, but you can style the controls via css to make them appear as if they don't look like form controls but regular free flow text:
Code:
input, textarea {
  border: none;
  background: transparent;
  font-family: serif;
  overflow: visible;
}
This should make form controls appear invisible and text still there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top