test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • azylum Friend
    #136780

    hi,

    i try to apply a style to my “article-content” first letter.

    i put this in the template.css :

    div.article-content p:first-letter {
    font-size: 150%;
    }

    but it don’t work

    ty

    scotty Friend
    #284898

    would be more like this…

    .first-letter {
    font-size: 150%;
    }

    Then in your article editor click the HTML button and have…

    <p><span class=”first-letter”>L</span>orem ipsum dolor sit amet, consectetur adipiscing
    elit. Praesent ac tortor a odio rhoncus convallis. Maecenas est.</p>This will display like…

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ac tortor a odio rhoncus convallis. Maecenas est.

    You may also need to add some more CSS to get it to look just right.

    azylum Friend
    #285362

    yep,

    ty but it works on the “contentheading” with this style :

    .contentheading:first-letter{
    font-size: 25px;
    font-weight: bold;
    color: red;
    text-transform: capitalize;
    }

    … but i cant make it works on the article-content

    first-letter

    scotty Friend
    #285381

    Ahh… place it at the very end of template.css and it works.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  scotty 15 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum