List Menu

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

    List Menu

    Hello,

    I am creating a simple List Menu where when a mouse is over a button
    the background changes:


    Why do I get a white space between each menu item?

    Thanks,
    Miguel
  • Gus Richter

    #2
    Re: List Menu

    shapper wrote:
    Hello,
    >
    I am creating a simple List Menu where when a mouse is over a button
    the background changes:

    >
    Why do I get a white space between each menu item?
    Because you have:
    2spaces + CR/LF + 2spaces
    ^^^^^^^ ^^^^^^^
    between each </li><li pair

    --
    Gus

    Comment

    • Gus Richter

      #3
      Re: List Menu

      Gus Richter wrote:
      shapper wrote:
      >Hello,
      >>
      >I am creating a simple List Menu where when a mouse is over a button
      >the background changes:
      >http://www.27lamps.com/public/Menu.htm
      >>
      >Why do I get a white space between each menu item?
      >
      Because you have:
      2spaces + CR/LF + 2spaces
      between each </li><li pair
      >
      Sorry about that.
      One line removed. ( ^^^^^^^ ^^^^^^^ )
      To correct your problem:

      Remove the
      2spaces + CR/LF + 2spaces
      and it should look like this:

      Home</a></li
      ><li><a href="Services. htm">
      or something like this:

      Home</a></li><li><a
      href="Services. htm">

      etc.

      --
      Gus

      Comment

      • shapper

        #4
        Re: List Menu

        On May 18, 7:13 pm, Gus Richter <gusrich...@net scape.netwrote:
        Gus Richter wrote:
        shapper wrote:
        Hello,
        >
        I am creating a simple List Menu where when a mouse is over a button
        the background changes:
        >http://www.27lamps.com/public/Menu.htm
        >
        Why do I get a white space between each menu item?
        >
        Because you have:
        2spaces + CR/LF + 2spaces
        between each </li><li pair
        >
        Sorry about that.
        One line removed. ( ^^^^^^^ ^^^^^^^ )
        To correct your problem:
        >
        Remove the
        2spaces + CR/LF + 2spaces
        and it should look like this:
        >
        Home</a></li
        ><li><a href="Services. htm">
        >
        or something like this:
        >
        Home</a></li><li><a
        href="Services. htm">
        >
        etc.
        >
        --
        Gus
        My editor is messing things up ... I am using Visual Studio 2008.
        How can I check if my HTML code is without this problems?

        Thanks,
        Miguel

        Comment

        • shapper

          #5
          Re: List Menu

          On May 18, 7:53 pm, shapper <mdmo...@gmail. comwrote:
          On May 18, 7:13 pm, Gus Richter <gusrich...@net scape.netwrote:
          >
          >
          >
          Gus Richter wrote:
          shapper wrote:
          >Hello,
          >
          >I am creating a simple List Menu where when a mouse is over a button
          >the background changes:
          >>http://www.27lamps.com/public/Menu.htm
          >
          >Why do I get a white space between each menu item?
          >
          Because you have:
          2spaces + CR/LF + 2spaces
          between each </li><li pair
          >
          Sorry about that.
          One line removed. ( ^^^^^^^ ^^^^^^^ )
          To correct your problem:
          >
          Remove the
          2spaces + CR/LF + 2spaces
          and it should look like this:
          >
          Home</a></li
          ><li><a href="Services. htm">
          >
          or something like this:
          >
          Home</a></li><li><a
          href="Services. htm">
          >
          etc.
          >
          --
          Gus
          >
          My editor is messing things up ... I am using Visual Studio 2008.
          How can I check if my HTML code is without this problems?
          >
          Thanks,
          Miguel
          I updated my code following your tips and I solved that problem.
          However, now I have a new problem which is something I have
          experienced before.

          The Menu gets over the text that is coming next?

          Any idea why?

          Thanks,
          Miguel

          Comment

          Working...