Solved

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

Posted on 2014-01-08
7
184 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
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.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

777 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