[Support request] CSS für Zeilenumbruch / CSS for word wrap

Home Forums Support [Support request] CSS für Zeilenumbruch / CSS for word wrap

Home Forums Support CSS für Zeilenumbruch / CSS for word wrap

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #559468
    Maria

    .posted-on:before {
    content: “veröffentlicht am: “;
    }
    .posted-on .updated { display: inline-block; }
    .posted-on .updated:before { content: “zuletzt bearbeitet am: “; }

    Wie füge ich im CSS einen Zeilenumbruch ein, damit “zuletzt bearbeitet am: ” in der nächsten Zeile steht?

    Vielen Dank!

    —————-

    .posted-on:before {
    content: “veröffentlicht am: “;
    }
    .posted-on .updated { display: inline-block; }
    .posted-on .updated:before { content: “zuletzt bearbeitet am: “; }

    How do I insert in CSS a word wrap, so that “zuletzt bearbeitet am: ” stands in the next line/row?

    Thanks!

    GeneratePress 2.0.2
    GP Premium 1.6.2
    #559611
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not seeing that being added currently.

    Have you removed them? If so can you re-add them so we can see?

    Let me know 🙂

    #559760
    Maria

    Hi Leo,
    yes I removed the code, because the two dates are merged into one date. It does not work, how I imagine it.

    I would like to have a date of publication and a date of the update.
    And before the date an individual text (“veröffentlicht am:” and “zuletzt bearbeitet am:”).

    Maybe I have to use another code?

    Thanks für helping.

    #560208
    Tom
    Lead Developer
    Lead Developer

    Try this:

    .posted-on .published {
        margin-right: 10px;
    }
    
    .posted-on .published:before {
        content: "Published on: ";
    }
    
    .posted-on .updated {
        display: inline-block;
        margin-right: 10px;
    }
    
    .posted-on .updated:before {
        content: "Updated on: "
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.