Solved

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

Posted on 2014-01-08
7
182 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
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 style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now