yanivkalfa Posted May 8, 2008 Share Posted May 8, 2008 Well my question is how to set the size of a Text field with CSS i cant manage to do so allready tryed like 200000 times. please help Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted May 9, 2008 Share Posted May 9, 2008 <input type="text" name="first_name" class="log_field" /> log_field { width: 150px; } Quote Link to comment Share on other sites More sharing options...
yanivkalfa Posted May 9, 2008 Author Share Posted May 9, 2008 no mate when i brows it i still can edit it trhough the browser i want it to simply show a plan text that can be scrolled without the ability to edit it (user edit i mean) thanks anyways though mate Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 9, 2008 Share Posted May 9, 2008 you want a textarea... <textarea id="fieldname" rows="5" cols="30"></textarea> you can use css to give it width and height but rows and cols are needed for validation. Quote Link to comment Share on other sites More sharing options...
yanivkalfa Posted May 10, 2008 Author Share Posted May 10, 2008 you dont get my question i dont want to know how to resize the text area i just want the textarea to not be editable by people . as simple as that then somone visit the site he see the text in the textarea but he cant edit it Quote Link to comment Share on other sites More sharing options...
peranha Posted May 10, 2008 Share Posted May 10, 2008 READONLY = "TRUE" Add that to the text area, or text field <textarea READONLY = "TRUE"> Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted May 10, 2008 Share Posted May 10, 2008 READONLY = "TRUE" Add that to the text area, or text field <textarea READONLY = "TRUE"> Incorrect. Instead do this: <textarea DISABLED></textarea> Quote Link to comment Share on other sites More sharing options...
peranha Posted May 11, 2008 Share Posted May 11, 2008 READONLY = "TRUE" Add that to the text area, or text field <textarea READONLY = "TRUE"> Incorrect. Instead do this: <textarea DISABLED></textarea> What is wrong with that, it works fine and it validates with w3c, after all that is where I got if from. Just asking, not trying to get into an argument. Quote Link to comment Share on other sites More sharing options...
yanivkalfa Posted May 11, 2008 Author Share Posted May 11, 2008 thanks alot mates i thinks i got it now Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted May 11, 2008 Share Posted May 11, 2008 Incorrect. Instead do this: <textarea DISABLED></textarea> If you want to disable part of a form using valid (x)html you use: <input disabled="disabled" type="text" value="" /> Readonly is different to disabled. 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.