/    Sign up×
Community /Pin to ProfileBookmark

Can no get color for unordered list

It strange, but I can no get color in unordered list:

<ul style=”list-style-type: square; color: blue;”>
<li><span style=”color: #000;”>text 1</span></li>
<li><span style=”color: #000;”>text 2</span></li>
<li><span style=”color: #000;”>text 3</span></li>

</ul>

All is b/w.
While code work in [url]http://www.w3schools.com/css/tryit.asp?filename=trycss_list-style[/url] (“try it” editor)

My webpage doctype is
<!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“>

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 29.2005 — I see blue squares
Copy linkTweet thisAlerts:
@TaurusauthorNov 29.2005 — Yes- it need be blue. Dont know why not work. I tried on dynamically generated pages(CMS based site), there is container where goes content.
Copy linkTweet thisAlerts:
@FangNov 30.2005 — Do you have a link?
Copy linkTweet thisAlerts:
@FangNov 30.2005 — The LI in main.css is overriding ([URL=http://www.htmldog.com/guides/cssadvanced/specificity/]specificity[/URL]) the inline style. Remove LI from main.css
Copy linkTweet thisAlerts:
@TaurusauthorNov 30.2005 — you mean remove LI from this:

BODY, TH, LI, DIV, P, TD , SPAN { ?

And if I will require b/w UL lists, it will be b/w, right?
Copy linkTweet thisAlerts:
@FangNov 30.2005 — Yes. You only really need [I]body, table { ...[/I]
Copy linkTweet thisAlerts:
@TaurusauthorNov 30.2005 — Thank you.
×

Success!

Help @Taurus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...