• I want to align the bottom of an image with the bottom of the text it’s associated with. Do I add code to my style.css Stylesheet that’s similar to this for aligning an image to the right of text?
    img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
    }

    Or do I do it this way?
    <html>
    <head>
    <style type=”text/css”>
    img.bottom {vertical-align:text-bottom;}
    </style>
    </head>

    Or some other way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add the CSS to your theme’s stylesheet.

    Thread Starter will-s

    (@will-s)

    Thanks for that tip, but I don’t know what form it should take.

    Is there a repository of WordPress-approved CSS snippets to which I might refer? I’ve tried searching and nothing jumps out; I believe CSS coding takes somewhat different forms when used in WordPress.

    CSS is exactly the same in WordPress as it is in/on any other non-dynamic site – which is why it is beyond the scope of these forums to deal with basic CSS issues. Try a dedicated CSS resource such as http://www.css-discuss.org/ instead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Aligning image vertically to text’ is closed to new replies.