Results 1 to 7 of 7
  1. #1
    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?

  2. #2
    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...

  3. #3
    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.

  4. #4
    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

  5. #5
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    6,990
    How do you code without using CSS, I mean inside the normal HTML page?

  6. #6
    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'.

  7. #7
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    6,990
    Thank you Sir! This is what I need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •