PDA

View Full Version : lists & IE.. how do i get IE to show a bullet?



GOLGO-13
March 3rd, 2005, 08:50 PM
whattup everybody!
i cant seem to get IE to show bullets, squares or circles in my lists..
all i can get are numbers, and this small symbol that sorta looks like a british pound (£).. just smaller and backwards...

this code doesnt seem to be working for me..

li { list-style-type: disc }

dont tell me IE doenst support bullets in lists.. tell me "i'm" doing something wrong.. or my computers F'd.. i know the IE browser does some wierd things.. but i cant believe it doesnt support bullets in a list!!

can anybody tell me what the deal is??

thanks!!

lostinbeta
March 3rd, 2005, 09:13 PM
I think the list-style-type attribute is for the UL tag, not the LI tag.

GOLGO-13
March 3rd, 2005, 09:39 PM
I think the list-style-type attribute is for the UL tag, not the LI tag.


hmmm... well i tried it in both UL and LI..
still couldnt get the bullets to show..

i posted this question in another forum as well.. i got one reply back asking "what my 'charset' is set to?".. outside of assuming 'charset' stands for 'character set'.. i have no clue what that even is..

lostinbeta
March 3rd, 2005, 09:45 PM
It's working fine for me.

Your charset is defined as a META tag within the HEAD tags of your document. The default is usually
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

thesparky007
March 3rd, 2005, 09:49 PM
try without the spaces in thr

GOLGO-13
March 3rd, 2005, 10:38 PM
It's working fine for me.

Your charset is defined as a META tag within the HEAD tags of your document. The default is usually



not for me.. at least not on IE.. (works fine in FF though)

here's a all the code i'm using.. (maybe its just my computer...)

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

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

<head>
<title>stupid bullets
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css">
#navlist li { list-style-type: disc; }

</style>

</head>



<body>

<div id="navcontainer">
<ul id="navlist">
<li id="navlist">Item One
<li>Item two
<li>Item three
<li>Item four
<li>Item five
</ul>
</div>


</body>
</html>



hope that all shows up.. i've had problems getting html code to show up in this forum before!!

/drats!!.. code NEVER shows up in this forum for me.. :m: so i'll post the code twice.. once normally.. and a second time substituting brackets < for these thingys (
and braces { for [


(!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd")

(html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en")

(head)
(title)stupid bullets(/title)
(meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /)

(style type="text/css")
#navlist li [ list-style-type: disc; ]

(/style)

(/head)



(body)

(div id="navcontainer")
(ul id="navlist")
(li id="navlist")Item One(/li)
(li)Item two(/li)
(li)Item three(/li)
(li)Item four(/li)
(li)Item five(/li)
(/ul)
(/div)


(/body)
(/html)

lostinbeta
March 3rd, 2005, 10:46 PM
Try using the PHP tags instead of the HTML tags. Sometimes that works...... sometimes *sigh*...lol.

kirupa
March 4th, 2005, 12:03 AM
The easiest way is to post HTML as an attached text file. You can also try posting it as AS :)

GOLGO-13
March 4th, 2005, 01:51 AM
The easiest way is to post HTML as an attached text file. You can also try posting it as AS :)

okay, i'll attach a file for this post then..
but what did you mean by posting it as "AS"?
the only options i see are html, php, "code" and "quote"
---------------------------------------------------------------



i'm still not sure if the whole thing is just my computer or not.. but i seem to have found a solution.. after some searching, i found this page over at ALA
http://www.alistapart.com/articles/taminglists/

all of the all of the "bullets" still looked like the backwards pounds on my computer.. except for the little doubble arrow thingy.. anyhow, after looking at the code for that, i came up with this, which seems to work in FF, Opera, and IE..

lol, this whole thing might just all be on my stupid computer.. still dont know. but if your curious, check out html/css in the attached text file..

Sentenza
March 4th, 2005, 02:17 AM
Well, I don't know if it changes anything for the bullets, but you wrote twice the id attribute pointing to "navlist".

.soulty
March 4th, 2005, 02:28 AM
you should only have to apply it to the ul tag.. ive got a css list with disc and its working in both ie and ff..


edit:: too painful trying to get that to preview....

ditt0
March 4th, 2005, 02:31 AM
< !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">
#navlist { list-style-type: disc; }

< /style >

< /head >
< body >
< ul id="navlist" >
< li>Item One< /li >
< li>Item two< /li >
< li>Item three< /li >
< li>Item four< /li >
< li>Item five< /li >
< /ul >



</body >
</html >

GOLGO-13
March 4th, 2005, 02:47 PM
thanks for ALL the replys!! :thumb:

i just tried ditt0's code..

backwards pound signs all day long, and not a bullet in sight!!

i thinking it must just be MY computer.. :inc:
i'll be sure to give it a swift *KICK* in the fanbelt before the weekend is over...:td:

ditt0
March 4th, 2005, 03:06 PM
http://www.smart.info.tm/ditt0/example/list.html
If it doesn't show up right, then it's your computer. If it does show up like it's supposed to, then perhaps you're making some changes to the code.