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

Scroll bars - CSS - Select boxes

Status
Not open for further replies.

GaryGrif

Technical User
Jan 30, 2002
1
GB
Hi, Just found Tek-Tips trying to solve a problem. I wonder. Please let me outline it as follows.

If I construct a SELECT box using basic HTML the box sizes according to the content held on each line and does not wrap.

I now build my SELECT box with a CSS as follows

select {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
background-color: #FFFFEA;
width: 130px;
height: 150px;
border: 1px #000000 solid;
clip: auto;
}

If any line in my box now exceeds the 'width: 130px' I cannot see or read the line with M$IExp 6.

Netscape on the other hand presents a horizontal scrollbar as well as the regular vertical one.

If I can't have the horizontal scrolbar, I'd be quite happy with a OnFocus='ShowLine()' funtion of some sort that makes the text visible as a complete 'floating line'

Does anyone know of a solution or workaround here either via the use of CSS or Javascript. Thanks in anticipation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top