CSS Hacks

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

CSS Hacks

Post by update »

Wile looking for a special Safari hack I found these Browser hacks and collected them from the web - all valid CSS
Will eventually not work in updated browsers, but mostly will work though for now

Code: Select all

Safari only
	body:first-of-type {}
	body:first-of-type #eydiv {text-align:left;}

IE 6 and below
	* html {}

IE 7 and below
	*:first-child+html {} * html {}
	*:first-child+html #eydiv  {text-align:left;} * html #eydiv  {text-align:left;}

IE 7 only
	*:first-child+html {}
	*:first-child+html #eydiv .eyclass {text-align:left;}

IE 7 and modern browsers only
	html>body {}
	html>body #eydiv {text-align:left;}

Modern browsers only (not IE 7)
	html>/**/body {}
	html>/**/body #eydiv {text-align:left;}

Recent Opera versions 9 and below
	html:first-child {}
	html:first-child #eydiv {textt-align:left;} 
eydiv and eyclass are examples only :wink:

claus
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

Claus: thank you - that's a very helpfull list...
pixelpublic GmbH | Agentur für Neue Medien und Gestaltung
schmidtjr
Posts: 41
Joined: Fri 18. Aug 2006, 12:10

Post by schmidtjr »

Nice one.
I've got another usefull listing regarding Browser bugs and how to 'solve' them.
The only disadvantage for some users is, that it is in german :(

Here's the link
http://www.traum-projekt.com/forum/sitemap/t-93718.html



Sorry, didn't find Forum rules at the moment. If it's not allowed to post links to other forums, please delete this post.
Post Reply