Friday, 6 September 2013

How to make css height for chrome, Hot to make css width for chrome,

CCS3 Height and width

.calc {
	width: 100px;
	height: 50px;
	border: 1px solid #f00;
	padding: 10px;
	
	/* Firefox */
	width: -moz-calc(75% - 50px);
	/* WebKit */
	width: -webkit-calc(75% - 50px);
	/* Opera */
	width: -o-calc(75% - 50px);
	/* Standard */
	width: calc(75% - 50px);
}

CSS3 height for webkit (chrome, safari).

Different height and width for (IE firefox, safari, chrome, opera) 

No comments:

Post a Comment