Skip to content

Instantly share code, notes, and snippets.

@ho-nl
Created March 18, 2011 14:59
Show Gist options
  • Save ho-nl/876207 to your computer and use it in GitHub Desktop.
Save ho-nl/876207 to your computer and use it in GitHub Desktop.
‪Free Magento Extension: Add the visitors' browser and platform to your template's body class‬
* Clears and hasLayout fixes */
.ie .header-container,
.ie .header-container .top-container,
.ie .header,
.ie .header .quick-access,
.ie #nav,
.ie .main,
.ie .footer,
.ie .footer-container .bottom-container,
.ie .col-main,
.ie .col2-set,
.ie .col3-set,
.ie .col3-layout .product-options-bottom .price-box,
.ie .col4-set,
.ie .messages li,
.ie .search-autocomplete li,
.ie .block,
.ie .block .block-content,
.ie .block .actions,
.ie .block li.item,
.ie .block-poll li,
.ie .block-poll .label,
.ie .block-layered-nav .currently li,
.ie .block-account .block-content li a,
.ie .mini-products-list .product-details,
.ie .page-title,
.ie .rss-title h1,
.ie .products-grid,
.ie .products-list li.item,
.ie .box-account .box-head,
.ie .dashboard .box .box-title,
.ie .box-reviews li.item,
.ie .box-tags li.item,
.ie .pager,
.ie .sorter,
.ie .ratings,
.ie .add-to-box,
.ie .add-to-cart,
.ie .product-essential,
.ie .product-collateral,
.ie .product-view .product-img-box .more-views ul,
.ie .product-view .box-tags .form-add,
.ie .product-options .options-list li,
.ie .product-options-bottom,
.ie .truncated,
.ie .truncated .truncated_full_value,
.ie .product-review,
.ie .cart,
.ie .cart-collaterals,
.ie .cart .crosssell li.item,
.ie .cart .discount,
.ie .opc .step-title,
.ie .opc .step,
.ie .multiple-checkout,
.ie .sp-methods,
.ie .checkout-progress,
.ie .multiple-checkout .place-order,
.ie .form-list li,
.ie .form-list .field,
.ie .group-select li,
.ie .buttons-set,
.ie .page-print .print-head,
.ie .cart-tax-total,
.ie .advanced-search-summary,
.ie .advanced-search-summary p,
.ie .gift-messages-form .item,
.ie .send-friend .form-list li p,
.ie .centinel .authentication { zoom:1; }
body.ie6 {display:none}
@ho-nl
Copy link
Author

ho-nl commented Mar 25, 2011

This solution is part of our blog post: Free Magento Extension: Add the visitors' browser and platform to your template's <body> class. Please subscribe to our RSS or follow us on Twitter for tips & tricks, free Magento extensions and more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment