473,586 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can the color of list markers change?

By default color of the list marker, disc or circle or square, is
black. Is there a way to change the color, for example, to red or
blue? Thanks.

Jul 24 '05 #1
2 10048
fu******@yahoo. com wrote:

By default color of the list marker, disc or circle or square, is
black. Is there a way to change the color, for example, to red or
blue? Thanks.


There is no HTML for this. However, you can create a list marker
graphic (e.g., a GIF file) that has your desired color. Then use a
style-sheet to specify list-style-image. See section 5.6.4 of the
CSS1 specification. Note that, if the user changes the font size
on his or her browser, the size of a marker graphic will NOT
change.

Also, you can use a style-sheet to set the color of the text of
list items. The marker then has the same color.

Now for two design comments:

To me, bulleted text (i.e., a list with markers) is easier to read
if the markers are the same color as the text. Green bullets with
red text (or vice-versa) would be very annoying.
If you create list marker graphics, keep them on the same server
and in the same domain as the page that uses them. You don't want
the graphics lost when a different server is down.
--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #2
David Ross <no****@nowhere .not> wrote:
Also, you can use a style-sheet to set the color of the text of
list items. The marker then has the same color.


It is also possible to use extra markup that makes the content of each
LI element an element of its own, normally using SPAN or DIV, as in
<li><span>lis t item, text level content</span></li>
and then set the color of LI to something, the color of the inner
element to something else. This would result in a list bullet that is
of different color than the list item. With the usual caveats of
course.

Whether that's a good idea is debatable. On the technical side, using
an image as a bullet (via list-style-image in CSS) sounds better,
though it's impossible to adjust the positioning of the bullet well
that way. Regarding useability, I would not object to a colored bullet
if it is not too striking.

Well, there _is_ even an HTML approach (though it may or may not work,
and it's debatable whether it should work - the specs are vague on the
BASEFONT element):

<basefont color="red">
<ul>
<li><font color="black">. ..</font></li>
<li><font color="black">. ..</font></li>
...
</ul>
<basefont color="black">

It's hopefully needless to say that I mentioned this possibility for
your entertainment only.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 24 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3148
by: Nile | last post by:
I am having a problem with my application that uses ODBC. I am doing the following: * prepare a statement * Bind * execute The problem is that my application needs to accept only insert queries with parameter markers since it later writes to the database depending on the values in the SQL query.
1
2046
by: Mike | last post by:
Envirnoment is UDB 7.2 fp9 on AIX. I'm familiar with using "dynexpln" for quickly comparing access plans for directly executable queries. dynexpln docs suggest it cannot work with sql that contains parameter markers. But, when there is no Control-centre (i.e. text only access via korn-shell, no x-windows), how can I use db2 on aix...
11
1491
by: Pdarroch | last post by:
Hello All I am trying to upgrade my existing website from ASP to ASP.NET and I have a file which included various functions common to several pages in the site. While trying to convert this page I am having problems because I the <% and %> markers appear to be invalid in ASP.NET; is there any way of including HTML blocks in a module file as...
2
4597
by: dever | last post by:
I checked my color printers's Printersettings.SupportsColor, which all showed false. What is wrong that I could not use this property. Also, what other way to detect if a printer is color printer. TIA
20
2910
by: shapper | last post by:
Hello, I have the following: <ol id ="ol"> <li id="li1">item1</li> <li id="li2">item2</li> <ol> Is it possible to display the List Items on the horizontal, i.e., side
2
1175
by: Hugh Oxford | last post by:
I have a site that uses Yahoo maps. I place markers on the maps - the images for the markers reside on my webserver. The site also uses polylines. I find that when I add a batch of markers, memory usage increases. However, when I remove them, it increases even more. When I navigate away from the page, memory consumption remains high. ...
7
7197
by: =?ISO-8859-2?Q?Gregor_Kova=E8?= | last post by:
Hi! Is it possible to use parameter markers like this: 1.) SELECT * FROM TABLE1 WHERE FIELD1 LIKE '%?%' If I now set parameter 1 to '' (empty string) I don't get any rows back, but if I run: 2.) SELECT * FROM TABLE1 WHERE FIELD1 LIKE '%%' I get back data I expect.
2
3550
by: PaulR | last post by:
Hi, (DB2 LUW v8.2) When using parameter markers how does the optimizer evaluate filter factors? - and is it able to make use of distribution stats. for parm. markers? The reason I ask, is we have heavily skewed data in places and we need
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7841
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7965
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3838
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.