We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    I am having some problems with the margins on this page:

    http://www.rmsnav.com/services.html

    In Firefox, the margins for the unordered list render properly in the section for RM-Navigator. However, in IE 7, the bullets are getting hidden behind the image. Although in the specialty servicing section, IE 7 is obviously observing the margins as you can see. So is this a floating issue? I have played around with some other things and haven’t been successful. Any help would be appreciated!

    EDIT: I finally found something on Google with a person trying to do the exact same thing. <ul> to the right of a floated <img> All I needed to do was add a float:left declaration to the <ul>. I tried this early, but added it to the <li> oops :-D

    EDIT Part 2:

    Ok when I made those edits it caused some more problems. So I am back to the original. Why is IE7 not observing the margin-left declaration for the unordered list? You would think it would be 15px from the img like I set in the margin declaration. If I add float:left to the <ul> and then give it a width, then it floats properly, but as you can see the img I use for bullets shrinks in IE7, but looks fine in FF. The normal bullet size is shown under the "Links" section in the left sidebar.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 14050
      • 788 Posts
      Cross-browser compatibility sucks. The page does validate, so that isn’t the problem.
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 24495
        • 407 Posts
        There are many problems with floating images next to lists. I used following: display:table for the list generally and display:inline-block via a conditional comment for all IEs. Works fine for me in FF, IE, Opera.
          • 14050
          • 788 Posts
          That seems to do away with the overlap, but still encounters the same problem as if I just floated the list. The image I am using for the bullets seems to be shrunk by using either method.

          Look at this:

          http://www.rmsnav.com/services.html

          Under "Links" the orange arrow is the appropriate size, but it gets smaller in the main section for both IE6 and IE7, stays fine in FF. I used this code:

          .center ul {display:table; _display:inline-block; #display:inline-block;}


          I also have tried this code:

          .center ul {float:left; width: 400px}


          Both exhibit the the problem of the image used for the bullet being made smaller (or possibly cut off?)
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 14050
            • 788 Posts
            This is driving me insane. It doesn’t make any sense to me that a float declaration would cause the rendering of the image for the bullets to change.
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 14050
              • 788 Posts
              I bumped the margin up for the <li> element and it solved it. I imagine it was still overlapping somehow.
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 33372
                • 1,611 Posts
                IE7 takes height and width declarations very literally (it does not expand if the content is larger than the container), so perhaps your arrows were being cut off.
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 24495
                  • 407 Posts
                  There was no overlapping the list images. Firefox shows the images if they are outside the "defined area" of the list. IE doesn’t and cuts off the images. So you think there is an overlap of something. Solution is only playing with margins. If there are different subsets in FF and IE you should use conditional comments for different margins. You know what conditional comments are?

                  <link href="[(base_url)]assets/templates/yoursite/yoursite.css" rel="stylesheet" type="text/css" />
                  <!--[if IE]>
                  <link  href="[(base_url)]assets/templates/yoursite/yoursite-ie.css" rel="stylesheet" type="text/css" />
                  <![endif]-->
                    • 14050
                    • 788 Posts
                    I was hoping to avoid conditional comments smiley
                      Jesse R.
                      Consider trying something new and extraordinary.
                      Illinois Wine

                      Have you considered donating to MODx lately?
                      Donate now. Every contribution helps.
                      • 24495
                      • 407 Posts
                      Maybe a date with Bill Gates would help? grin