• Hi

    I’m sorry if this is already been discussed.

    I’m having trouble styling images. I’ve added a border style in the stylesheet for all alignments but this doesn’t appear when I use the featured admin image upload feature. Nor does changing the paddings or margin styles. Doesn’t the stylesheet affect the media upload feature?

    I’m designing the site locally so I don’t have any links.

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Stylesheet styling only affects elements (including images) if they have been coded so as to be affected by the styles. So the images are usually assigned a class and/or an ID, unless you want all images in your site to have the same styles in which case you can use img for the styles. But you also have to make sure that the hierarchy and specificity of the CSS is not getting messed up…

    Use Firebug to figure out why the styles are not showing up. It’s extremely useful.

    Since you cannot post links, it’s impossible to give you any more specific help. Sorry.

    Thread Starter riis

    (@riis)

    OK, thanks for the tip!

    Strange thing is that the styling works nicely if I manually use a “img src” code with a class but it doesn’t work when I upload images using the WP media feature.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Styling images’ is closed to new replies.