Solved

Safari rendering of text input box

Posted on 2011-03-21
14
783 Views
Last Modified: 2013-12-07
I have a simple

                 <input id="zoom_query" type="text" name="zoom_query">

box with a border-style:inset CSS style. The rendering in Firefox is fine (see images below)  but Safari shows a blue haze around it when the box has the focus and doesn't show any inset when the box does not have the focus.  I like the Firefox rendering better.  Does anyone know how I can coax Safari to render it the same way?

Thanks.

 text-input: Firefox text-input: Safari with focus text-input: Safari without focus
0
Comment
Question by:steva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 3
14 Comments
 
LVL 8

Expert Comment

by:askurat1
ID: 35451670
try setting:
border: none

Open in new window

0
 
LVL 8

Expert Comment

by:askurat1
ID: 35451674
or
border: 0;

Open in new window

0
 
LVL 8

Expert Comment

by:askurat1
ID: 35451687
If neither work try this:
input[type=text],
input[type=text]:hover,
input[type=text]:focus,
input[type=text]:active
{
    border: 0;
    outline: none;
    outline-offset: 0;
}

Open in new window

0
SendBlaster Pro 4 - Bulk Email Sending Software

SendBlaster 4 Pro - Best Bulk Emailing Sending Software
Automatic Subscribe / Unsubscribe Processing
Great for Newsletters & Mass Mailings
Optional HTML & Text Composition
Integration with Google Features
Built in Spam Score Checking
Free Professional Templates - Feature Packed!

 

Author Comment

by:steva
ID: 35454721
Askurat1,

Thanks for the suggestions, but none of those worked.  They all remove the border, but there has to be a border of some kind or it's just a hole in the background.  And recently we've changed the background to white, so removing the border makes the field disappear completely.
0
 
LVL 8

Expert Comment

by:askurat1
ID: 35459878
Cold you maybe give me a link to an example?
0
 
LVL 8

Expert Comment

by:askurat1
ID: 35459919
Try:
input[type=text],
input[type=text]:hover,
input[type=text]:focus,
input[type=text]:active
{
    outline: none;
}

Open in new window

0
 

Author Comment

by:steva
ID: 35493632
askurat1,

You can see the box at http://www.steveswebshopphp.com/upaya/ in the upper right corner.  Again, I just want it to render in Safari as it does in Firefox, with an inset effect that doesn't become blue when you select it.
0
 
LVL 8

Expert Comment

by:askurat1
ID: 35493693
If you want an inset border have tried:
border-style:inset;

Open in new window

0
 
LVL 8

Accepted Solution

by:
askurat1 earned 500 total points
ID: 35493837
My fault I didn't see you put that. Try adding:
border-color: white;
Inside of:
 input#zoom_query,
 input#zoom_query:hover,
 input#zoom_query:focus,
 input#zoom_query:active
 {
}

Open in new window

0
 
LVL 8

Expert Comment

by:askurat1
ID: 35493918
Or you can change the color to something slightly darker than white to achieve more of the pop out effect.
0
 

Author Comment

by:steva
ID: 35494108
askurat1,

I notice that IE and Chrome render it the same way Safari does, so maybe Firefox is the oddball.

I'll give you the points now for all your effort and suggestions, and I'll come back to it later, when I'm not putting out other fires, and play with it more.

Thanks for your help.

0
 
LVL 8

Expert Comment

by:askurat1
ID: 35494119
Yea unfortunately when it comes to text boxes they seem to render differently throughout all browsers. Thanks for the points.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with Internet Explorer 8 7 37
Popup write two lines 3 32
Customising IE behaviour on certain pages 2 102
Built-in chrome Flash not working 8 36
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Several part series to implement Internet Explorer 11 Enterprise Mode
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

710 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