divs correctly aligned in IE and not in FF

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

    divs correctly aligned in IE and not in FF

    Hi,

    i have this page: http://www.foodtoknow.org/test.htm

    when i look at it in IE the red div's in the center of the screen are
    aligned as they should (leaving a white border to the left the same size as
    the border to the left of the top bar picture).

    However, when i look at it in FF the red div's are put completely to the
    right border of the white box, not leaving the white border.

    I have validated both the HTML and CSS against the W3.org validator and for
    both i get that they are valid. So something else must be wrong or missing.

    I've been looking at this for days but it's driving me crazy, cause i can't
    find what's wrong.

    Does anyone have an idea what might be happening?

    Thx in advance,

    Regards,

    Thomas


  • Els

    #2
    Re: divs correctly aligned in IE and not in FF

    Mr. T. wrote:
    [color=blue]
    > Hi,
    >
    > i have this page: http://www.foodtoknow.org/test.htm[/color]

    I think that causes a deja vu here...
    [color=blue]
    > when i look at it in IE the red div's in the center of the screen are
    > aligned as they should (leaving a white border to the left the same size as
    > the border to the left of the top bar picture).
    >
    > However, when i look at it in FF the red div's are put completely to the
    > right border of the white box, not leaving the white border.[/color]

    Yup, definitely a deja vu ;-)
    [color=blue]
    > I have validated both the HTML and CSS against the W3.org validator and for
    > both i get that they are valid. So something else must be wrong or missing.
    >
    > I've been looking at this for days but it's driving me crazy, cause i can't
    > find what's wrong.
    >
    > Does anyone have an idea what might be happening?[/color]

    I still think what I said last time. Didn't that work?

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -

    Comment

    • Mr. T.

      #3
      Re: divs correctly aligned in IE and not in FF

      Hi Els,
      [color=blue]
      > I still think what I said last time. Didn't that work?[/color]
      Nope, i played with the padding and margins as you suggested, but the only
      thing happening was that it didn't look right in IE anymore either. Also
      removing or changing the "float" didn't help either.

      I tried to put a container around the boxes, but the problem was that in IE
      that was correct (the container stood where it needed to) but in FF the
      container also went completely the wrong way. It was positioned behind the
      big red box on top in stead of below where it should be.

      That's why i'm reposting my question, because it didn't work that way.

      Regards,

      Thomas


      Comment

      • Els

        #4
        Re: divs correctly aligned in IE and not in FF

        Mr. T. wrote:
        [color=blue]
        > Hi Els,
        >[color=green]
        >> I still think what I said last time. Didn't that work?[/color]
        > Nope, i played with the padding and margins as you suggested, but the only
        > thing happening was that it didn't look right in IE anymore either. Also
        > removing or changing the "float" didn't help either.
        >
        > I tried to put a container around the boxes, but the problem was that in IE
        > that was correct (the container stood where it needed to) but in FF the
        > container also went completely the wrong way. It was positioned behind the
        > big red box on top in stead of below where it should be.[/color]

        Okay, well, here is a patch - add this bit to your stylesheet:

        ..contentbox{
        margin-right:6px;
        }
        * html .contentbox{
        margin-right:0;
        }

        I didn't check in any other browsers than IE6, FF1 and Opera8, and I
        think it's more of a patch than a real fix actually.

        --
        Els http://locusmeus.com/
        Sonhos vem. Sonhos vão. O resto é imperfeito.
        - Renato Russo -

        Comment

        • Mr. T.

          #5
          Re: divs correctly aligned in IE and not in FF

          Hi,

          this works fine! Thx a lot!

          Thomas

          "Els" <els.aNOSPAM@ti scali.nl> schreef in bericht
          news:8y5tmmjqrv 03.1em3p6erclsj r$.dlg@40tude.n et...[color=blue]
          > Mr. T. wrote:
          >[color=green]
          >> Hi Els,
          >>[color=darkred]
          >>> I still think what I said last time. Didn't that work?[/color]
          >> Nope, i played with the padding and margins as you suggested, but the
          >> only
          >> thing happening was that it didn't look right in IE anymore either. Also
          >> removing or changing the "float" didn't help either.
          >>
          >> I tried to put a container around the boxes, but the problem was that in
          >> IE
          >> that was correct (the container stood where it needed to) but in FF the
          >> container also went completely the wrong way. It was positioned behind
          >> the
          >> big red box on top in stead of below where it should be.[/color]
          >
          > Okay, well, here is a patch - add this bit to your stylesheet:
          >
          > .contentbox{
          > margin-right:6px;
          > }
          > * html .contentbox{
          > margin-right:0;
          > }
          >
          > I didn't check in any other browsers than IE6, FF1 and Opera8, and I
          > think it's more of a patch than a real fix actually.
          >
          > --
          > Els http://locusmeus.com/
          > Sonhos vem. Sonhos vão. O resto é imperfeito.
          > - Renato Russo -[/color]


          Comment

          Working...