Click to See Complete Forum and Search --> : Lists and Styles


Geat
08-13-2003, 06:10 AM
if you style up a list, e.g.

<style>
.mystyle { font-size:40px; }
</style>

<ul><li style="mystyle">Some data</li></ul>

The bullet point by the list stays at the default size, and stays bottom-aligned as well. Is there a way of forcing the bullet to inherit the properties of the caption?

pyro
08-13-2003, 08:15 AM
You could use list-style-image (http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style-image) to specify an image for your lists. That way, you can make it look exactly how you'd like.

Geat
08-13-2003, 08:22 AM
That's quite cool, but I'm making a site builder where the user can choose their template and various style aspects independantly - so there may be images and may be bullet points of different types and sizes. I was hoping there was an internal CSS solution to this issue, as opposed to bringing in external resources.

pyro
08-13-2003, 08:36 AM
I don't belive there is a way to change the size of the default bullets.

Geat
08-13-2003, 08:39 AM
It's kinda weird, isn't it? Normally you can blame browsers for failing to implement certain features, but with this there is no mechanism in place in the actual CSS specification - bit of an oversight!