Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Newsletter css image style

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #181549
    Ailsa_C
    Participant

    Hi,
    I’m driven mad trying to style an image. This is my table row:

     <tr>
                                                                            <td class="w580" width="580">
                                                                                <img id="borderimg" editable="true" label="Image" class="w580" width="580">
                                                                            </td>
                                                                        </tr>

    I created an id #borderimg { border: 3px solid #aecbd6 !important; }

    Can anyone tell me what I’m doing wrong? I don’t want to style the images asI don’t want a border on some of them.
    Thanks in advance.

    #181551
    Paulie_D
    Member

    Could you make a Codepen.io demo for us?

    #181587
    Ailsa_C
    Participant

    Hi,
    Here’s the link (haven’t used codepen before – hope it works!). I put in an image for example.
    http://codepen.io/anon/pen/Acevf
    Thanks!

    #181603
    Paulie_D
    Member

    Wow…that’s ship-ton of code!

    Could you, firstly, strip it down to just enough to demonstrate the problem…and also put the relevant code in the appropriate sections.

    CSS goes in the CSS section and so on.

    #181616
    Kingslayer
    Participant

    You put the #borderimg { border: 3px solid #aecbd6 !important; } in a media query. Border will only appear if browser width is smaller than 660px. Relocate it out of the media query and you will be fine you can even loose the important.

    Btw. indent your code properly and you will have no trouble finding these …

    #181660
    Ailsa_C
    Participant

    Hi Kingslayer – genius that worked perfectly. Didn’t realise I was in a media query – amongst all that code!
    Thanks for the tip.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.