XP PRO IE v6 SP1 has CSS/div bug?

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Re: XP PRO IE v6 SP1 has CSS/div bug?

    Nope, no bug - it's doing what you told it to do. Aligning text left or right has no effect on the placement of the containing object.


    ..Adiv { float : left; width : 40%; background-color : #ff0000; text-align : left; }
    ..Bdiv { float : right; width : 40%; background-color : #0000ff; text-align : right; }
    ..Outterdiv { width : 100%; background-color : #008000; }


    --

    Dave
    -----------------------------------------------------------------
    I wonder why evolution hasn't got around to creating an undo button ...

    Using the web forums? See your missing answers here:
    Dreamweaver: [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    AppDev: [url]news://forums.macromedia.com/macromedia.dreamweaver.appdev[/url]
    UltraDev: [url]news://forums.macromedia.com/macromedia.ultradev[/url]
    =======================
    David R. Wheeler Guest

  2. #2

    Default XP PRO IE v6 SP1 has CSS/div bug?

    I have two div's (div-A and div-B) contained within a outer-div (div-C).
    How come div-A and B can't be side by side with the same vertical placement?
    Here is the CSS:
    <style>
    ..Outterdiv { width:100%; background-color:green; height:auto }
    ..Adiv { width:40%; backgroud-color:red; text-align:left }
    ..Bdiv { width:40%; backgroud-color:deepbluesky; text-align:right }
    </style>


    Here is the HTML:

    <DIV class="Outterdiv">
    <DIV class="Adiv ">
    123
    </DIV>
    <DIV class="Bdiv ">
    987
    </DIV>
    </DIV>


    Any ideas? Is this a bug? I have the style block placed directly in the
    body of the document... right after the opening body tag.


    jqpdev Guest

  3. #3

    Default Re: XP PRO IE v6 SP1 has CSS/div bug?

    I don't understand... Is the containing object the ".Outterdiv"?
    The end result is that I get:
    123
    987

    Instead of:
    123.............................987


    "David R. Wheeler" <dont-want@no.spam> wrote in message
    news:bo0sv1$kn1$1@forums.macromedia.com...
    Nope, no bug - it's doing what you told it to do. Aligning text left or
    right has no effect on the placement of the containing object.


    ..Adiv { float : left; width : 40%; background-color : #ff0000; text-align :
    left; }
    ..Bdiv { float : right; width : 40%; background-color : #0000ff; text-align :
    right; }
    ..Outterdiv { width : 100%; background-color : #008000; }


    --

    Dave
    -----------------------------------------------------------------
    I wonder why evolution hasn't got around to creating an undo button ...

    Using the web forums? See your missing answers here:
    Dreamweaver: [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    AppDev: [url]news://forums.macromedia.com/macromedia.dreamweaver.appdev[/url]
    UltraDev: [url]news://forums.macromedia.com/macromedia.ultradev[/url]
    =======================


    jqpdev Guest

  4. #4

    Default Re: XP PRO IE v6 SP1 has CSS/div bug?

    Yes, the outer container is still .Outterdiv
    Your html code didn't change, only the css.

    The css that goes in the <head> of your page

    <style type="text/css">
    <!--
    ..Adiv { float : left; width : 40%; background-color : #ff0000; text-align :left; }
    ..Bdiv { float : right; width : 40%; background-color : #0000ff; text-align : right; }
    ..Outterdiv { width : 100%; background-color : #008000; }
    -->
    </style>

    applied to your original code

    <body>
    ....
    <div class="Outterdiv">
    <div class="Adiv ">123</div>
    <div class="Bdiv ">987</div>
    </div>
    ....
    </body>

    will place Adiv on the left side and Bdiv on the right side, with both of these contained in Outterdiv

    I am assuming that there will also be content in Outterdiv to hold it open. Also, this will not work in NS4

    --

    Dave
    -----------------------------------------------------------------
    I wonder why evolution hasn't got around to creating an undo button ...

    Using the web forums? See your missing answers here:
    Dreamweaver: [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    AppDev: [url]news://forums.macromedia.com/macromedia.dreamweaver.appdev[/url]
    UltraDev: [url]news://forums.macromedia.com/macromedia.ultradev[/url]
    =======================
    David R. Wheeler Guest

  5. #5

    Default Re: XP PRO IE v6 SP1 has CSS/div bug?

    David,
    Thanks for the update. However, I have not been able to the A & B div's to
    stay side by side. The A div appears on top of the B div. So the output in
    the browser is:
    123
    .................................................. .....987

    The series of dots is to illustrate empty space and the right side text
    alignment of the B div. What I expected to get is
    123............................................... ..........................
    ..........................987

    Again the dots are for empty space.
    Part of the problem is that the A & B div's don't behave horizontally like
    table columns/cells/rows, and that is the behavior I was expecting. I also
    suspect that there is a carriage return/line feed being placed after the
    div's, but there is no what for me to tell in a browser window. Any ideas?


    "David R. Wheeler" <dont-want@no.spam> wrote in message
    news:bo26n7$aq7$1@forums.macromedia.com...
    Yes, the outer container is still .Outterdiv
    Your html code didn't change, only the css.

    The css that goes in the <head> of your page

    <style type="text/css">
    <!--
    ..Adiv { float : left; width : 40%; background-color : #ff0000; text-align
    :left; }
    ..Bdiv { float : right; width : 40%; background-color : #0000ff; text-align :
    right; }
    ..Outterdiv { width : 100%; background-color : #008000; }
    -->
    </style>

    applied to your original code

    <body>
    ....
    <div class="Outterdiv">
    <div class="Adiv ">123</div>
    <div class="Bdiv ">987</div>
    </div>
    ....
    </body>

    will place Adiv on the left side and Bdiv on the right side, with both of
    these contained in Outterdiv

    I am assuming that there will also be content in Outterdiv to hold it open.
    Also, this will not work in NS4

    --

    Dave
    -----------------------------------------------------------------
    I wonder why evolution hasn't got around to creating an undo button ...

    Using the web forums? See your missing answers here:
    Dreamweaver: [url]news://forums.macromedia.com/macromedia.dreamweaver[/url]
    AppDev: [url]news://forums.macromedia.com/macromedia.dreamweaver.appdev[/url]
    UltraDev: [url]news://forums.macromedia.com/macromedia.ultradev[/url]
    =======================


    jqpdev Guest

  6. #6

    Default Re: XP PRO IE v6 SP1 has CSS/div bug?

    Try putting top:0px into the style statement for each div.


    rob :: digitalburn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139