In relative units: For accessible web design, you’ll usually want to adjust the font relative to other elements. This ensures the size of your headers will adjust automatically when the user resizes the window. In absolute units: If you want to be specific about the number of pixels (px), points (pt), inches (in), or other specific sizes, you can use absolute units. However, this can cause problems when it comes to responsive web design, as the user won’t be able to adjust the size of the text in their browser, even when magnifying the page. [1] X Research source

em: Adjusts the header size relative to the font size of the element. Using em is great because it changes the size of the font based on the font the reader is using on their computer, phone, or tablet. [2] X Research source For example, using font-size: 1. 2em increases the size of the heading 1. 2 times, or 20% larger than the default size. [3] X Research source Or, if the header tag is inside of another element that has a font size specified, such as a div, using font-size: 1. 2em in your header code would make the size of the header 20% larger than the font size specified in the div. rem: Similar to em, but changes the size based on the root (html) element’s font size instead of the parent element. If you set your header size using rem as the unit of measurement, the header will always adjust based on that of the root element, even if the header is within another container. For example, if the HTML body font size is set to 100%, using font-size: 5rem in your H1 tag would make the H1 header size 5 times as large as the default font. vh: Changes based on the height of the viewport (the area of the screen visible to the user). [4] X Research source For example, font-size: 10. 0vh makes the font 10% of the viewport’s height. vw: Just like vh, vw adjusts the size relative to the viewport, but to the width rather than the height.

For example, using font-size: 1. 2em increases the size of the heading 1. 2 times, or 20% larger than the default size. [3] X Research source Or, if the header tag is inside of another element that has a font size specified, such as a div, using font-size: 1. 2em in your header code would make the size of the header 20% larger than the font size specified in the div.

For example, if the HTML body font size is set to 100%, using font-size: 5rem in your H1 tag would make the H1 header size 5 times as large as the default font.

For example, if the HTML body font size is set to 100%, using font-size: 5rem in your H1 tag would make the H1 header size 5 times as large as the default font.

For example, font-size: 10. 0vh makes the font 10% of the viewport’s height.

For example, if you want to change the size of the H1 to be 20% of the viewport size, you’d use: h1 { font-size: 20vh; } In this example, we’ll use CSS to also adjust the size of the H2 header tag, which we want to be a little smaller than H1 tags. Let’s make it 17% of the viewport height: h1 { font-size: 20vh; } h2 { font-size:17vh; }

If you haven’t already, see this method to learn how to change the header size with CSS.

If you haven’t already, click My Site to open your site for editing. If you’ve installed WordPress on your own dedicated or shared web server, you may also be able to edit the CSS file directly, either by downloading the file via FTP or by editing it in your browser. The file you’re looking for will be called custom. css or style. css and should be in your theme’s main directory.

Some WordPress themes allow you to change header sizes without having to edit the CSS directly. If you see a “Headings” area, you can use the menus to adjust your header sizes.

The CSS you enter here will override any other CSS settings in your theme. [7] X Research source ttps://wordpress. com/support/editing-css In other words, if the H1 size is set to 20px in the theme and you set the H1 to 2. 75rem in Additional CSS, your changes will take precedence.

Unlike when editing the CSS for your theme, the block editor only lets you change header sizes on the post or page that’s open for editing.

It’s best to keep your header sizes uniform—H1 should be the largest, followed by H2, etc.

It’s best to keep your header sizes uniform—H1 should be the largest, followed by H2, etc.

Adjusting one header will not change the size of all headers on the page. In other words, making one H1 “Large” will not make all other H1s “Large. " You’ll need to change the size of each header individually.