atrum Posted July 2, 2009 Share Posted July 2, 2009 Hello all. I just had a quick css form question. I am trying to get the textarea's rows, and cols attribute set in css. So for example how can I do this in CSS. <textarea rows="20" cols="20"></textarea> So far, I can set the width and height with not problem, but the text area won't apply the multiline attribute with out having the rows attribute applied in the html. Any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
haku Posted July 2, 2009 Share Posted July 2, 2009 Why don't you want to set it in the HTML? For XHTML (and possible HTML as well) it's invalid to NOT set it. Rows and columns are required attributes. Quote Link to comment Share on other sites More sharing options...
atrum Posted July 2, 2009 Author Share Posted July 2, 2009 Ok, was just checking if there was a way to do it in css. Css just makes things so much easier to edit later on, but if that's the only way then hell looks like im stuck. Thanks for the assist. Quote Link to comment Share on other sites More sharing options...
haku Posted July 2, 2009 Share Posted July 2, 2009 You can still set a width and a height for the textarea in CSS, but the rows and columns are required before that. The width and height in CSS will take precedence though. ??? Quote Link to comment Share on other sites More sharing options...
atrum Posted July 2, 2009 Author Share Posted July 2, 2009 Ok, I have one more question about the textarea, specifically with firefox. Go to tools.exiled-alliance.com/calltool.dev/ The textarea on the right refuses to automatically wordwrap, and just keeps scrolling to the right. If you check that site in IE it word wraps just fine. Any Insight on this, or what I could be doing wrong? Quote Link to comment Share on other sites More sharing options...
haku Posted July 2, 2009 Share Posted July 2, 2009 Wraps just fine for me. Firefox 3.0.11 Quote Link to comment Share on other sites More sharing options...
atrum Posted July 2, 2009 Author Share Posted July 2, 2009 Ugg!!. Little things like this bug the hell out of me. I am using the same version of FF. Guess i'll try disabling all my addons, and see if that works. Thanks again for the assist. Quote Link to comment Share on other sites More sharing options...
haku Posted July 2, 2009 Share Posted July 2, 2009 You aren't one of those guys that is testing it by putting in a 50 character long word are you? That will break it, but there aren't any 50 character words in English. If your input can handle 12 characters, you are pretty much ok. Quote Link to comment Share on other sites More sharing options...
atrum Posted July 2, 2009 Author Share Posted July 2, 2009 Guess I am just spoiled by IE and its constant bending of the rules haha. I didn't know it was supposed to work like that. Which is why I am trying to get things working in FF. Quote Link to comment Share on other sites More sharing options...
haku Posted July 2, 2009 Share Posted July 2, 2009 I personally code my site entirely in FF, then when I'm done, I test it in other browsers. For the most part, I only really need to fix it for IE6, sometimes minor fixes for IE7. Quote Link to comment Share on other sites More sharing options...
atrum Posted July 2, 2009 Author Share Posted July 2, 2009 I am starting to see how important it really is to get things working in FF first. I am still fairly novice when it comes to browser support. normally I just did what ever the hell worked, and didn't bother to see if it worked in all browsers let alone FF. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.