We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33123
    • 3 Posts
    I am new to ModX, using it in a project for the first time. When I insert an image using TinyMCE, it always produces a border line round the image, even though I leave the border field blank or specify 0.

    How can I stop it giving me a border, do I have to edit the HTML, or what?
      • 33123
      • 3 Posts
      I tried that in HTML and it made no difference. There must be some global over-ride setting.

      That line is beginning to really annoy me
        • 36451
        • 264 Posts
        Quote from: ganeshXL at Dec 30, 2007, 01:39 PM

        I usually just use
        img {border:0;}
        in my global stylesheet.
        Hm, isn’t it
        img {border: none;}
        ?
          • 27708 MODX Staff
          • 2,502 Posts
          img{border:0;}

          this is correct but if there is a stylesheet rule that has more specificity it will take precedence. So if you have another CSS file with say:
          #blogpost .tinyimg img {border:1px solid #000;}
          that will take precedence no matter what order they appear in.

          If this site is on a remote server pub the url (without the "http" if you don’t want it to be crawled and as a link).

          Cheers,

          Jay
            Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
            • 2734
            • 165 Posts
            To override a Style you can always use the !important "flag".
            By specifying
            img { border:0 !important; }
            


            you can override even a later or more specific definition.
            img { border:0 !important; }
            ...
            img.someclass { border:1px solid red; }
            

            In the above example a image with class="someclass" will get border:0, because of the !important flag.