472,958 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

div inheritance problem

679 512MB
Expand|Select|Wrap|Line Numbers
  1. echo "<div id=\"vertmenu\">";    
  2. echo    "<ul>";
  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>";
why #vert_menu_drop1 ul li a gets the background image of #vertmenu ul li a?
Mar 3 '08 #1
3 1610
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. }
  12. #vertmenu {
  13. width: 100px;
  14. padding: 0px;
  15. margin: 0px;
  16. }
  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. }
vert_menu_drop1 ul li a inherits style of vertmenu ul li a?

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
679 512MB
i solved it i did ul li ul li a and ul li ul li a:hover style :)
Mar 4 '08 #3
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

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...
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. ...
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...
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...
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,...
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...
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...
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
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...
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:...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.