holmedwa04 Posted September 18, 2006 Share Posted September 18, 2006 Hi,This is just a quicky, I am making a feedback form, and I have a comments box, beause it is a text area it has a scroll bar, and it looks really ugly, so can I get rid of it, and make it appear only when the users message is longer than the text area? Link to comment Share on other sites More sharing options...
aspnetguy Posted September 18, 2006 Share Posted September 18, 2006 You must be viewing it in IE, right? FirFox hides the scrollbars wutomatically until the content is big enough to need them. In IE it shows regardless. You could set all of the scrollbar attributes in CSS to be the color white but then you would lose the scrollbar all together. Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 18, 2006 Share Posted September 18, 2006 Would overflow:auto work? Or does that only work with divs that have a fixed height? Link to comment Share on other sites More sharing options...
aspnetguy Posted September 18, 2006 Share Posted September 18, 2006 Would overflow:auto work? Or does that only work with divs that have a fixed height?I don't think. Textareas are sort of overflow:auto by default. Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 18, 2006 Share Posted September 18, 2006 Hrmm. yah that makes sense, nevermind, lol. Link to comment Share on other sites More sharing options...
holmedwa04 Posted September 18, 2006 Author Share Posted September 18, 2006 Well, I have already set my scroll bar colours, so can I just change the ones for my text area? But then, it would make it look like the text doesn't goto the end. Link to comment Share on other sites More sharing options...
aspnetguy Posted September 18, 2006 Share Posted September 18, 2006 You have an IE issues...not really anyway around it. there might be a way to do this with javascript. Set the scrollbar colors to white by default then use javascript to detect when the textarea starts scrolling and then change the scrollbar colors to be visible again but that is a lot of work just for that. Link to comment Share on other sites More sharing options...
holmedwa04 Posted September 18, 2006 Author Share Posted September 18, 2006 So do you think I should just leave them, its just that when I changed my scroll bar colours, I noticed for the first time that the TEXT AREAS had them!...And I thought they looked a bit silly, but even so, you cant have colour scroll bars on Fire Fox.I think I will just leave them, I just thought maybe, like with frames, you could set no scroll bar. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now