Hi, I want to give a percentage for the font size. currently i'm using <h1> tag. But that text size is smaller than i need. How to make it bigger. and like i said i want to use a percentage as the size. so if i maximize my page or minimize, size should increase and decrease respectively.

Recommended Answers

simply state in the css the percentage of the size you want your h1 size. It gets the value of 100% from your body text. So, if you wanted the h1 tag to be twice the size of normal text, you'd put this in:

h1 {
font-size:200%;
}
Jump to Post

All 2 Replies

simply state in the css the percentage of the size you want your h1 size. It gets the value of 100% from your body text. So, if you wanted the h1 tag to be twice the size of normal text, you'd put this in:

h1 {
font-size:200%;
}

Hey, thanxxx loads! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.