Solved

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

Posted on 2014-01-08
7
180 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

746 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

7 Experts available now in Live!

Get 1:1 Help Now