Remove white/grey border from gallery images in Photography theme
-
Hello- I’ve tried changing the css coding but it has become apparent that I don’t know what I am doing. I would like to remove the grey/white boarder from the gallery images. The theme I am working in is photography.
Thank you in advance for your help!
The blog I need help with is: (visible only to logged in users)
-
Do you also have the Custom Design upgrade in addition to having purchased the premium theme?
-
Hello- I do have custom design active. I purchased the WordPress Value Bundle which includes custom design.
Thank you in advance!
-
I’ve tagged this to have mods or staff move it to the CSS forum, where you should be able to get some assistance.
-
-
Johanna,
Your code has this:#gallery-81-2 img { border: 2px solid #CFCFCF; }You need to instead add to your CSS this:
#gallery-81-2 img {border: none!important;}OR if you added the above (I don’t think you did, or you would know about it), go back into your added CSS and just delete that.
It’s very specific (gallery-81-2), so it’s possible you’ll see other galleries with this border. What you need to do is find the selector that is for the images (img) in the gallery you’re in, and set the border to “none”.
Using the “!important” designation means that this selector will override the original CSS. What’s important (haha, sorry) to remember about this is that your CSS loads faster if you don’t use it too often, and that’s it’s better to have clean code. For this one instance it is fine, however.
Good luck!
-Z -
- The topic ‘Remove white/grey border from gallery images in Photography theme’ is closed to new replies.