Forum Moderators: not2easy
I would like "to bullet" that list.
The straightforward ("brute force") approach would be to modify that PHP code to issue <ul> instead of <div>.
However, for the sake of learning more about the wonders of CSS (and possibly avoid "hacking" that PHP code which I didn't write), I am curious to know:
Is it possible, using CSS div properties, to assign "a prefix bullet" to each new line?
This way, I can "eat the cake and have it too": Have a bulleted list and retain the div properties (as already defined in the CSS).
The only problem is... if this is possible, I have no idea where to start.
Tips, clues, hints and/or ideas would be greatly appreciated.
Thanks,
Webmaster at SC
To clarify:
<div>
one<br />
two<br />
...<br />
</div>
OTOH:
<div>
<p>one</p>
<p>two</p>
<p>...</p>
</div>
Now we could do anything we wanted as we have a paragraph we can select and play with.
Still better is to have is semantically relevant by using
<ul>
<li>one</li>
<li>two</li>
<li>...</li>
</ul>
even if you don't need the bullets, a list is a list and should be entered in the (x)html as such.
if you size the font in pixels, and the line-height in pixels, then you would know the distance between each line.
so you'd just have to make a background image for the div that has bullets down the lefthandside spaced out to match the lines. if you then give the div a bit of lefthand padding as well... bingo! it would look like a bulleted list.
it wouldn't even matter if the lines wrapped. you'd just to make sure that the image contained enough dots.