Forums

[resolved] Padding images in Lite 1.0 CSS - how to? (2 posts)

  1. TheAnalyzer
    Member
    Posted 5 years ago #

    Using Light 1.0 theme.

    I want all images to have a padding of 10 pixels. Reading theough the Codex "Using Images" tutorial, I see that I need to modify the image tag in the theme CSS.

    The theme CSS has a class that begins with
    "a img {" but not one that starts with just "img {". I do not understand much about CSS so I don't appreciate the significance of the leading "a".

    Changing that piece of code has no effect on the images in my posts.

    Ideally, this is what I want:

    img {
    padding: 10px;
    border: 0;
    }

    How can I produce that effect in the Lite 1.0 CSS?

    Thanks

  2. vavroom
    Member
    Posted 5 years ago #

    You can produce that effect by adding the code you wrote in your theme's css file. Simple as :)

    The leading a means that the style defined in
    a img {}

    Is applied to any image nested within the anchor (a) element.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags