Skip to content

SharePoint CSS per Webpart modifizieren

Für kleinere Style-Anpassungen auf einer SharePoint-Webseite eignet sich der Skript-Editor zum einbetten von CSS.

Webpart einfügen: Medien und Inhalt -> Skript-Editor

Folgende Anpassung sorgt zum Beispiel dafür, dass im Content Roll Up WebPart die Einträge mit 3 Zeilen und Bild komprimierter angezeigt werden.

<style type='text/css'>
    .cbs-picture3LinesDataContainer {
        margin-left: auto;
        margin-bottom: 12px;
        border-bottom-width: 1px;
        border-bottom-color: gray;
        border-bottom-style: solid;
    }

    .cbs-picture3LinesImageContainer {
        display: none;
    }

    .ms-wiki-columnSpacing {
        padding-left: 0px;
    }
</style>

Leave a Reply

Your email address will not be published. Required fields are marked *

By transmitting your comment you agree to our mentioned privacy policy content.

4 × two =