0
Welcome Guest! Login
0 items Join Now

Putting titles in an H1 tag

  • Re: Putting titles in an H1 tag

    Posted 17 years 6 months ago
    • phlux0r's Avatar
    • phlux0r
    • Sr. Rocketeer
    • Posts: 199
    • Thanks: 0

    Re: Putting titles in an H1 tag

    Posted 17 years 6 months ago
    • Adrian Cooper wrote:
      The issue I seem to have is that H1 in the css is currently set to 160% which is fine.

      After this hack the Title font size is huge. If I reduce the H1 in css to say 120%, the Title is then fine but my H1 tags I added from the editor are now way too small.

      Any idea how to make them the same size?

      That's probably because you have a .contentheading {} style that has a large font size so then, since the h1 is a child of that style, you will get a size that's 160% of .contentheading which may be already 160%. You should leave the h1 at 160% and remove the font-size from .contentheading... try to play with that. Also watch for line-height... So a sample stylesheet could look like:
      h1 {
           font-size: 200%;
      }
      .contentheading h1 {
           font-size: 130%;
           margin-top: 10px;
           margin-bottom: 3px;
           line-height:100%;
      }

      and no separate .contentheading { } style with font-size or line-height. This way your contentheading h1 will be smaller than the regular h1 if you want that kind of behavior.
  • Re: Putting titles in an H1 tag

    Posted 17 years 6 months ago
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Putting titles in an H1 tag

    Posted 17 years 6 months ago
    • Cheers Stephan, very generous of you :)

      two thumbs up!
    • Say no to Internet Explorer 6.
      twitter.com/mark_up

Time to create page: 0.052 seconds