SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: float in IE 5

  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    float in IE 5

    I managed to narrow this down to an IE 5 incompatibility issue. See http://sitepointforums.com/showthrea...449#post426449 for the explanantions and commentary.

    So now I have to ask the CSS geeks WHAT I can do in place of float to achieve the same result? Again, the page in question is http://www.elimfellowship.org/usmd/women. The text seems to be bleeding off the page.

    Thanks.
    Sketch
    Aaron Brazell
    Technosailor



  2. #2
    SitePoint Zealot
    Join Date
    Feb 2002
    Location
    UK
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have got a suggestion for you.

    setting a width for the div 'contentlayer' seems to solve the positioning problem in IE5.0

    If you can change

    <div class="contentlayer"> to <div id="contentlayer">

    and make sure to change .contentlayer to #contentlayer in the associated .css as well.

    You could then dynamically set the width of contentlayer for IE5 by adding the following lines to your init() function:
    Code:
    if (isMinIE4)
    	contentlayer.style.pixelWidth = fullWidth-125;
    	//125px is left offset of contentlayer
    you'll have to check what this does in later versions of IE, and adjust code as needed - i only have IE5.0

    btw: i also noticed that the positioning is slightly awry on another page in IE5.0 - http://www.elimfellowship.org/usmd/men
    as the right-aligned pic covers text - but again this is fixed if you set a width for 'contentlayer'.

    hope this all helps
    Last edited by martm; May 5, 2002 at 15:50.

  3. #3
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about absolute positioning? Use a the page margin to keep the main part of the page away from the red area and use negative margins on objects for area's that overlap the red area. :-)

    BTW, Opera has a default padding on the page, so you may want to use both "margin: 0;" and "padding: 0;" for the <BODY>.

    ~~Ian


Bookmarks

Posting Permissions

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