Solved

Why does my search box look different on phones and tablets?

Posted on 2014-01-08
7
185 Views
Last Modified: 2014-01-13
I just updated to from Bootstrap 2.3 to Bootstrap 3.0 to style my page.  Odd thing is happening,  the search box has really rounded corners when I open on a tablet or phone.  But, the box is square on a laptop.  Any ideas what is going on?

<input type="search" class="form-control search-width" auto-complete="true" placeholder="Search" ui-items="names" ui-update="filterItems" ng-model="searchText">

Open in new window

0
Comment
Question by:TrevorTomato
  • 4
  • 2
7 Comments
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 39765645
Check your CSS. Did you open it with IE on your laptop?? Try another browser like firefox on the laptop to see if it happens
0
 

Author Comment

by:TrevorTomato
ID: 39765659
I opened in Firefox and Safari on laptop... all is good.  I cleared cache on mobile browsers... all is still bad.
0
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 39765679
Which one is the CSS for this class "form-control search-width"?? Also what did the box suppose to look like rounded-corners or square?? Though that you say that the problem was on the laptop and not on the mobile devices.. Check the browser engine on the mobile device to see with different render engine for the browser.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:TrevorTomato
ID: 39765687
Could <input type="search"> vs. <input type="text"> render differently in mobile browsers?
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39766192
>Odd thing is happening,  the search box has really rounded corners when I open on a tablet or phone. But, the box is square on a laptop.

>I opened in Firefox and Safari on laptop... all is good.  I cleared cache on mobile browsers... all is still bad.

It is supposed to have rounded corners and It works on the laptop and I tried it on my android browser http://jsbin.com/OQoKETe/1/edit and all is good.   By good, I mean rounded corners.

When you updated bootstrap, did you just change the css and js files?  Did you see you need to change all of your classes as well?
0
 

Accepted Solution

by:
TrevorTomato earned 0 total points
ID: 39766382
Sure enough.  <input type="search"> renders differently in iOS than <input type="text">.  I changed to <input type="text"> and fixed the problem.
0
 

Author Closing Comment

by:TrevorTomato
ID: 39776114
Found it!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wrapper for APPs 9 85
Problem to refer to value 8 62
Responsive Font Size 6 29
Change static entered data to dynamic with counter 5 13
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question