- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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.
Could you make a Codepen.io demo for us?
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!
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.
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 …
Hi Kingslayer – genius that worked perfectly. Didn’t realise I was in a media query – amongst all that code!
Thanks for the tip.