Convert String
$10-30 USD
Paid on delivery
Hi,
i have this:
.bpb-p12-mob-body { position: absolute;height: 100%;width: 100%;height:100%width:100%;background-size:800px 100%;}
.bpb-p12-mob-image { font-size: 25px;text-align: center;margin: 20px 0;color:red;height:30%;width:30%;}
.bpb-p12-mob-body-text { font-size: 18px;margin:-130px 10px 0 60px;color:#fff;width:70%;float:right;font-family:sans-serif;}
.bpb-p12-mob-text { color:#fff;}
.bpb-p12a-mob-text { font-size: 25px;text-align: center;margin: 10px 0;font-family:serif;}
AND
I need to converted into this:
.temp_size568 .bpb-p12-mob-body { position: absolute;height: 100%;width: 100%;height:100%width:100%;background-size:800px 100%;}
.temp_size568 .bpb-p12-mob-image { font-size: 25px;text-align: center;margin: 20px 0;color:red;height:30%;width:30%;}
.temp_size568 .bpb-p12-mob-body-text { font-size: 18px;margin:-130px 10px 0 60px;color:#fff;width:70%;float:right;font-family:sans-serif;}
.temp_size568 .bpb-p12-mob-text { color:#fff;}
.temp_size568 .bpb-p12a-mob-text { font-size: 25px;text-align: center;margin: 10px 0;font-family:serif;}
So basically, i need to automaticly (on click) to get a string that will have .temp_size568 in front of each class (inject the .temp_size before each class name) and then join it into one string.
Those original classes will be different in names, so it needs to work automatically regardless of the names.
If you have any questions, please ask
Thanks
Jan
Project ID: #5442541
About the project
Awarded to:
2 freelancers are bidding on average $28 for this job
Hi. A jQuery expert here. A couple of doubts- 1. Where are those classes defined? 2. Do you mean you have a webpage where those classes are in a textarea and on clicking, you need the string .temp_size568 prepended More