bestbuildpc: Forums
 

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I replace text with CSS?
 
 
Post new topic   Reply to topic    bestbuildpc Forum Index -> Web Development
View previous topic :: View next topic  
Author Message
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 176
Location: NL

PostPosted: Thu Dec 02, 2021 16:43    Post subject: How can I replace text with CSS? Reply with quote

Code:
.pvw-title img[src*="donation.img"] { visibility:hidden; }


Instead of ( img[src*="donation.img"] ), I need to use something that can replace text instead.

I have to use [ ] to get it to work.

<div>Facts</div>

I need to replace "Facts".


replace with

Code:
<div><span>Facts</span></div>


CSS

Code:
.pvw-title span {

  display: none;
}
.pvw-title:after {
  content: 'whatever it is you want to add';
}
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    bestbuildpc Forum Index -> Web Development All times are GMT + 2 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
 
Forums ©