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

  1. #1

    Default DIV problem

    Hi!

    I have some zindex problem with DIV on my webform I have several
    asp:dropdownlist controls and in some case i want to show div in middle of
    that form but when I show that div every dropdownlis is above my div
    element. I try to set zIndex style for div but no result. Can someone help
    me with that problem!

    tnx


    Kekec Guest

  2. Similar Questions and Discussions

    1. contribute problem - access denied file may not existpermission problem
      Recieving the following error message - "access denied file may not exist , or there could be a permission problem" this happened this morning ,...
    2. Problem playing Quicktime thru .DCR embedded in HTML - pathreferencing problem?
      Greetings earthlings and Director heads. Here's the problem: created an HTML file containing shockwave (dcr) movie that calls quicktime movies in...
    3. Uploading problem = weird warning (was: access denied problem.....)
      Hi, I had a problem where my upload form was not working on our production server but was working on two other servers, after checking the...
    4. #21611 [Opn]: Problem with version_compare() (Was: Problem with pear cli and release numbers)
      ID: 21611 Updated by: et@php.net -Summary: Problem with pear cli and release numbers Reported By: jan at horde...
    5. Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
      HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I...
  3. #2

    Default Re: DIV problem

    Dropdown lists themselves are windows in IE browser and they have the
    highest Z index. You can not show anything on top of them. Try to use
    a popup window without toolbars etc.

    Thanks
    Ram

    "Kekec" <slosoftware@hotmail.com> wrote in message news:<#w8SzV$VDHA.2376@TK2MSFTNGP10.phx.gbl>...
    > Hi!
    >
    > I have some zindex problem with DIV on my webform I have several
    > asp:dropdownlist controls and in some case i want to show div in middle of
    > that form but when I show that div every dropdownlis is above my div
    > element. I try to set zIndex style for div but no result. Can someone help
    > me with that problem!
    >
    > tnx
    Ram Guest

  4. #3

    Default Re: DIV problem

    I can help you by being the messenger of bad news. There is no way to bring
    an html element in front of a drop down list. Certain windows controls
    always live above html block/inline elements. I use dhtml menu navigation
    that overlaps with specific page drop downs and the best solution I have
    found is to hide the offending controls when appropriate. The javascript I
    usually use is...

    // specific page javascript
    var ddl = document.getElementById("ddlBadWindowsDropDown");
    if ( ddl );
    controlsToHide[0] = ddl;

    // linked dhtml library...
    var controlsToHide = new Array():
    // time of hiding
    for ( int i = 0; controlsToHide.length; i++ )
    controlsToHide[i].style.display = "none";
    // time of showing
    for ( int i = 0; controlsToHide.length; i++ )
    controlsToHide[i].style.display = "inline"; // or "block" as appropriate

    "Kekec" <slosoftware@hotmail.com> wrote in message
    news:%23w8SzV$VDHA.2376@TK2MSFTNGP10.phx.gbl...
    > Hi!
    >
    > I have some zindex problem with DIV on my webform I have several
    > asp:dropdownlist controls and in some case i want to show div in middle of
    > that form but when I show that div every dropdownlis is above my div
    > element. I try to set zIndex style for div but no result. Can someone help
    > me with that problem!
    >
    > tnx
    >
    >

    PJ Guest

  5. #4

    Default Re: DIV problem

    tnx ! I'll try your code!


    "PJ" <pjwalNOSPAM@hotmail.com> wrote in message
    news:OgowDqAWDHA.1872@TK2MSFTNGP12.phx.gbl...
    > I can help you by being the messenger of bad news. There is no way to
    bring
    > an html element in front of a drop down list. Certain windows controls
    > always live above html block/inline elements. I use dhtml menu navigation
    > that overlaps with specific page drop downs and the best solution I have
    > found is to hide the offending controls when appropriate. The javascript
    I
    > usually use is...
    >
    > // specific page javascript
    > var ddl = document.getElementById("ddlBadWindowsDropDown");
    > if ( ddl );
    > controlsToHide[0] = ddl;
    >
    > // linked dhtml library...
    > var controlsToHide = new Array():
    > // time of hiding
    > for ( int i = 0; controlsToHide.length; i++ )
    > controlsToHide[i].style.display = "none";
    > // time of showing
    > for ( int i = 0; controlsToHide.length; i++ )
    > controlsToHide[i].style.display = "inline"; // or "block" as
    appropriate
    >
    > "Kekec" <slosoftware@hotmail.com> wrote in message
    > news:%23w8SzV$VDHA.2376@TK2MSFTNGP10.phx.gbl...
    > > Hi!
    > >
    > > I have some zindex problem with DIV on my webform I have several
    > > asp:dropdownlist controls and in some case i want to show div in middle
    of
    > > that form but when I show that div every dropdownlis is above my div
    > > element. I try to set zIndex style for div but no result. Can someone
    help
    > > me with that problem!
    > >
    > > tnx
    > >
    > >
    >
    >

    Kekec Guest

  6. #5

    Default div problem

    im trying to trying to add new divs into "menu" but whenever i do the div tags
    are placed into one as so
    <div class="menuheadingtxt" id="txtleft">
    <div>Content for New Div Tag Goes Here</div>
    <strong>girls aloud</strong></div>

    ive tried changing it to
    <div class="menuheadingtxt" id="txtleft">
    <strong>girls aloud</strong></div>
    <div class="sectionlinks">
    <p>fvfvf</p></div>

    but whenever i do the second tag moves to the right and gets in between the
    other divs.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style/style.css" rel="stylesheet" type="text/css">
    <link rel="shourtcut icon" href="favicon.ico">
    <link rel="icon" href="favicon.ico">

    <title>index</title>
    </head>

    <body>
    <!--Left Top-->
    <div id="topleft"><img src="images/1.png" width="70" height="72" ><img
    src="images/2.png" width="70" height="72" ><img src="images/3.png" width="70"
    height="72"><img src="images/4.png" width="70" height="72"><img
    src="images/5.png" width="70" height="72"></div>
    <!--Right Top/Heading-->
    <div id="topright"></div>
    <!--Split Bar-->
    <div id="split"></div>
    <!--Left Menu-->
    <div class="menu">
    <div class="menuheadingtxt" id="txtleft">
    <div>Content for New Div Tag Goes Here</div>
    <strong>girls aloud</strong></div>
    </div>
    <!--Middle Content-->
    <div id="middlecontent"></div>
    <!--Right Menu-->
    <div class="menu">
    <div class="menuheadingtxt"><strong>bg underground</strong></div>
    </div>
    </body>
    </html>

    body {
    width:800px;
    margin:0 auto;
    font-family: "Trebuchet MS";
    }
    #topleft {
    background-repeat: no-repeat;
    height: 80px;
    width: 378px;
    float: left;
    padding: 0px;
    margin-top: 0px;
    margin-right: 2px;
    margin-bottom: 8px;
    margin-left: 0px;
    background-color: #D4D4D4;
    }


    #split {
    background-color: #0099CC;
    height: 25px;
    width: 800px;
    float: left;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #FFFFFF;
    }

    #topright {
    background-color: #FF6600;
    background-repeat: no-repeat;
    padding: 0px;
    float: left;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 8px;
    margin-left: 0px;
    height: 80px;
    width: 420px;
    }
    .menu {
    background-color: #FFFFFF;
    background-image:
    url(file:///C|/Documents%20and%20Settings/Owner/My%20Documents/ga%20and%20bgu/im
    ages/menu.png);
    background-repeat: no-repeat;
    height: 400px;
    width: 200px;
    margin: 0px;
    padding: 0px;
    float: left;
    }

    #topleft img {
    padding: 0px;
    margin-top: 4px;
    margin-right: 1px;
    margin-bottom: 0px;
    margin-left: 4px;
    }

    #middlecontent {
    background-color: #66CC33;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    float: left;
    height: 300px;
    width: 398px;
    border-right-width: 1px;
    border-left-width: 1px;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #FFFFFF;
    border-left-color: #FFFFFF;
    }
    .menuheadingtxt {

    font-family: "Trebuchet MS";
    font-size: 11px;
    color: #FFFFFF;
    padding: 0px;
    margin-top: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    height: 10px;
    width: 120px;
    }


    evropa Guest

  7. #6

    Default Re: div problem

    Hi There,

    Now it should not happen try with this code

    ---------------------------- Code ------------------------------------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style/style.css" rel="stylesheet" type="text/css">
    <link rel="shourtcut icon" href="favicon.ico">
    <link rel="icon" href="favicon.ico">

    <title>index</title>
    <style type="text/css">
    body {
    width:800px;
    margin:0 auto;
    font-family: "Trebuchet MS";
    }
    #topleft {
    background-repeat: no-repeat;
    height: 80px;
    width: 378px;
    float: left;
    padding: 0px;
    margin-top: 0px;
    margin-right: 2px;
    margin-bottom: 8px;
    margin-left: 0px;
    background-color: #D4D4D4;
    }


    #split {
    background-color: #0099CC;
    height: 25px;
    width: 800px;
    float: left;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #FFFFFF;
    }

    #topright {
    background-color: #FF6600;
    background-repeat: no-repeat;
    padding: 0px;
    float: left;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 8px;
    margin-left: 0px;
    height: 80px;
    width: 420px;
    }
    .menu {
    background-color: #FFFFFF;
    background-image:
    url(file:///C|/Documents%20and%20Settings/Owner/My%20Documents/ga%20and%20bgu/im
    ages/menu.png);
    background-repeat: no-repeat;
    height: 400px;
    width: 200px;
    margin: 0px;
    padding: 0px;
    float: left;
    }

    #topleft img {
    padding: 0px;
    margin-top: 4px;
    margin-right: 1px;
    margin-bottom: 0px;
    margin-left: 4px;
    }

    #middlecontent {
    background-color: #66CC33;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    float: left;
    height: 300px;
    width: 398px;
    border-right-width: 1px;
    border-left-width: 1px;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #FFFFFF;
    border-left-color: #FFFFFF;
    }
    .menuheadingtxt {

    font-family: "Trebuchet MS";
    font-size: 11px;
    color: #FFFFFF;
    padding: 0px;
    margin-top: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    height: 10px;
    width: 120px;
    }


    </style>
    </head>

    <body>
    <!--Left Top-->
    <div id="topleft"><img src="images/1.png" width="70" height="72" ><img
    src="images/2.png" width="70" height="72" ><img src="images/3.png" width="70"
    height="72"><img src="images/4.png" width="70" height="72"><img
    src="images/5.png" width="70" height="72"></div>
    <!--Right Top/Heading-->
    <div id="topright"></div>
    <!--Split Bar-->
    <div id="split"></div>
    <!--Left Menu-->
    <div class="menu">
    <div class="menuheadingtxt" id="txtleft">
    <div>Content for New Div Tag Goes Here</div>
    <strong>girls aloud</strong></div>
    </div>
    <!--Middle Content-->
    <div id="middlecontent"></div>
    <!--Right Menu-->
    <div class="menu">
    <div class="menuheadingtxt"><strong>bg underground</strong></div>
    </div>
    </body>
    </html>
    ----------------------------------------- code ------------

    -laksinu

    laksinu Guest

  8. #7

    Default Re: div problem

    im still having the same problem, what changes did you make?
    evropa Guest

  9. #8

    Default Re: div problem

    can you place the file somewhere in the online url and show me what excatly the problem is ... may be i can help you out of this.

    laksinu Guest

  10. #9

    Default Re: div problem

    [url]http://evropa.bravehost.com/index.html[/url] - as you can see in IE the menu links line up just right, but in firefox not so much.
    [url]http://evropa.bravehost.com/style/style.css[/url]
    evropa Guest

  11. #10

    Default Re: div problem

    Yes, I see that i feel the problem causing is < h1 > in <h1 class="menuheadingtxt">Girls aloud</h1>

    Can you remove <h1> tag for Girls aloud and give a css using SPAN tag it may work
    laksinu Guest

  12. #11

    Default Re: div problem

    Validate your page. Fix those errors. Then post back....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "evropa" <webforumsuser@macromedia.com> wrote in message
    news:dm6dbv$fbh$1@forums.macromedia.com...
    > [url]http://evropa.bravehost.com/index.html[/url] - as you can see in IE the menu
    > links line up just right, but in firefox not so much.
    > [url]http://evropa.bravehost.com/style/style.css[/url]

    Murray *TMM* Guest

  13. #12

    Default Re: div problem

    i fixed all the errors and it is now valid xhtml. while fixing the errors i
    also managed to fix the aligment problem everything looks good in
    firefox,ie,opera now. i really appericate all your help laksinu, and Murray
    *TMM*

    evropa Guest

  14. #13

    Default Re: div problem

    Good luck - and you're welcome!

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "evropa" <webforumsuser@macromedia.com> wrote in message
    news:dm7t90$nq0$1@forums.macromedia.com...
    >i fixed all the errors and it is now valid xhtml. while fixing the errors i
    > also managed to fix the aligment problem everything looks good in
    > firefox,ie,opera now. i really appericate all your help laksinu, and
    > Murray
    > *TMM*
    >

    Murray *TMM* Guest

  15. #14

    Default Re: div problem

    great ! you're welcome
    laksinu 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