Results 1 to 7 of 7
Thread: Configure <H1> Format
-
06-28-2005, 10:08 AM #1Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
Configure <H1> Format
How do I configure <H1> formatting so that it look like normal text?
-
06-28-2005, 11:48 AM #2rogue element
- Join Date
- Jun 2004
- Location
- Northwest Colorado
- Posts
- 4,636
Use a CSS rule to assign styles to tags:
h1 {font:1em/1.25em Georgia, serif}
This will make <h1> tags render in normal size (1em), with 1 1/4 line spacing (/1.25em), in the Georgia font if available, otherwise use the sytem's serif font.Eric J. Bowman, principal
Bison Systems Corporation coming soon: a new sig!
I'm just a poor, unfrozen caveman Webmaster. Your new 'standards' frighten, and confuse me...
-
06-28-2005, 06:56 PM #3Junior Guru Wannabe
- Join Date
- Sep 2003
- Posts
- 98
Just be aware that when you use ems. People who run newer laptops/notebooks will see issues because their default font size is set to larger. Most of the time people won't have a clue about how to change this, even though it is quite easy to change.
Think about the users that visit your site, and determine if it is better to use an em size, or a px size.
-
06-28-2005, 07:55 PM #4Retired Moderator
- Join Date
- May 2004
- Location
- Pflugerville, TX
- Posts
- 11,231
I would think Eric's assumption in his reply was that the default size was set in a higher-level container, such as the body tag CSS rule or a CSS wrapper. If you are defining the size of "normal text" yourself, then the 1em specification will inherit that size, and this is proper. If you're allowing user defaults to prevail...well, those are their defaults, so the em is still proper.
Who are we to make the assumption people don't know how to use their own browsers?Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design
-
06-29-2005, 09:34 PM #5Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
How do you code without using CSS, I mean inside the normal HTML page?
-
06-29-2005, 09:41 PM #6rogue element
- Join Date
- Jun 2004
- Location
- Northwest Colorado
- Posts
- 4,636
You mean like this?
<h1 style='font:1em/1.25em Georgia, serif'>example</h1>
This is called 'inline CSS'.
-
06-30-2005, 04:18 AM #7Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
Thank you Sir! This is what I need.