473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1620
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

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
3
by: Morten Aune Lyrstad | last post by:
Hi again! I'm having problems with inheritance. I have a base interface class called IObject. Next I have two other interfaces classes, IControl and ICommandMaster, which derives from IObject. ...
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
8
by: Gaetan | last post by:
hi i have 2 classes A1 and A2 implementing a problem with 2 different ways i also have 2 other classes X1 and X2 implementing an other problem i need classes that provide A1+X1 methods,...
6
by: VR | last post by:
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages, my MasterPage does not have a form tag itself...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
5
by: colint | last post by:
Hi I'm fairly new to c++ and I have a question regarding inheritance. I'm trying to create a class based on 2 inherited classes, e.g. class A { ... } class B: public A
5
by: a | last post by:
Hi, I have an oop inheritance graph problem. What is the difference betweent the following 2 inheritance graph? How does the C++ solve the naming conflict problem for multiple inheritance...
3
by: Leo Seccia | last post by:
Hello everyone, I have a c# project with a sql server database. I have a number of lookup tables in my database which I successfully managed to import into my LINQ dataclasses. eg. Table:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.