CSS<\/a> to the rescue.<\/p>\n\n\n\nThere are four ways you can do this with ease using a choice of three values on the transform property on the font selector.<\/p>\n\n\n\n
Scale(value)<\/strong><\/p>\n\n\n\nThis example scales the width and height proportionally.<\/p>\n\n\n\n
elem {\n -ms-transform: scale(2); \/* IE 9 *\/\n -webkit-transform: scale(2); \/* Safari *\/\n transform: scale(2);\n }<\/code><\/pre>\n\n\n\nThe Shorthand Scale(width, height)<\/strong><\/p>\n\n\n\nThe example below increases the width by one and a half times while the width will shrink by half.<\/p>\n\n\n\n
elem {\n -ms-transform: scale(1.5, 0.5); \/* IE 9 *\/\n -webkit-transform: scale(1.5, 0.5); \/* Safari *\/\n transform: scale(1.5, 0.5);\n }<\/code><\/pre>\n\n\n\nScaleX<\/strong><\/p>\n\n\n\nScales the width.<\/p>\n\n\n\n
elem {\n -ms-transform: scaleX(0.5); \/* IE 9 *\/\n -webkit-transform: scaleX(0.5); \/* Safari *\/\n transform: scaleX(0.5);\n }<\/code><\/pre>\n\n\n\nScaleY<\/strong><\/p>\n\n\n\nScales the height.<\/p>\n\n\n\n
elem {\n -ms-transform: scaleY(1.5); \/* IE 9 *\/\n -webkit-transform: scaleY(1.5); \/* Safari *\/\n transform: scaleY(1.5);\n }<\/code><\/pre>\n\n\n\nThere you have it. That is how you can scale the height and width of the font using CSS on the HTML selectors.<\/p>\n\n\n\n
And that’s the tip for today.<\/p>\n","protected":false},"excerpt":{"rendered":"
One of the most straightforward things to do when designing websites is to change font height and width either via CSS or directly in HTML.\u00a0The only problem is that the…<\/p>\n","protected":false},"author":1,"featured_media":7722,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,27,16,17],"tags":[170,277,303,320,471,543,635,636,637,643],"yoast_head":"\n
Here's how to Change font height and width in CSS and HTML<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n