How to remove page break?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • opt_inf_env@yahoo.com

    How to remove page break?

    Hello,

    I have the following fragment in my html document:

    <h2>Text 1</h2>
    <small>Text 2</small>

    If I see this fragment with browser I see empty line between text1 and
    text2. Do you know how one can remove it?

  • Lars Eighner

    #2
    Re: How to remove page break?

    In our last episode,
    <1117392818.443 249.69710@g49g2 000cwa.googlegr oups.com>,
    the lovely and talented opt_inf_env@yah oo.com
    broadcast on comp.infosystem s.www.authoring.html:
    [color=blue]
    > Hello,[/color]
    [color=blue]
    > I have the following fragment in my html document:[/color]
    [color=blue]
    ><h2>Text 1</h2>
    ><small>Text 2</small>[/color]
    [color=blue]
    > If I see this fragment with browser I see empty line between text1 and
    > text2. Do you know how one can remove it?[/color]

    You don't have an html document. There is no element SMALL in
    html.

    You have a line break after Text 1 because H2 is a block
    element. Browsers are supposed to ignore tags they do not
    understand, so this would look like a block element followed by
    raw text to most of them.

    --
    Lars Eighner eighner@io.com http://www.larseighner.com/
    War on Terrorism: Bad News from the Sanity Front
    "In this autumn of anger, even a liberal can find his thoughts turning to ...
    torture." --Jonathan Alter,_Newsweek _

    Comment

    • Leif K-Brooks

      #3
      Re: How to remove page break?

      Lars Eighner wrote:[color=blue]
      > There is no element SMALL in html.[/color]


      Comment

      • David Dorward

        #4
        Re: How to remove page break?

        opt_inf_env@yah oo.com wrote:
        [color=blue]
        > I have the following fragment in my html document:[/color]
        [color=blue]
        > <h2>Text 1</h2>
        > <small>Text 2</small>[/color]

        Its generally a poor idea to have inline elements outside a suitable block.
        Perhaps the second line should be marked up as a paragraph? Or maybe a
        generic block (div)?
        [color=blue]
        > If I see this fragment with browser I see empty line between text1 and
        > text2. Do you know how one can remove it?[/color]

        That isn't a page break (as your subject suggests). A page break is a point
        where when displayed on paged media (such as a hardcopy print out to sheets
        of A4) one page ends and the next begins.

        This would appear to be the default margin that comes after headings. You
        can alter that with the CSS margin-bottom property.

        http://css.nu/pointers/index.html#Tutorials might be of help if that means
        little to you.

        --
        David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
        Home is where the ~/.bashrc is

        Comment

        Working...