Hi,
How can I set up the styling for different levels of <ULto use
different images for bullets, be indenetd differently, ...
Like:
.. list 1
- item 1
- item 2
.. list 2
-item 1
- item 2
Thanks. 6 2253 as*******@hotmail.com writes:
Hi,
How can I set up the styling for different levels of <ULto use
different images for bullets, be indenetd differently, ...
Like:
. list 1
- item 1
- item 2
. list 2
-item 1
- item 2
You could use a "nested" selector:
UL LI UL {
...
}
This will style ULs that appear inside of LIs that appear inside of ULs.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net as*******@hotmail.com wrote:
Hi,
How can I set up the styling for different levels of <ULto use
different images for bullets, be indenetd differently, ...
Like:
. list 1
- item 1
- item 2
. list 2
-item 1
- item 2
ul{
list-style-image: url(image1.gif);
}
ul ul{
list-style-image: url(image2.gif);
}
ul ul ul{
list-style-image: url(image3.gif);
}
ul ul ul ul{
list-style-image: url(image4.gif);
}
(Yes, the spaces should actually be >'s, but last time I checked, MSIE
didn't support them.)
Grtz,
--
Rik Wasmus
On 14 Aug 2006 13:32:23 -0700, as*******@hotmail.com wrote:
Hi,
How can I set up the styling for different levels of <ULto use
different images for bullets, be indenetd differently, ...
Like:
. list 1
- item 1
- item 2
. list 2
-item 1
- item 2
Thanks.
Use classes.
<ul class="somemeaningfulname">
and
<ul class="someothermeaningfulname">
style <lipadding and list item within
..somemeaningfulname li
and
..someothermeaningfulname li
You can also use ID, or parent tag.
--
buy, bought, bye
Nije Nego wrote:
On 14 Aug 2006 13:32:23 -0700, as*******@hotmail.com wrote:
Hi,
How can I set up the styling for different levels of <ULto use
different images for bullets, be indenetd differently, ...
Like:
. list 1
- item 1
- item 2
. list 2
-item 1
- item 2
Thanks.
Use classes.
<ul class="somemeaningfulname">
and
<ul class="someothermeaningfulname">
style <lipadding and list item within
.somemeaningfulname li
and
.someothermeaningfulname li
You can also use ID, or parent tag.
--
buy, bought, bye
Thanks a lot for the help.
I used:
..lists {
margin:2em 0 0 2em;
}
..lists ul {
margin:0;
padding:0;
}
..lists li {
padding: 0 0 0.5em 1em;
list-style: url(../images/19dot1a.gif) circle outside;
}
..lists2 {
margin:0.5em 0 0 2em;
}
..lists2 ul {
margin:0;
padding:0;
}
..lists2 li {
padding: 0 0 0.5em 2em;
list-style: url(../images/2dot6a.gif) circle outside;
}
and in html:
<ul class="lists">
<li>li-level1-1</li>
<ul class="lists2">
<li>li-level2-1</li>
<li>li-level2-2</li>
<li>li-level2-3</li>
</ul>
<li>li-level1-2</li>
<ul class="lists2">
<li>li-level2-4</li>
<li>li-level2-5</li>
</ul>
</ul>
but they all line up under each other, with different bullet images. as*******@hotmail.com schrieb:
<ul class="lists">
<li>li-level1-1</li>
<ul class="lists2">
<li>li-level2-1</li>
<li>li-level2-2</li>
<li>li-level2-3</li>
</ul>
<li>li-level1-2</li>
<ul class="lists2">
<li>li-level2-4</li>
<li>li-level2-5</li>
</ul>
</ul>
You have to correct your HTML code: the nested ul elements must be
children of the li elements. Then you can use the "nested" approach and
don't need classes.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
On 14 Aug 2006 17:59:55 -0700, as*******@hotmail.com wrote:
but they all line up under each other, with different bullet images.
I am not sure what do you want to achieve, if you want U list in list
(nested), than you should code html like it follows:
<ul>
<linested list
<ul>
<li>li-level2-1</li>
<li>li-level2-2</li>
<li>li-level2-3</li>
</ul>
</li>
</ul>
This is a normal unordered list.
<ul>
<li>li-level2-4</li>
<li>li-level2-5</li>
</ul>
No css needed. List are styled diferently.
--
buy, bought, bye This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bearclaws |
last post by:
I am looping through a list of categories and want to display the list
horizontally (instead of vertically). I want to create a single row
with 4 list items in each cell of the row.
I thought...
|
by: CMAR |
last post by:
I have the following markup. The problem is that the browser, e.g., IE6,
inserts several lines of blank space between the <div> and the following
table. Is there a way to minimize that vertical...
|
by: abs |
last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li>
element ? In other words I have several lists like this:
<ul id="1">
<li>Aaaaaaaa</li>
<li>Bbbbbbbb</li>...
|
by: Shaun |
last post by:
Hello!
I have a quick question regarding CSS and having it applied to all
elements. I am trying to eliminate the gap between a paragraph and a
list that usually occurs in html and I've found...
|
by: Andrew Donaldson |
last post by:
I'd welcome some help in understanding what's going on with graphical
browsers in the navigation list at:
http://www.bounceandtickle.org.uk/index.html
(This site is not about what it might...
|
by: Viken Karaguesian |
last post by:
Hello all,
I'm have an annoyance I can't seem to solve. I'm working on a website that
has a sidebar floating to the right. In the sidebar is an unordered list. In
IE and in Opera, the list shows...
|
by: jasonchan |
last post by:
How do you align <ol> and <ul> elements when they are contained in a floated box?
Here is my website: http://geocities.com/jasonchan483/
Here's my problem.
The markers of the lists are...
|
by: Man-wai Chang |
last post by:
A 2 columns x 10 rows matrix input form
<ul>
<li>
<ul>
<li>item name 1
<li><input type="textbox" name="input_col_1_row_1">
<li><input type="textbox" name="input_col_1_row_2">
</ul>
<li>
|
by: capricious |
last post by:
Is it possible, so that when you do multiple <UL>'s to control how
deep the UL's are marked? For example, it would defaultly look like
this with multiple ULs and LIs:
-- Code :
Main...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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
|
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...
|
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...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |