R
E
S
O
U
R
C
E
S
       Question Index      Products & Services      Contact Us      Links


WebHatchers will design & develop your site for you.
_______________________

Website Menu Heaven: side or top popup menus, buttons, image rotators, navbars, tons more.
_______________________

Send us your questions and wittiest comments.
_______________________

Report errors on our site.
_______________________

Share your neatest DHTML examples with us; we may publish them.
_______________________


_______________________

      QUESTION INDEX      

Question Index
Browser Insanity
JavaScript
Animation
Buttons and Menus
CSS and HTML


  INFORMATIVE ARTICLES  

Menus-and-Buttons-
Part-I.htm


Menus-and-Buttons-
Part-II.htm


Change-Div-Size-Color-
and-Location-with-the-
W3C-DOM.htm


Bouncing-Ball-Animation-
with-the-W3C-DOM.htm


Style-Changes-with-the-
W3C-DOM.htm


Animation-with-the-
W3C-DOM.htm


Window-Play-and-Some-
Important-DOM-Methods.htm


Using-getElementsByTagName
-and-getElementsByName.htm


The-CSS-Resources-Intro-
Page.htm


Convert-Word-Files-to-HTML-
and-Install-Editor2-to-
Use-Instead-of-NotePad.htm


CSS-Issues.htm

Dealing with Bullet Loss When The Image is Left of The <UL>

It doesn't do any good to manipulate the list-style-image property in order to retrieve lost bullets. There are a couple of ways to deal with the situation, however. Here is one:


 
The text goes here. The text goes here. The text goes here. The text goes here.
The text goes here.
The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here. The text goes here.

For each list item above we're using: <div style="text-indent:-10px;"><span style="font-size:20px; font-style:Arial;">&#149;</span> The text goes here.</div> and we are not using any list markup like <LI> or <UL>. Below, however, we are using normal list markup. So what's the difference? The example above puts both the image and text in the same table cell, so that is what made the extra bullet code necessary. (Crowding text and image into one cell gives text that wraps around the image—that's the main purpose of this crowding strategy. It's how you do floats, as well, which we'd use more except for the Netscape bug that messes up linked images in a float.)

Bullets need to be against the left edge of something they're inside of—a table cell is a good example. Butting the list up against the right edge of the image and mixing image and text in the same cell makes list markup foul up. The bullets disappear and the indentations do too—unless you dump the list markup and use our workaround above. But the list below uses list markup and works fine. This list is in its own table, and this table is in a table cell as well, but the list is not sharing its cell with the image or anything else, which is what makes it work right. The cell is simply to the right of the cell the image is in. No workarounds needed; no text wrap achieved.

 
  • The text goes here. The text goes here. The text goes here. The text goes here.
  • The text goes here.
  • The text goes here. The text goes here.