• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

textfields too long

Hi,

In test view on my desktop the formfields display withing the mobile phone screen of 480px.
However on the phone itself the text fields dont display within 480px for some odd reason.
The below code doesnt work on the device but does work on a desktop?

http://www.mymrt.net/cert1/home2.php


   <h4>Activity One</h4>
	<form action='saveRecord.php' method='post'>
	<b>Question a) What does a CPU stand for</b><br>
	<textarea class="textareawidth" rows='1' cols=50 name='q1' value=><?php echo $q1;  ?></textarea><br>
 
@media screen and (max-width: 480px) {
	
	 
	  .textareawidth {width:300px;}

Open in new window

0
jagguy
Asked:
jagguy
  • 2
1 Solution
 
jagguyAuthor Commented:
it actually works when i set the  .textareawidth {width:250px;} which doesnt make sense as the screen is 480px wide
0
 
Julian HansenCommented:
And if you remove the cols="50" ?

Not sure but that might be interpreted on the device as overriding the CSS setting.
0
 
jagguyAuthor Commented:
ok
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now