473,396 Members | 2,013 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.

problem with list

Hello i have the following Unordered List with the shown stylesheet
definiton (out of mambo cms).
What i like to have is that page 3 is shown with circle-full.gif but
that didn't work out.
Can someone paste me a good explaining url or a solution for me?

<ul id="mainlevel">
<li><a href="page1" class="mainlevel">Page1</a></li>
<li><a href="page2" class="mainlevel">Page2</a></li>
<li><a href="page3" class="mainlevel" id="active_menu">Page3</a></li>
</ul>
with the following style definition

#mainlevel li a{
background-repeat: no-repeat;
background-position: 8px;
display: block;
margin-left: 0px;
-moz-background-clip: initial;
-moz-background-origin: initial;
-moz-background-inline-policy: initial;
list-style-image: none;
}

#mainlevel li a:link, #mainlevel li a:visited{
background-image: url(/images/circle.gif);
}

#mainlevel li a:hover{
background-image: url(/images/circle-full.gif);
}
#active_menu{
background-image: url(/images/circle-full.gif);
}
Sep 11 '05 #1
4 1571
On Sun, 11 Sep 2005 14:11:19 +0200, Wilhelm Kutting
<wk******@arcor.de> wrote or quoted :
<ul id="mainlevel">
<li><a href="page1" class="mainlevel">Page1</a></li>
<li><a href="page2" class="mainlevel">Page2</a></li>
<li><a href="page3" class="mainlevel" id="active_menu">Page3</a></li>
</ul>


I the first thing I would do is get rid of the id="mainlevel" and get
rid of the markup on each href

You only need to mark the ul <ul class="mainlevel">

Then you can select the hrefs with with

ul.mainlevel li a:link { .... }

or the lis with ul.mainlevel li { }
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Sep 11 '05 #2
Roedy Green wrote:
On Sun, 11 Sep 2005 14:11:19 +0200, Wilhelm Kutting
<wk******@arcor.de> wrote or quoted :

<ul id="mainlevel">
<li><a href="page1" class="mainlevel">Page1</a></li>
<li><a href="page2" class="mainlevel">Page2</a></li>
<li><a href="page3" class="mainlevel" id="active_menu">Page3</a></li>
</ul>

I the first thing I would do is get rid of the id="mainlevel" and get
rid of the markup on each href

You only need to mark the ul <ul class="mainlevel">

Then you can select the hrefs with with

ul.mainlevel li a:link { .... }

or the lis with ul.mainlevel li { }


I would have thought that, provided this ul is to be used uniquely, the
css rules and markup might be

ul#mainlevel li {...}
ul#mainlevel li a {...}
etc

with
<ul id="mainlevel">
<li><a href="page1">Page1</a></li>
<li><a href="page2">Page2</a></li>
<li><a href="page3" id="active_menu">Page3</a></li>
</ul>

What I am surmising is that there can be many incidents of styled
children of a unique parent (the mind boggles)

Louise
Sep 12 '05 #3
boclair wrote:
[...]

I would have thought that, provided this ul is to be used uniquely, the
css rules and markup might be

ul#mainlevel li {...}
ul#mainlevel li a {...}
etc


Maybe a dumb question, but does the leading 'ul' have any effect? Wouldn't:

#mainlevel li {...}
#mainlevel li a {...}

do just as well (given that the id 'mainlevel' can only appear on one
element anyway)?

[...]

--
Rob
Sep 12 '05 #4
RobG wrote:
boclair wrote:
[...]

I would have thought that, provided this ul is to be used uniquely,
the css rules and markup might be

ul#mainlevel li {...}
ul#mainlevel li a {...}
etc

Maybe a dumb question, but does the leading 'ul' have any effect?
Wouldn't:

#mainlevel li {...}
#mainlevel li a {...}

do just as well (given that the id 'mainlevel' can only appear on one
element anyway)?

[...]

It doesn't except to aid the author in managing the style sheet,
especially long ones. It groups of selectors logically and helps where
inheritance could override. For example, take this snippet out of a
style sheet 2789 lines long used for a basically dynamically generated
site. Is it not easier to find where the selectors are grouped in
context.

Louise

_____CSS SNIPPET____________
div.minutecontent a {
color: #0000FF;
display: block;
font: normal 90% "Courier New", Courier, monospace;
margin-bottom: 0.5em;
}
div.minutecontent a:hover {
color: #C00000;
}
div.minutecontent div#toc {
background: #EFEFEF;
border: 1px solid #006600;
float: right;
margin-left: 0.2em;
margin-top: -1em;
padding: 3px;
width: 250px;
}
div.minutecontent div.action {
color: #1B060B;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
margin-top: 0.7em;
padding-right: 10px;
text-align: right;
text-decoration: underline;
}
div.minutecontent div.authenticate {
font: bold 90% "Courier New", Courier, monospace;
margin-top: 1em;
}
div.minutecontent div.authenticate div.auth-line{
margin-bottom: 0.5em;
}
div.minutecontent div.authenticate div.sign{
float: right;
width: 140px;
}
div.minutecontent div.decision {
color: #1B060B;
float: right;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
margin-top: 0.7em;
padding-right: 10px;
text-align: right;
text-decoration: underline;
width: 100px;
}
div.minutecontent div.election {
margin-bottom: 0.7em;
margin-left: 3em;
margin-top: 0.7em;
}
div.minutecontent div.election b {
text-decoration: underline;
}
div.minutecontent div.election div.election-detail {
margin-left: 1em;
}
div.minutecontent div.election div.election-detail div.nomination {
margin-top: 1em;
}
div.minutecontent div.election div.election-detail div.election-posn {
margin-left: 1em;
text-decoration: underline;
}
div.minutecontent div.election div.election-detail div.name {
float: right;
margin-left: 2px;
margin-right: -15px;
text-align: left;
width: 200px;
}
div.minutecontent div.genbiz {
margin-left: 2em;
}
div.minutecontent div.genbiz h5 {
font-size: 95%;
text-decoration: none;
}
div.minutecontent div.resolution {
border-left: 1px solid #0002E1;
color: #1B060B;
font-family: "Courier New", Courier, monospace;
font-style: italic;
font-weight: bold;
margin-left: 3.5em;
margin-top: 0.7em;
padding-left: 2px;
width: 340px;
}
div.minutecontent div.uplink a {
background: #EFEFEF;
border: 1px solid #006600;
float: left;
font: bold 16px "Courier New", Courier, monospace;
margin-bottom: -1em;
margin-top: 0.5em;
padding: 3px;
text-decoration: none;
width: 30px;
}
div.minutecontent div.uplink a:hover {
background: #C00000;
color: #FFFFFF;
}
div.minutecontent h4 {
clear: both;
font-size: 16px;
margin: 1em 0 0;
text-align: center;
}
div.minutecontent h5 {
clear: both;
font-size: 12px;
margin: 1em 0 0;
text-decoration: underline;
}
div.minutecontent mover {
margin-top: 0.7em;
}
div.minutecontent p {
margin-bottom: 0;
margin-left: 2em;
margin-top: 0.5em;
}
div.minutecontent span {
text-decoration: underline;
}
div.minutecontent ul.iestat {
list-style-type: none;
}
div.minutecontent ul.iestat div.amount {
float: right;
padding-right: 1em;
text-align: right;
width: 100px;
}
div.minutecontent ul.iestat li {
clear: both;
}

_____END CSS SNIPPET______
Sep 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
10
by: Michael Strorm | last post by:
Hi! I've been having problems with a DTD. Having had the Sun XML validator reject a document, I put it through 'xmllint' for more information. 'Xmllint' noted a problem with the DTD itself;...
2
by: Pascal Deparis | last post by:
Hi, I've got a problem with the DB2 Command Line Processor, in V8, FP1. The databases have been created on an AIX server (version 4.3.3). Have a look at this: >db2 ? list DB21034E The...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
57
by: Xarky | last post by:
Hi, I am writing a linked list in the following way. struct list { struct list *next; char *mybuff; };
1
by: cody | last post by:
I have a OOP problem with the well known pattern where objects containing an object which represents a list of subobjects. Now my problem is that the ctor of a subobject indirectly calls the...
14
by: rurpy | last post by:
Another Python docs problem... I was trying to use imp.find_module(). >>> imp.find_module("mymod", "./subdir") ImportError: No frozen submodule named ./subdir.mymod subdir/mymod.py...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
4
by: FBM | last post by:
Hi, I am working on a program that simulates one of the elements of ATM. The simulation stores events which occurs every some milliseconds for a certain amount of time. Every time that an event...
7
by: Fernando Barsoba | last post by:
Hi, After following the advice received in this list, I have isolated the memory leak problem I am having. I am also using MEMWATCH and I think it is working properly. The program does some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.