Showing 2 Result(s)

Magento – add CSS / JS per category or CMS page

Here’s a very simple solution to adding custom CSS or JS to a specific category or CMS page . The example below shows how to add a reference to a custom CSS file, let’s name it custom.css and assume that we’ve copied it in /skin/frontend/default/your_theme/css. The CSS file inside would look something like (just an example): .category-description { …

CSS – Make a rounded image with the help of CSS3

Here is a simple method to create a circular effect on an image with the use of CSS3. As an example, I’ll use the image below with basic html code and CSS: <div class=”img-circular”></div> I’ll now add style for the class “img-circular”: .img-circular{ width: 300px; height: 300px; background-image: url(‘http://michaelsavin.com/wp-content/uploads/2014/09/new_image.jpg’); background-size: cover; display: block; } The …