Skip navigation
Currently Being Moderated

simply trying to change color of ul(s)

Aug 5, 2012 9:09 AM

Tags: #css #cs6 #dw

Greetings All,

 

I'm new, so plz bear with me.  I'm designing my webpage and I have a background image, changed the text color here, changed the font there (told you I was new, right?  *grin* )...  anyways - I seem unable to change the font color of the ul(s).  The bullets change colors, but not the items in the list... oh, I think I've got it... hang on...  ok, nope...  I did find a way to change the text colors, though....   must select the text itself & then change the font color...  I'm still trying to apply a rule, but seems to be a no-go.  Any ideas?  Thx in advance!

 

many smiles~

Joy

 
Replies
  • Currently Being Moderated
    Aug 5, 2012 9:21 AM   in reply to Joy King

    Let's start at the beginning.  Which version of DW are you using?  And do you have a live version of your page uploaded?  Many times the method you would use to change some tag's properties will depend on the context of that tag.  If you would post a link to your live page, we could see what you are working with, examine the HTML and the CSS code, and give you an answer that is tailored to your page and its usages.  If you do not have a live page, then please post the code for the page here in a reply (note: you cannot use email to do that - you must come to the webforum in your browser).

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 9:23 AM   in reply to Joy King

    Welcome Joy!

     

    Start with the links below:

     

    HTML & CSS Tutorials - http://w3schools.com/

     

    Styling Links with CSS:

    http://www.w3schools.com/css/css_link.asp

     

    Creating  your first web site in DW -

    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.htm l

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2012 10:56 AM   in reply to Joy King

    Use a <span></span> tag around the text in the <li></li> (see below). Then set the text and bullet color using css (see below).

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>Untitled Document</title>

    <style type="text/css">

    li {

        color:#0C3;

    }

    li span {

        color:#369;

    }

    </style>

    </head>

     

    <body>

    <ul>

    <li><span>Some text</span></li>

    <li><span>Some more text</span></li>

    </ul>

    </body>

    </html>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points