Adding text via CSS. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
2 posters

    Adding text via CSS.

    avatar
    Games4theworld
    Forumember


    Posts : 53
    Reputation : 0
    Language : English

    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
    Mike
    Mike
    Hyperactive


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

    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.
    avatar
    Games4theworld
    Forumember


    Posts : 53
    Reputation : 0
    Language : English

    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)
    Mike
    Mike
    Hyperactive


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

    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.