Reply
How do i make a patterned list
Old 02-11-2008, 01:24 PM How do i make a patterned list
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
i was wondering how people make a patterned list i.e white then black then white then black etc. how do i do it.
__________________
My webmaster news & tips blogs with free scripts and tutorials - http://ap-gfx.com
andyp is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-11-2008, 02:34 PM Re: How do i make a patterned list
Webmaster Talker

Posts: 559
I would think that the easiest way would be to add a class to the <li> tag.

Code:
li.black {
     background-color: black;
}

li.white {
     background-color: white;
}
HTML:
Code:
<ul>
    <li class="black">This is black</li>
    <li class="white">This is white</li>
</ul>
zincoxide is offline
Reply With Quote
View Public Profile
 
Old 02-11-2008, 04:30 PM Re: How do i make a patterned list
Webmaster Talker

Posts: 691
Location: Kokkola, Finland
actually you would only need one class for the 'other' colour (say black) and then make the default list style white when you define the list in your stylesheet
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-12-2008, 05:39 AM Re: How do i make a patterned list
chrishirst's Avatar
Super Moderator

Posts: 15,326
Location: Blackpool. UK
Not in a list
BUT

http://www.candsdesign.co.uk/page-templates/piano-keys/

one day I'll code a cursor that looks like a hand playing the keys
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2008, 05:47 AM Re: How do i make a patterned list
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
Omg that is horrible (mark-up) chris! Ladynred would shoot you if she saw.

Usually, there's some script involved (PHP, ASP, Javascript) because it's a list generated by the CMS.
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 08:22 AM Re: How do i make a patterned list
chrishirst's Avatar
Super Moderator

Posts: 15,326
Location: Blackpool. UK
Yep

just one of these throw something together as "proof of concept" ideas.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2008, 12:49 PM Re: How do i make a patterned list
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Thanks
__________________
My webmaster news & tips blogs with free scripts and tutorials - http://ap-gfx.com
andyp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do i make a patterned list
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15259 seconds with 12 queries