First line in paragraph

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default First line in paragraph

    Though I use CSS to add space before Heading 1, I am trying to get the first
    line in a paragraph to line up with the top of the cell that it is in. I have
    added this command to the style sheet:
    h1:first-child {margin-top: 0;}
    it seems to work in Firefox but not in Internet Explorer.
    Are there any other work arounds, besides creating a seperate style for that
    first lines?

    TSemmes Guest

  2. Similar Questions and Discussions

    1. Forced line break changes previous line endings
      Gang-- Give this script a try. It's quite experimental (i.e., use at your own risk), but in my tests it actually works to "freeze" the line...
    2. new paragraph in cfdocument
      How do I begin new paragraph between each #form.chk# value? And between each value it also show ",". Can I omit that also? <cfdocument...
    3. DRKv5 3D Line Chart line width, rendering problems
      I am using the DevNet Resource Kit Version 5 3D Charting components. The line chart component has a minimum line width parameter, but the minimum...
    4. line, paragraph and char
      I am trying to work out the line number that a particular char number is on? Is it possible to work out the line number and paragraph numer that a...
    5. How to Find the Line # in a Given Paragraph
      Hello, Is there a way to find out the line number of the first line in a given paragraph? For example, I'm trying to find the line number of a...
  3. #2

    Default Re: First line in paragraph

    Try p.first { margin-top:0; }

    and then style the specific <p> tag.

    The problem is that you will also have to adjust the bottom margin on the
    <h1> tag.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "TSemmes" <webforumsuser@macromedia.com> wrote in message
    news:dtkitu$ish$1@forums.macromedia.com...
    > Though I use CSS to add space before Heading 1, I am trying to get the
    > first
    > line in a paragraph to line up with the top of the cell that it is in. I
    > have
    > added this command to the style sheet:
    > h1:first-child {margin-top: 0;}
    > it seems to work in Firefox but not in Internet Explorer.
    > Are there any other work arounds, besides creating a seperate style for
    > that
    > first lines?
    >

    Murray *TMM* Guest

  4. #3

    Default Re: First line in paragraph

    oops I meant the first line in a table cell not paragraph. it seems like the
    h1:first-line works in Internet Explorer but not for margins. For example I
    tried
    h1:first-line {margin-top:0; color: green}
    The color of the first line in each table cell changed but not the margin.

    Tom

    TSemmes Guest

  5. #4

    Default Re: First line in paragraph

    IE's support for first-line is not precedent setting.... 8)

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "TSemmes" <webforumsuser@macromedia.com> wrote in message
    news:dtklo2$n8t$1@forums.macromedia.com...
    > oops I meant the first line in a table cell not paragraph. it seems like
    > the
    > h1:first-line works in Internet Explorer but not for margins. For example
    > I
    > tried
    > h1:first-line {margin-top:0; color: green}
    > The color of the first line in each table cell changed but not the margin.
    >
    > Tom
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139