Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • effektlabor Friend
    #141369

    Hi,

    I want to remove the border from only one image in an article. But I don’t want to delete the whole border definition in “.article-content img” from the template.css.

    How can I achieve that?

    thank you and best regards!

    mfcphil Friend
    #305422

    While your image is highlited Click your edit image button and go to borders and remove any code there.

    effektlabor Friend
    #305426

    he?

    what has this to do with css definitions of borders in the template.css?

    best regards…

    nguyenhuu quang Friend
    #305444

    <em>@mfcphil 129634 wrote:</em><blockquote>While your image is highlited Click your edit image button and go to borders and remove any code there.</blockquote>
    I think U cant do it.

    effektlabor Friend
    #305544

    Can I define a custom css class that has no borders and then assign it to this special image?

    TomC Moderator
    #305558

    effektlabor;129772Can I define a custom css class that has no borders and then assign it to this special image?

    You can always create a custom position in you index.php and template.xml files, create a custom module with the image, and create the corresponding css rule for it. Then, publish the module on ONLY the page(s) you want it displayed.

    Take a few extra steps, but it’s doable.

    🙂

    effektlabor Friend
    #305566

    I think no one understands me… 🙁

    I have two articles where I don’t want to display the images with the border. just two articles. in these two articles the images should have no border… so I think I can assign a css definition (via template.css) to these images that tells them to not show any kind of border.

    no custom module positions…

    any ideas?

    best regards!

    scotty Friend
    #305567

    effektlabor;129632Hi,

    I want to remove the border from only one image in an article. But I don’t want to delete the whole border definition in “.article-content img” from the template.css.

    How can I achieve that?

    thank you and best regards!

    Open the article and click the HTML button and in the image tag and the bold text below.

    <img style="border: none;" src="img/path" alt="alt_text" heigh="XXpx" width="XXpx />

    Styles defined in the tag will override the CSS (unless you add !important in the CSS)

    effektlabor Friend
    #305575

    Ui,

    sounds good, but the style=”border: none;” gets kicked out of the html. I add the code, I hit update, I save. But then, if I open the html again, the style=”border: none;” is gone…

    scotty Friend
    #305577

    Go to Extensions>Plugins>editors>TinyMCE and on the right hand side set… Code Cleanup on Startup: Off
    Code cleanup on save: Never
    Do not clean HTML entities: Yes
    ….Save.

    Or install JCE

    effektlabor Friend
    #305582

    Yep, great! thank you very much… Somehow I always knew… every way leads to JCE… 😉

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

This topic contains 11 replies, has 5 voices, and was last updated by  effektlabor 15 years, 5 months ago.

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