PHPackages                             crucifyer/css-browser-selector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crucifyer/css-browser-selector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crucifyer/css-browser-selector
==============================

CSS Browser Selector - no need css hack. html tag adding your browser info

3422.6k8JavaScript

Since Jun 6Pushed 3y ago6 watchersCompare

[ Source](https://github.com/crucifyer/css-browser-selector)[ Packagist](https://packagist.org/packages/crucifyer/css-browser-selector)[ RSS](/packages/crucifyer-css-browser-selector/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CSS Browser Selector
====================

[](#css-browser-selector)

Now that IE is a thing of the past, this library is no longer needed.
---------------------------------------------------------------------

[](#now-that-ie-is-a-thing-of-the-past-this-library-is-no-longer-needed)

> no need css hack. html tag adding your browser info fork this project from : [http://rafael.adm.br/css\_browser\_selector/](http://rafael.adm.br/css_browser_selector/)

### if IE6

[](#if-ie6)

```

```

- ie6 ie67 ie678 ie6789

### if IE10

[](#if-ie10)

```

```

### if EDGE

[](#if-edge)

```

```

### if iPhone Safari

[](#if-iphone-safari)

```

```

### if android retina tablet chrome

[](#if-android-retina-tablet-chrome)

```

```

### using

[](#using)

```
.myText { margin-bottom:2px; }
.ie6 .myText { margin-bottom:1px; }
.opera .myText { margin-top:-1px; }
```

### php version using

[](#php-version-using)

```
$className = css_browser_selector::getClassName($_SERVER['HTTP_USER_AGENT']);
```

### more support types

[](#more-support-types)

```
.ie67, .ie678, .ie9m (IE9 and more)
.ff4 ~ .ff11 and more
```

### if jQuery &amp;&amp; mobile support

[](#if-jquery--mobile-support)

```
width > height ? landscape : portrait
```

```
.portrait .landscape
.smartnarrow (
