A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Help pls! Good CSS forum needed

  1. #1
    Oso polar Poco's Avatar
    Join Date
    Apr 2003
    Location
    Slovakia
    Posts
    218

    Help pls! Good CSS forum needed

    Hello everybody!

    I know that this is a Flash-site, of course, but anyway I have to try: Don't you know some GOOD css forum? I have a code (menu by CSS) which simply makes me go insane and I can't figure it out. Any ideas greatly appreciated!
    Thank you!

    Poco

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Location
    Top Shelf
    Posts
    757
    why dont you read some css tutorials? or post it here if you dont understand it. css isnt axactly hard.
    This information is subject to change without notice and
    is provided "as is" with no warranty.

  3. #3
    Oso polar Poco's Avatar
    Join Date
    Apr 2003
    Location
    Slovakia
    Posts
    218
    Okidoki, worthy a shot. I have a quite big problem, I simply can't make it work fine in IE (as usually... it works fine in Opera, Mozilla and Firefox) This is supposed to be a menu, take a look at the code. It works fine if I move the mouse over it from the left side only. If I move it from right, it doesn't interact till I reach the link "Nendeto". Then if I move it straight down (from link "Nendeto" to link "subA") the menu simply jumps back. The only way how to target the submenu's links is to move the mouse from the left side over Nendeto, go down on the left side next to the links of submenu and then move it to one of the submenu's links. Here is the code of HTML:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd"> 
    <html> 
    <head> 
    <title>Untitled Document</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    <link rel="stylesheet" type="text/css" href="style.css"> 
    <script type="text/javascript" language="javascript1.4"> 
    startList = function() { 
       if (document.all&&document.getElementById) { 
          navRoot2 = document.getElementById("submenu");//moje 
          navRoot = document.getElementById("nav"); 
          for (i=0; i<navRoot.childNodes.length; i++) { 
             node = navRoot.childNodes[i]; 
             if (node.nodeName=="LI") { 
                node.onmouseover=function() { 
                   this.className+=" over"; 
                } 
                  node.onmouseout=function() { 
                     this.className=this.className.replace(" over", ""); 
                } 
             } 
          }       
          for (i=0; i<navRoot2.childNodes.length; i++) { 
             nodex = navRoot2.childNodes[i]; 
             if (nodex.nodeName=="LI") { 
                nodex.onmouseover=function() { 
                   this.className+=" over"; 
                } 
                  nodex.onmouseout=function() { 
                     this.className=this.className.replace(" over", ""); 
                } 
             } 
          } 
       } 
    } 
    window.onload=startList; 
    </script> 
    
    </head> 
    
    <body> 
       <div id="mainpage"> 
          <div id="menu"> 
             <ul id="nav"> 
                <li><a href="#">Nendeto</a> 
                   <ul id="submenu"> 
                      <li><a href="#">SubA</a></li> 
                      <li><a href="#">SubB</a></li> 
                      <li><a href="#">SubC</a></li> 
                   </ul> 
                </li> 
                <li><a href="#">Menu2</a></li> 
                <li><a href="#">Menu3</a></li> 
             </ul> 
          </div> 
       </div> 
    </body> 
    </html>
    and the CSS:
    Code:
    body { 
       background: #CCCCCC url('pics/backline.jpg') fixed; 
       margin:0; 
       padding:0; 
       font-family:Arial, Helvetica, sans-serif; 
       } 
        
    #menu { 
       width:150px; 
       height:500px; 
       background-color:#CCCCCC; 
       border-right:1px dashed; 
       border-right-color:#666666; 
       text-align:left; 
       } 
    
    ul li { 
       display:block; 
       list-style-type: none; 
       border-top:1px solid #666666;    
       text-indent:15px; 
       } 
    
    ul#submenu  li { 
       visibility:hidden; 
       display:none; 
       } 
        
    #menu ul li:hover ul#submenu li, #menu ul li.over ul#submenu li { 
       visibility: visible; 
       display:list-item;    
       background-color:FF9900; 
       list-style-type:circle; 
       list-style-position:inside; 
       border-top:1px solid; 
       border-top-color:#666666; 
       padding: 1px 30px 1px 15px;    
       } 
        
    li:hover ul#submenu li:hover, li.over ul#submenu li.over { 
       background: #FF9900; 
       } 
        
    ul { 
       margin:0; 
       padding:0; 
       } 
    
    a { 
       color:#000000; 
       font-family:Verdana, Arial, Helvetica, sans-serif; 
       font-weight:bold; 
       font-size:14px; 
       text-decoration:none; 
       } 
        
    a:visited { 
       color:#000000; 
       } 
           
    #mainpage { 
       position:absolute; 
       top: 70px; 
       left: 2%; 
       right: 2%; 
       width:95.6%; 
       background-color: #ffffff; 
    }
    Any help would be greatly appreciated! Thank you!

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Location
    Top Shelf
    Posts
    757
    if this works in firefox then this probably isnt an issue of the css working, but a problem in how IE isnt rendering the page properly. Its css support isnt fully standards compliant, therefore it isnt easy to spot the problem.
    This information is subject to change without notice and
    is provided "as is" with no warranty.

  5. #5
    Oso polar Poco's Avatar
    Join Date
    Apr 2003
    Location
    Slovakia
    Posts
    218
    Well, of course I know that, but try to explain and convince 90% users of PC to change their lovely IE for something else... I am sure there is a way around this and can be solved by CSS. Once I saw a nice example of something similar but of course I didn't keep the files. So anybody knows a good css forum?

  6. #6
    Senior Member
    Join Date
    Sep 2001
    Location
    Top Shelf
    Posts
    757
    theres about 5 here
    This information is subject to change without notice and
    is provided "as is" with no warranty.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center