<h1> Question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: <h1> Question

  1. #1
    Bryan Carnathan Guest

    <h1> Question

    How can I eliminate the blank line after a set of <h1> tags?

    I have a situation where I need the next line to be immediately after my <h1> tag. IE automatically
    skips a line after the closing tag. A CSS solution would be fine.

    Thanks!

    Bryan



  2. #2
    Russell Jones Guest

    Re: <h1> Question

    Here's an example--note that this is not the only way to accomplish the
    effect.

    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE></TITLE>
    <style type="text/css">
    .myh1 {
    margin-bottom:-8
    }

    </style>
    </HEAD>
    <BODY>

    <h1>This is a test</h1>
    This is the following line<br><br>
    <h1 class="myh1">This is a test</h1>
    This is a test

    </BODY>
    </HTML>

    "Bryan Carnathan" <bryanREMUV@carnathan.com> wrote in message
    news:3b213eab$1@news.devx.com...
    > How can I eliminate the blank line after a set of <h1> tags?
    >
    > I have a situation where I need the next line to be immediately after my

    <h1> tag. IE automatically
    > skips a line after the closing tag. A CSS solution would be fine.
    >
    > Thanks!
    >
    > Bryan
    >
    >




  3. #3
    Bryan Carnathan Guest

    Re: <h1> Question

    Perfect - Thanks!

    "Russell Jones" <arj1@northstate.net> wrote in message news:3b24fe52$1@news.devx.com...
    > Here's an example--note that this is not the only way to accomplish the
    > effect.
    >
    > <HTML>
    > <HEAD>
    > <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    > <TITLE></TITLE>
    > <style type="text/css">
    > .myh1 {
    > margin-bottom:-8
    > }
    >
    > </style>
    > </HEAD>
    > <BODY>
    >
    > <h1>This is a test</h1>
    > This is the following line<br><br>
    > <h1 class="myh1">This is a test</h1>
    > This is a test
    >
    > </BODY>
    > </HTML>
    >
    > "Bryan Carnathan" <bryanREMUV@carnathan.com> wrote in message
    > news:3b213eab$1@news.devx.com...
    > > How can I eliminate the blank line after a set of <h1> tags?
    > >
    > > I have a situation where I need the next line to be immediately after my

    > <h1> tag. IE automatically
    > > skips a line after the closing tag. A CSS solution would be fine.
    > >
    > > Thanks!
    > >
    > > Bryan
    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center