INSTANT ACCESSfree SEO report

How Do I Change The Line Height For My H1, H2 Ttags Etc?

In Dreamweaver, when I assign a heading tag to a word or title, it takes it out of the paragraph and moves everything else below. I undederstand why it does this- cos it thinks it should be a title. But I want it to stay inline with the rest of the text. How do I edit this?

2 Responses to “How Do I Change The Line Height For My H1, H2 Ttags Etc?”

  1. confused thoughts says:

    im not sure how to change this in Dreamweaver, but with HTML/CSS, just add the following to the <head> section (before <body>)

    First check to see if you have a CSS section:

    <style type="text/css">

    [insert coding]

    </style>

    Then in the [insert coding] section, add:

    h1: { line-height:#px; }

    CSS codes are applied to the entire page.

  2. SomeGuyW says:

    Headers are *supposed* to be… duh, headers. If you assign one of the H tags to a word or title, it will be a header.

    If you want your words to stand out, wrap them inside a <span> element and apply style to that.

    Give them a class, and you're good to go.

    If you really WANT them to be headers (but show up inline), add

    display: inline;

    to both the header style and the style of the paragraph that follows it.

Leave a Reply

Contact Us

Member Login

Lost your password?

2 Comments 187 Views