How to customize a list?
-
Hi there,
I am trying to create a list by using an image.
I found plenty of information and example of code but nothing worked. So, I guess I do something wrong.
Can someone give me some advice?
KR,
Maud
The blog I need help with is: (visible only to logged in users)
-
Are you wanting to put an image for a bullet in a list? If so, have you uploaded the image you wish to use to your media library?
-
-
I took a look in your media library and grabbed the small dog bone for the below. You can change it if I grabbed the wrong image.
ul li { list-style-image: url('https://wedog.be/wp-content/uploads/2017/07/os_puce-3.png'); } -
It worked fine and you grabbed the right image.
However, it creates a conflict with the image, which is linked from the block page.
Do you know how to create a condition saying “not for that part”?
KR,
Maud
-
However, it creates a conflict with the image, which is linked from the block page
Maud, I’m not understanding. Can you explain a bit further?
-
Hi @thesacredpath
Below “contact” in the page – https://wedog.be/ – there is another list below a picture and it has now the new styling. @wedogcoaching probably just wants to style that specific list not change the styling on every list.
S. -
Are you talking about in the footer widget area? Under Contact, the elements in that text widget are paragraphs. I’m not seeing any issues there.
We could do this, which would limit this to only unordered lists in the #content div.
#content ul li { list-style-image: url('https://wedog.be/wp-content/uploads/2017/07/os_puce-3.png'); } -
Luxury is sometimes a pain. Those were mostly hidden in Firefox and I did not see them. Instead of the above, replace it with this.
#content .article ul li { list-style-image: url('https://wedog.be/wp-content/uploads/2017/07/os_puce-3.png'); } -
Hi both of you,
@solybarr, thank you for making my point clear. :)
@thesacredpath, thank you for this new code. It is all clean now.
Thanks a lot,
Maud
- The topic ‘How to customize a list?’ is closed to new replies.
