Safari 3.0 & Google Chrome CSS hack

Posted on February 27th, 2009, by Cristian in Blogging, Design, User Interface & Experience

I’m working now at a UI of a Java platform for selling flowers. One thing that I’m doing is implementing the design into the template system. There are some important things that I should take care like: everything should easy be translate in N’ languages.

One of the elements that need to be translated are the buttons. They are very fancy, with icon and glow effect so I’m implenting them using the full-button-resize technique that I described in a previous post. Everything is going ok but I have some problems with Safari, the height of the button should be with 1px less that the Firefox css code, so I search for a css hack.  Nobody likes css hack but most of us have use of them once in a while.

Here is the way that I solved my problem:

@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari 3.0 and Chrome rules here */
}

One comment

  1. Alex on March 1st, 2010 at 12:53 pm

Leave a comment

Advertise / Sponsors

Comments RSS Feed

Recent Comments

  • Alex: try this: #style { -webkit-width:900px; } worked for me
  • Cristian: I am not modifying the core files. What I post as example is part from a module that observer an event and...
  • Magnus_A: Great idea. I am searching for a payment option that will allow me to add a handling fee to the order. In...
  • Cristian: Yes, is tru the plugin doesn’t support that. But also I think that you are able to control level 2...
  • donny: Hi Christian, thanks but what i miss a sub menu unter a submenu. I have a horizontal structure with 5 op...