Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MvB 2 posts 22 karma points
    Jun 27, 2011 @ 08:59
    MvB
    0

    Small Q about CSS in Umbraco

    Hi everyone!

    (I hope this is in the right section, if not: Sorry (a)).

     

    Basically this is what I want to do:

    When alligning images in the TinyMCE I want different styles (defined in the Stylesheet) applied when an image is aligned left, center or right.

    I tried to use this: #content img left {margin: 10px 10px 10px 0; }, but that didnt work.

    I think the problem lies mainly with my (still) limited knowledge of CSS...

     

    Does anyone know if this is possible and if so, how to do it?

     

    Thanks in advance!

     

    Michiel

     

    PS: If my explanation is insufficient (due to faulty English maybe), please say so. I will try to explain more clear.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jun 27, 2011 @ 13:06
    Lee Kelleher
    0

    Hi Michiel, welcome to the Umbraco forum.

    OK, so you've got a stylesheet assigned to the TinyMCE editor? (If not, read this tutorial - it also contains an example about image alignment).

    With your CSS, the main issue I saw was that you are missing a dot/period from "left", it should be:

    #content img.left {margin: 10px 10px 10px 0;}

    Hope this helps?

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft