We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4678
    • 4 Posts
    In the mock up I did, for some reason, the banner across the top had a little 1 px positioning problem between IE and Firefox. The way I fixed it was to created 2 different images, detect the browser, then select one of the two images to display depending on the browser. I know that isn’t the best solution, but I got tired trying to finesse it and went with my "sledge hammer" fix.
    What I’m wondering is, can I do a bit of php in the template, huh or am I going to have to fix it right wink

    The url for the mock up is http://www.tigerbasketball.org/dev/index.php
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Use an IE conditional in the template’s head. It is ignored by all other browsers, and saves a tremendous amount of css hacking. http://www.quirksmode.org/css/condcom.html
      <!--[if IE 6]>
      Special instructions for IE 6 here
      <![endif]-->
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4678
        • 4 Posts
        Thanks for your response and wonderful help.

        Is there an else option? I think I would build 2 small css files that position that one image differently and load the IE-css ELSE load the other. Am I thinking about this correctly? or can I load the regular css, then if the user is on IE, load the other which will overrule the first???

        Thanks,
        Alisa
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          The IE conditional in the document head will override the external CSS file. Load the image as a background image. That will give you the advantage of being able to use the space if you want to.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 7923
            • 4,213 Posts
            Quote from: casa3311 at Aug 25, 2006, 10:07 PM

            What I’m wondering is, can I do a bit of php in the template, huh or am I going to have to fix it right wink
            Do a snippet (what is php code) and call it in the template, but I would prefer to fix it right by fixing your layout..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."