Remove blank line below <UL>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Glazer

    Remove blank line below <UL>

    Is there a way to reduce the size of the blank line (height) between <ul>
    and <li> tags in CSS?



  • Steve Pugh

    #2
    Re: Remove blank line below &lt;UL&gt;

    "Jon Glazer" <jglazer.delete .me@adconn.com> wrote:
    [color=blue]
    >Is there a way to reduce the size of the blank line (height) between <ul>
    >and <li> tags in CSS?[/color]

    Set margin-top and margin-bottom for the affected elements.

    Remember that when you have two adjacent elements the margin between
    them will be the larger of the margin-bottom of the upper element and
    the margin-top of the lower element.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • Jon Glazer

      #3
      Re: Remove blank line below &lt;UL&gt;

      Tried;

      ul { margin-left: 10px; margin-bottom:1px; }
      li{ margin-top:1px; }

      With no effect at all. Am I missing something?

      Jon


      "Steve Pugh" <steve@pugh.net > wrote in message
      news:oe6iv0d7vh 6lj0u8ug265ojks hl42flnvn@4ax.c om...[color=blue]
      > "Jon Glazer" <jglazer.delete .me@adconn.com> wrote:
      >[color=green]
      >>Is there a way to reduce the size of the blank line (height) between <ul>
      >>and <li> tags in CSS?[/color]
      >
      > Set margin-top and margin-bottom for the affected elements.
      >
      > Remember that when you have two adjacent elements the margin between
      > them will be the larger of the margin-bottom of the upper element and
      > the margin-top of the lower element.
      >
      > Steve
      >
      > --
      > "My theories appal you, my heresies outrage you,
      > I never answer letters and you don't like my tie." - The Doctor
      >
      > Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>[/color]


      Comment

      • Jim Moe

        #4
        Re: Remove blank line below &lt;UL&gt;

        Jon Glazer wrote:[color=blue]
        > Tried;
        >
        > ul { margin-left: 10px; margin-bottom:1px; }
        > li{ margin-top:1px; }
        >
        > With no effect at all. Am I missing something?
        >[/color]
        Try "ul { margin-top: 0px; }".

        --
        jmm dash list (at) sohnen-moe (dot) com
        (Remove .AXSPAMGN for email)

        Comment

        • Steve Pugh

          #5
          Re: Remove blank line below &lt;UL&gt;

          "Jon Glazer" <jglazer.delete .me@adconn.com> wrote:[color=blue]
          >"Steve Pugh" <steve@pugh.net > wrote in message
          >news:oe6iv0d7v h6lj0u8ug265ojk shl42flnvn@4ax. com...[color=green]
          >> "Jon Glazer" <jglazer.delete .me@adconn.com> wrote:
          >>[color=darkred]
          >>>Is there a way to reduce the size of the blank line (height) between <ul>
          >>>and <li> tags in CSS?[/color]
          >>
          >> Set margin-top and margin-bottom for the affected elements.
          >>
          >> Remember that when you have two adjacent elements the margin between
          >> them will be the larger of the margin-bottom of the upper element and
          >> the margin-top of the lower element.
          >>[/color]
          >Tried;
          >
          >ul { margin-left: 10px; margin-bottom:1px; }
          >li{ margin-top:1px; }
          >
          >With no effect at all. Am I missing something?[/color]

          Apart from how to post properly in order to facilitate logical
          communication you seem to be missing two things. The first is that
          left and top are only the same after a few beers ;-) and the second is
          a URL so we can see what's actually happening in the context of a web
          page.

          Steve

          --
          "My theories appal you, my heresies outrage you,
          I never answer letters and you don't like my tie." - The Doctor

          Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

          Comment

          • Stan Brown

            #6
            Re: Remove blank line below &lt;UL&gt;

            "Steve Pugh" wrote in comp.infosystem s.www.authoring.stylesheets:[color=blue]
            >"Jon Glazer" <jglazer.delete .me@adconn.com> wrote:
            >[color=green]
            >>Is there a way to reduce the size of the blank line (height) between <ul>
            >>and <li> tags in CSS?[/color]
            >
            >Set margin-top and margin-bottom for the affected elements.[/color]

            It may also be necessary to set padding-top and padding-bottom.

            --

            Stan Brown, Oak Road Systems, Tompkins County, New York, USA
            Dragon222 adalah situs slot gacor terbaru yang selalu memberikan banyak bonus menarik dan kemenangan JP untuk pemain setia selama bermain di link slot DRAGON222.

            Comment

            Working...