The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Adding text via CSS.

2 posters

Go down

Adding text via CSS. Empty Adding text via CSS.

Post by Games4theworld June 3rd 2015, 8:25 pm

Hello everyone,

I was recently looking at this topic: https://help.forumotion.com/t136448-phpbb-aggregate-double-posts#920533
This is a great feature!

Regarding the separator; is there a way to add text too? For example something like "----EDIT----" after each merged double-post.

Thank you for your help in advance!

Kind regards,

G4TW
avatar
Games4theworld
Forumember

Posts : 53
Reputation : 0
Language : English

http://www.games4theworld.bestgoo.com

Back to top Go down

Adding text via CSS. Empty Re: Adding text via CSS.

Post by Mike June 4th 2015, 7:47 am

Not possible with CSS. This is possible with Javascript and HTML, though.
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Adding text via CSS. Empty Re: Adding text via CSS.

Post by Games4theworld June 4th 2015, 10:55 am

Mike wrote:Not possible with CSS. This is possible with Javascript and HTML, though.
Thanks, Mike!
Do you happen to know what piece of code I could use for that? (To make it show up between to merged posts)
avatar
Games4theworld
Forumember

Posts : 53
Reputation : 0
Language : English

http://www.games4theworld.bestgoo.com

Back to top Go down

Adding text via CSS. Empty Re: Adding text via CSS.

Post by Mike June 6th 2015, 9:36 pm

The way the javascript is written is only for it to recall something in your CSS and then add a border to the new attribute. You could add text as an image, by modifying the CSS code to:

Code:
.doublepost { background: url('YOURIMG') no-repeat; }

And then your image could be just text.
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum