www.webdeveloper.com
Results 1 to 7 of 7

Thread: styling an li...

  1. #1
    Join Date
    Mar 2004
    Location
    Maine
    Posts
    473

    styling an li...

    Hmm... How do you style an li that has an id? I know how to do it with normal li's but i cant remember/figure out how to style styled one. When i say li i mean

    Code:
    <li>
    Just in case no one knows what I'm talking about

  2. #2
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Code:
    #myLI {
      color: red;
      list-style-type: square;
    }
    Code:
    <li id="myLI">List item.</li>

  3. #3
    Join Date
    Mar 2004
    Location
    Maine
    Posts
    473
    easy enough... thanks!

  4. #4
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Welcome.

  5. #5
    Join Date
    Jan 2004
    Posts
    2,422
    (This will probably become a habit, but I just think listing the official info is a good idea.) Further reference

  6. #6
    Join Date
    Mar 2004
    Location
    Maine
    Posts
    473
    definately helpful, thanks!

  7. #7
    Join Date
    Jan 2004
    Posts
    2,422
    No problem. I guess it's a good habit, then.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles