Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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