Skip to Content


Public news / November 2005 / Safari CSS Hack

Safari CSS Hack

Although I don't condone the use of CSS hacks, I know that someone may find this useful. I haven't seen this hack (or any Safari hack) before, so I decided to put it out there.

permanent link 12 nov at 19:24 by Nicholas Gagne

There are 11 guest comments so far.

commentat 17:57 on 14 November 2005, Jim Amos wrote:

I tried it in a few Safari 1.3.1 Panther tests, the hash didn't seem to make any difference at all. I wonder if this hack only works in Tiger? Anyone else try this?

commentat 21:50 on 15 November 2005, Nicholas Gagne wrote:

I've tested this in Safari 1.3.1 Panther and Safari 2 Tiger and both work fine for me.

commentat 13:08 on 12 September 2006, Matt C Galizia wrote:

This worked on Tiger + Safari 2.0.4, but only when the CSS definition is written in one physical line.

This will work (as a hack):

.search input {background:transparent;border:0;width:133px;#}

This won't:

.search input {

background:transparent;

border:0;

width:133px;#}

Any CSS definitions written after the hacked definition won't work in Safari.

e.g. this will not make the paragraph red:

.search input {background:transparent;border:0;width:133px;#}

.search p {color:red;}

commentat 16:30 on 08 June 2007, Dave Fletcher wrote:

Here's some more on a Safari Hack: http://themechanism.com/blog/2007/03/28/safari-css

commentat 20:30 on 27 June 2007, Matthew wrote:

I found this hack un-stable and didn't want to use it. Mostly because of how it effects ALL styles after the # sign. For a more stable Safari CSS hack, go here. Try it out and leave a comment on the site.

commentat 18:14 on 13 June 2008, zeka oyunları wrote:

Thanks. for this good blog text..

commentat 22:59 on 19 June 2008, bedava oyunlar wrote:

^&^nice, thanks you..!+6

commentat 20:29 on 21 June 2008, 2 kişilik oyunlar wrote:

,,'nice thanks you!-'

commentat 19:47 on 28 June 2008, oyunlar wrote:

!thanks,,!rn

commentat 16:11 on 29 June 2008, oyun wrote:

!'nice thanks you,!,,..

commentat 16:53 on 29 June 2008, oyunlar wrote:

very thanks,,8

Add a comment:

(required, non-public)

  |  Chars left: 1000

Keep the comment relevant, constructive and be polite.
A valid email address or URL to your site must be provided, or the comment might get deleted. Content seemed inappropriate or offensive may be edited and/or deleted. Avoid explicit language and words such as "sucks" and "ripoff". For more in-depth discussions use our forum. Email addresses are never displayed. Line breaks and paragraphs are automatically converted - no need to use <p> or <br/>. Quotes & apostrophes are automatically converted to smart punctuation. Be careful when copying and pasting portions of entries or other comments. The following inline HTML elements may be used: <strong><em><pre><q><blockquote><code>. All other code will get removed before posting. Don't forget to close your tags.


Search the archive

Stylegala news archive

Public news archive

News contributors


Features

Stylegala BookStore
The Stylegala BookStore has a massive archive of great books for you as a professional..
Bullet madness
Bullet madness is a list of 200 bullets, arrows and icons uploaded by our users.
CSS Reference
An alphabetical list over the most common CSS1 and CSS2 syntax and properties.

Sponsors

Logo design for $149

Advertise here