468,258 Members | 1,509 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,258 developers. It's quick & easy.

div inheritance problem

oll3i
679 512MB
Expand|Select|Wrap|Line Numbers
  1. echo "<div id=\"vertmenu\">";    
  2. echo    "<ul>";
  3.  
  4.         echo '<li><a href="javascript:void(0)" onclick="drop(\'vert_menu_drop1\')" class=current title=Profil>'.$var143.'</a></li>';
  5.         echo "<div id=\"vert_menu_drop1\" style=\"display: none;width:100px\">";
  6.         echo "<ul>";
  7.         echo '<li><a href="http://exec-jobs.purcon.pl/pracodawca/konto/view.php?language='.$language.'&modul_vert_menu=profile" title=Profil>'.$var148.'</a></li>';
  8.         echo '<li><a href="http://exec-jobs.purcon.pl/pracodawca/konto/edit.php?language='.$language.'&modul_vert_menu=profile" title=Profil>'.$var149.'</a></li>';
  9.         echo "</ul>";
  10.         echo "</div>";
  11. echo "</ul>";
  12. echo "</div>";
  13.  
why #vert_menu_drop1 ul li a gets the background image of #vertmenu ul li a?
Mar 3 '08 #1
3 1473
oll3i
679 512MB
Expand|Select|Wrap|Line Numbers
  1. #vert_menu_drop1 ul li a {
  2. display: block;
  3. border:0;
  4. padding: 5px 0px 2px 4px;
  5. text-decoration: none;
  6. color: #000;
  7. width:100px;
  8. background-color:#cccccc;
  9. }
  10.  
  11.  
  12. #vertmenu {
  13. width: 100px;
  14. padding: 0px;
  15. margin: 0px;
  16. }
  17.  
  18.  
  19. #vertmenu ul li a {
  20. display: block;
  21. border:0;
  22. padding: 5px 0px 2px 4px;
  23. text-decoration: none;
  24. color: #000;
  25. width:100px;
  26. background:transparent url(http://exec-jobs.purcon.pl/images/buttonOff.gif) repeat-x top left;
  27. }
  28.  
vert_menu_drop1 ul li a inherits style of vertmenu ul li a?
Why?

i m doing unfolding menu and i want the ul li a of the submenu to be different then the main menu
Could You please help?
Thank You
Mar 4 '08 #2
oll3i
679 512MB
i solved it i did ul li ul li a and ul li ul li a:hover style :)
Mar 4 '08 #3
acoder
16,027 Expert Mod 8TB
Moved to HTML/CSS forum.

Edit: threads merged.
Mar 4 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Morten Aune Lyrstad | last post: by
14 posts views Thread by Steve Jorgensen | last post: by
22 posts views Thread by Matthew Louden | last post: by
8 posts views Thread by Gaetan | last post: by
5 posts views Thread by colint | last post: by
5 posts views Thread by a | last post: by
3 posts views Thread by Leo Seccia | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.