We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13137
    • 204 Posts
    Can some body please help me before my head explodes huh

    I have different pages that the content gets bumped down, starting where the sidebar ends. It seems to be a 3px more or less problem, and just with IE, everything goes smooth in FF. I keep adjusting margins and padding, but it just doesn’t want to do what its supposed to do.

    An example is at: http://teideastro.com/index.php?id=96

    Thank you any one, who can spare a few minutes. undecided
      • 33372
      • 1,611 Posts
      I don’t see any major differences between IE7 and Firefox 3 beta 5 when viewing your example. Can you be more specific as to what you’re seeing (post images if you can)? In both of those browsers your design looks fine to me.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 4310
        • 2,310 Posts
        The only thing I noticed in Firefox 2 was the searchbox and search icon have broken onto two lines which doesn’t happen in IE7.
          • 13137
          • 204 Posts
          Sorry, I didn’t specify which browsers I was using.

          IE6 is my head ache. When you enter some pages, like the one I posted, it appears to be blank, unless you scroll down, then you can see that there is some content.

          FF looks as it is supposed to, more or less. I noticed the search bar too, but wasn’t too concerned about it.

          Thanks for such a speedy reply.
            • 27889
            • 415 Posts
            Ie6 and before don’t manage the width of elements as other (standards compliants) browsers, search for the "box model hack" and you will find a soluce with all corrects explanations. Note that ie7 has the correct behavior for width.
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 12796
              • 5 Posts
              Hi

              Without going to deep into the code .. to make IE act as standardscompliant as possible you should use a ’strict’ doctype. xhtml 1.0 strict is ok.

              On a floating container like your sidebar with a fixed width, I recommend avoiding additional paddings and margins. This values are added to width and height and render more or less precisely.

              Sometimes, giving 2 or 3px more air (margin) on the neighbour side of the floating element helps.
              But it’s better avoiding CSS Voodoo and hacks: Use a fixed-width outer-container without margin/padding for your sidebar, and insert a container without sizes, but with margin/padding, as you need. Avoid specifying widths to the elements inside this margin-padding-no-size-container, if they should fit tightly into it. A block level element takes the whole available width anyway.

              Hope this strategy helps
              :)
                • 5340
                • 1,624 Posts
                remove all default formatting
                *{margin:0;border:0;padding:0}

                  • 12796
                  • 5 Posts
                  xpix’s suggestion extended:

                  google for "reset.css". You will find some CSS neutralizing the default styling of browsers. You may compare the yahoo-sheet and Eric Meyers one and then customize what you find to your needs.

                  :)
                    • 13137
                    • 204 Posts
                    Thank you all for your suggestions.
                    I needed to take a few days away from it to regain my sanity. shocked
                    Will play with it some more in the next few days.