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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help on printing a dropdownlist

Status
Not open for further replies.

ElJoker

Programmer
Jun 29, 2005
1
CA
Hi all,
here's my problem I need to print a web page ASP.NET form with some CSS. Everything seems to work properly except for the printing of my dropdownlist. I use @media screen for the screen portion and @media print for the printer side.

For the printing of the dropdownlist I set the border and the overflow properties to zero, but the dropdownlist button still shows.

Can anyone tell me how to make this button dissapear?
 
Try:
Code:
display: none;
or if you still want the placeholder for the dropdown
Code:
visibility: hidden;
 
As I understand the question, ElJoker needs to print the text of the list, but not the button. This means that hiding it altogether is not an option. I'm afraid I don't have a solution; I'm actually in the same boat. How can the button of a <select> be hidden, but not the text?
 
There's a button on the side, used to open it. I don't mean a <button> element.
 
In that case you'll have to hide the select list and create your own list to show instead of it for printing.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Or you could use size attribute on it. That gets rid of the little annoying pointy down button.
 
Do you mean font-size? If so, it does that, but it also removes the text.
 
No, he meant size as in the number of items displayed. It's an attribute that isn't used very often, but can be.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
W3 said:
size = number [CN]
If a SELECT element is presented as a scrolled list box, this attribute specifies the number of rows in the list that should be visible at the same time. Visual user agents are not required to present a SELECT element as a list box; they may use any other mechanism, such as a drop-down menu.
This is what I refer to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top