[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

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

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
TrevorTomato
Asked:
TrevorTomato
  • 4
  • 2
1 Solution
 
Jesus RodriguezIT ManagerCommented:
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
 
TrevorTomatoAuthor Commented:
I opened in Firefox and Safari on laptop... all is good.  I cleared cache on mobile browsers... all is still bad.
0
 
Jesus RodriguezIT ManagerCommented:
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
TrevorTomatoAuthor Commented:
Could <input type="search"> vs. <input type="text"> render differently in mobile browsers?
0
 
Scott Fell, EE MVEDeveloperCommented:
>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
 
TrevorTomatoAuthor Commented:
Sure enough.  <input type="search"> renders differently in iOS than <input type="text">.  I changed to <input type="text"> and fixed the problem.
0
 
TrevorTomatoAuthor Commented:
Found it!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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