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 Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/ 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; } Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-536467 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 Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-536472 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. Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-536635 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 Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-537315 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"> Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-537318 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> Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-537674 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. Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-538060 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 Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-538186 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. Link to comment https://forums.phpfreaks.com/topic/104776-realy-problem-i-am-having-about-text-field/#findComment-538196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.