Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Positioning problem with IE -- Please Help!!

    Please go to:

    http://www.geocities.com/yguo080/

    When I go to the site with Mozilla, and I minimize the stupid yahoo thing below:



    My page shifts to the right appropriately.

    When I try doing the same thing in IE, it doesn't shift.

    This is a big issue for me because I will be using absolute positioning throughout the web page and I will run into major issues later on with it.

    Here is my html for that page:


    <html>
    <head>
    <script type="text/javascript">

    </script>

    <script type="text/css">

    </script>

    </head>


    <body bgcolor='#ffffff'>

    <div style="position:fixed;position:absolute;top:20px;left:100px;right:100px">

    <div id="banner" align="center"><img src="images/FreshMartBanner.gif"/></div>
    <div id="menu" align="center">
    <script language="JavaScript" vqptag="doc_level_settings" is_vqp_html=1 vqp_datafile0="new_menu2.js" vqp_uid0=818402>cdd__codebase = "";cdd__codebase818402 = "";</script><script language="JavaScript" vqptag="datafile" src="new_menu2.js"></script><script vqptag="placement" vqp_menuid="818402" language="JavaScript">create_menu(818402)</script>
    </div>
    </div>

    <div id="slidingText" style="position:absolute;top:250px;left:50px;right:50px">

    <font style="font-size:15pt;font-style:italic;font-weight:800;color:#CC6600"><MARQUEE align="center" WIDTH="600" BEHAVIOR=SCROLL DIRECTION=LEFT BEHAVIOR=ALTERNATE BGColor="#FFFFFF">Green Seedless Grapes on Sale for $4.99!!.......................Check out our finely packaged salads too!................................</MARQUEE></font>
    </div>

    </body>
    </html>

    <!--------------------------------------------------------->

    Thank you for your help!!

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    I think that because of your ad, IE may say, look there's an ad, lets center that, too! to fix this, you may want to put your absolutely positioned stuff in a relatively positioned wrapper div.

    Dan

    EDIT:
    It looks as if there is a JS error, and that the <marquee> (a deprecated tag) scroller is cutting off your menu. It may be easier, once you fix these basic errors, to diagnose more significant problems in your code.
    Last edited by whizard; 02-20-2005 at 12:45 AM.
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •