10 Essential CSS Rules for Web Designers

CSS is the essential part of any web designer’s life, they play with CSS to design beautiful and unique web designs. Playing with CSS or using their skills to manipulate CSS rules are quite fascinating for the designers. There is always something interesting in the deep ocean of CSS world, you just need to find out the better one for you. There are many rules and syntax in CSS which anybody can’t memorize for all the time while some rules are quite useful and should be kept in the mind to open up new possibilities. If you wish to start your website and host it on wp engine then you can use wp engine coupon code of may 2015 to avail max discount. Today, we are elaborating 10 of the most useful CSS rules for web designers, you must aware of these if you want to design unique and out of the crowd web designs. This post was written in partnership with Business Card Printing, an online printing company that provides quality printing services.


1. @font-face

A nice way to attach fonts other than on servers. It is quite obvious, if you can’t find all the font on hosting servers, then use this rule to include that font into your CSS and use that in styling.

@font-face {
	font-family: Blackout;
	src: url("assests/blackout.ttf") format("truetype");


2. .clearfix

This is the alternative rule for the ‘overflow’ if you’re not able to clear floats on your elements. You could target this code to any of your HTML elements individually.

.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;


3. @media

@media is responsible of current time’s responsive websites, it can help you to adjust your website width according to visitor’s view port.

@media screen and (max-width: 960px) {



4. transform: rotate(30deg);

Combine these transform properties with CSS transitions to create some fun animation effects.

.title {
	transform: rotate(40deg);


5. background-size

This rule helps you out to adjust full screen background image on your website. This is unlike bulky lines of code which we had to written in previous versions of CSS.

body {
	background: url(image.jpg) no-repeat;
	background-size: 100%;


6. input[type=”text”]

The input[type=”text”] selector and advanced selectors as a whole are great for taking your CSS skills from intermediate to expert. What about using attribute selectors to target the submit version of an input element or add an icon to external links?

input[type="text"] {
	width: 250px;


7. margin: 0 auto;

Surprisingly, there is no specific rule to center any block element in website. This rule will help you to center block element within its parent element.

#container {
	margin: 0 auto;


8. a {outline: none;}

A huge dotted outline spanning across the whole page when you click a link element will surly ruin the taste of visitor while surfing your website. The a {outline: none;} declaration will remove this, but for accessibility don’t forget to also add :focus states to your links.

a {outline: none;}


9. overflow: hidden

This is the best way to clear floats of your elements without loading of garbage onto your CSS. Use this and make more responsive websites.

.container {
	overflow: hidden;


10. color: rgba();

PNGs are popular and most usable in web designs because of their transparency capability, but now you can achieve the same transparency via this rule. It uses red, green and blue channels as well as setting an alpha level, such as 0.5 for 50% opacity.

.btn {
	color: rgba(0,0,0,0.5);

I am Samith Jhon a content writer and a Professional Blogger. Certified with 1Z0-520 Exam test questions which is very
popular these days and have a great scope in the field of IT Certification. I always like to take 1Z0-541 Exam test questions to pass the Exam. These kinds of Exam questions could secure your future as well as your job.

Share via email Share

Leave a Reply