Home Forums Weaver Xtreme Theme Creating a new custom css styling rule

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18073
    gbcc_Gha
    Participant
    I like the looks of <blockquote> and wanted to use this style for highlighting texts here and there on pages and posts. I looked up the blockquote-code which apparently looks like this.

    blockquote {
      background:rgba(128, 128, 128, 0.0980392);
      border-left-color:rgba(128, 128, 128, 0.4);
      border-left-style:solid;
      border-width:0 0 0 4px;
      margin:1.5em;
      overflow:auto;
      padding:0 1.5em 1em 1.2em;
    #23622
    Weaver
    Keymaster

    Those rules work when I look at your site, including margins.

    Just to see, try wrapping the text with <blockquote>…</blockquote> instead of the <div>.

    You could also try adding !important to the margin rule, but that shouldn’t make a difference.

    #23623
    scrambler
    Moderator

    You have a syntax error in your rule, you are missing a semi colon on the one before the margin

    .einzug {
    background: rgba(128, 128, 128, 0.0980392);
    border-left-color: rgba(128, 128, 128, 0.4);
    border-left-style: solid;
    border-width: 0 0 0 4px
    margin: 1.5em;
    overflow: auto;
    padding: 1em 1.5em 0.5em 1.2em;
    }

    Should be

    .einzug {
    background: rgba(128, 128, 128, 0.0980392);
    border-left-color: rgba(128, 128, 128, 0.4);
    border-left-style: solid;
    border-width: 0 0 0 4px;
    margin: 1.5em;
    overflow: auto;
    padding: 1em 1.5em 0.5em 1.2em;
    }

    #23624
    gbcc_Gha
    Participant

    You see the rules work? how comes? I can’t see it neither on chrome nor on firefox. 

    Thank you for the hint but unfortunately !important didn’t solve it. when I use blockquote instead, the margin appears: the text indentation (margin 1.5em) is then clearly visible on top, button, left and right.

    #23625
    scrambler
    Moderator

    We may have cross posted, but read my post above about your syntax error

    #23626
    gbcc_Gha
    Participant

    scrambler, we have indeed. That was it: Such a stupid mistake and I’m trying and trying :/ Thank you very much. 

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.