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 12 of 12
  1. #1
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post

    Quirks or Crash? i hate ie

    http://news.redtv.org/

    If i don't have quirks mode:
    <!----> above doctype

    my page crashes IE and does not render properly, either.

    I believe it to be this expression:
    width: expression(document.body.offsetWidth - 400);

    why does this happen (other than ie sucks)

    and are there better hacks to use to make my page more IE compatible??

    god i hate ie.
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Not sure why it crashes, I don't use expressions in my pages. The question would be what are you trying to do with the expression? Make a fluid middle column? This can be achieved by floating the left column to the left, then the right column to the right, and then the middle column should have left and right margins to clear the left and right columns. Your html would have to in this order
    Code:
    <body>
    <div id="left-col"></div>
    <div id="right-col"></div>
    <div id="mid-col"></div>
    </body>

  • #3
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    I had that origionally, but as far as i could understand this disabled my ability to use
    Code:
    <br style="clear:both;" />
    in the center column, which i wanted to prevent floating items in the mid column from extending beyond the entry div's
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can't style a br tag, its been discussed in the forums. If your middle column has enough margin on the left and right side float elements shouldn't be move into it.

  • #5
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    oh really? i'll look into that no styling BR,

    but my problem with floating left and right columns isnt that they intrude on my mid column, its that I occasionally want to "clear both " within the center column.... follow me? like if i have an entry with a image floated left, i want to clear it before the next entry in the mid cloumn starts, but i dont want that to drop the mid column down below the side columns. am i confused?
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The clear would work fine in the middle column, use a div to clear:both; setting the line-height to 0 and putting &nbsp; inside the div. Maybe you can mark up an example of what you are trying to explain. That could help.

  • #7
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    http://news.redtv.org/templates/3cols.html

    see how the center column has 2 "ENTRY" div's but, the second one is dropped below the side columns?

    Is there a way around this other than absolutely position the side columns?
    the beast way i can think to say it is:
    I want to clear:both column specific, or within in a div.
    Last edited by zro@rtv; 07-20-2005 at 03:59 AM. Reason: specify
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    That is some strange behavior. I've never seen FF act that way. The clearing div should just extend to clear the image.

  • #9
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    really.... well ****! am i cursed? it's all that trash talkin i've done about ie... ie has infected my mind! (thanks btw, didnt say thanks yet, so THANKS!... and ill thank you again, when we figure it out...)
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #10
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Okay well you might be able to use this
    Code:
    <script type="text/javascript">
    function thewidth(){
    if(document.body.clientWidth){
    var bodywidth=document.body.clientWidth;
    document.getElementById('center').style.width=bodywidth-400+'px';
    }
    }
    onresize=thewidth;
    onload=thewidth;
    </script>
    for IE and just use the original layout you had.

  • #11
    Regular Coder Pepe, the bull's Avatar
    Join Date
    Feb 2005
    Location
    Vancouver, WA
    Posts
    163
    Thanks
    1
    Thanked 16 Times in 16 Posts
    I'm not sure how clean of coding this is, but you could do away with the clear:both; divs and just set the height of the individual div that has the pic to the height of the pic.
    Pepe, the bull

  • #12
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    thanks, engineer, I'll prolly use that untill i can think of something else.
    in honesty, I'd like to use the float for side columns, so i can stick a footer at the bottom, but i cant do that if i absolute the sides. grrr.... dam u, IE!


    found info on this if others have questions, 2.
    http://www.positioniseverything.net/easyclearing.html
    near the bottom: sections:
    A Word Of Warning (this is important!)
    and
    Preventing External Clearing
    Last edited by zro@rtv; 07-20-2005 at 06:08 AM. Reason: more info
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999


  •  

    Posting Permissions

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