-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Download HTML, CSS, & JavaScript All-in-One For Dummies ($39.99 Value, now FREE)
By News Staff,
- ebook offer
- sponsored
- (and 5 more)
- 0 replies
- 0 views
-
WordPress-Theme Twenty Twenty Four-customizing: how to do that - a Gutenberg special question...
By thedhubs,
- 1 answer
- 1,167 views
-
X to open Trust and Safety headquarters in Austin, Texas, focusing on content moderation
By Chasethebase,
- 8 replies
- 8 views
-
- 0 replies
- 8 views
-
YouTube lowers the criteria to join its partner program, adds more benefits for US creators
By Anushe Fawaz,
- youtube
- youtube shorts
- (and 9 more)
- 0 replies
- 11 views
-
Question
kman1985
Is it possible to use string concatenation with the content property. I'm trying to display an image before every item in my list, but I want this image to be a link. Here's what I want to do, but I don't know how to do this. If anyone can help me out, that would be great. Thanks.
#side-nav ul li:before { position: relative; float:right; top: 15px; content: "<a href='http://url'>" + url('arrow.png') + "</a>"; }
Link to comment
https://www.neowin.net/forum/topic/1130684-css-content-string-concatenation/Share on other sites
11 answers to this question
Recommended Posts