CSS margin

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

    CSS margin

    How does one completely remove the space between inline elements with
    CSS? I've set margin-left, margin-right, and border-width to 0px, yet
    still there is a gap in all browsers I've tried (IE5-6, NS7, Safari).
    The only way I seem to be able to achieve it is to set negative values,
    but there must be a more 'correct' way.

    Glenn
  • Steve Pugh

    #2
    Re: CSS margin

    GDB <glenn@uvic.c a> wrote:
    [color=blue]
    >How does one completely remove the space between inline elements with
    >CSS? I've set margin-left, margin-right, and border-width to 0px, yet
    >still there is a gap in all browsers I've tried (IE5-6, NS7, Safari).
    >The only way I seem to be able to achieve it is to set negative values,
    >but there must be a more 'correct' way.[/color]

    URL?

    Do you have any whitespace (including line breaks) between the
    elements?

    <span>...<span> <span>...</span> should render with no space between,
    but <span>...<spa n>
    <span>...</span> will usually render with a space between, as if you
    had used <span>...<spa n> <span>...</span>

    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

    • GDB

      #3
      Re: CSS margin

      In article <ii1jivg1dh5mmb rbrhu312d95alk6 0g934@4ax.com>,
      Steve Pugh <steve@pugh.net > wrote:
      [color=blue]
      > GDB <glenn@uvic.c a> wrote:
      >[color=green]
      > >How does one completely remove the space between inline elements with
      > >CSS? I've set margin-left, margin-right, and border-width to 0px, yet
      > >still there is a gap in all browsers I've tried (IE5-6, NS7, Safari).
      > >The only way I seem to be able to achieve it is to set negative values,
      > >but there must be a more 'correct' way.[/color]
      >
      > URL?
      >
      > Do you have any whitespace (including line breaks) between the
      > elements?[/color]

      .. . . damndamndamndam ndamndamn . . . I forgot about the line breaks.

      Thanks :)

      Comment

      Working...