Site logo

Archived topic

CSS für Zeilenumbruch / CSS for word wrap

3 replies · Started by Maria on April 24, 2018

Viewing posts 1–4 of 4

.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!

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 :)

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.

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: "
}
This archived topic is closed to new replies.