Is there a way to increase the size of just the bullet list-style-type using CSS? I don't want to increase the size of the bullet text, just the bullet type. I can't use images or JavaScript either. It has to be something I can embed inside <style>
tags within the <head>
tag.
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
put any background color for the (ex: .menu li a )tag and add padding for that you will get like a box then border-radius and then for ( .menu li ) apply padding for left and right for spacing... (explained in reverse order)
Might not work in old version of IE.
li:before{ content:'\00b7'; font-size:100px; }
Demo
For IE6:
Without javascript or images, I would recommend putting a
<span>·</span>
in the beginning of every list item and styling that.Was looking for a solution to this too and found that if you nest a p inside li, you can style the bullets and bullet text separately.
no way that I'm aware of.
but you could fake it by using :before
When you say you can't use images, do you mean you can't edit the
li
tags to add images, or that you can't use an image at all?On the
li
elements, you can set thelist-style-image
property.This can still go in your head tag without editing the markup of the list.
I have had to do something similar. My method was to add a span tag around the text within the li:
Then you can increase the font-size of you li and reduce the font size of your span:
You may need to adjust line-heights and margins to accommodate for the extra li sizing. But this method will also allow you to colour the bullets separate from text.