Forums

[resolved] css img tags (8 posts)

  1. AyeAaron
    Member
    Posted 1 year ago #

    Hi my blog is http://thedeadmothersclub.net/ and I added some css positioning tags to get my logo in the correct place (right justified on the left hand sidebar) but this css tag also affects the image in the post (pushing it way far to the left). How can I separate these two so my post image stays in the center of my blog and my logo stays right where it is?

  2. zoonini
    help me help you
    Posted 1 year ago #

    Put your CSS styles on #logo

  3. AyeAaron
    Member
    Posted 1 year ago #

    Thank you. I did what you said and my logo changed positions too. Will you take another look for me please?

  4. zoonini
    help me help you
    Posted 1 year ago #

    I was giving you advice on how to change the position of your logo only. Not sure why it would affect images in your posts as well.

    Can you copy/paste the bits of CSS that you are trying to edit, here? Be sure to apply the "code" formatting by selecting it and clicking the "code" button above.

  5. AyeAaron
    Member
    Posted 1 year ago #

    Here is my sidebar code:

    [please use a Pastebin to post large chunks of code, following forum etiquette Please only paste the relevant pieces of CSS.]

  6. AyeAaron
    Member
    Posted 1 year ago #

    Here is my sidebar php code:

    http://pastebin.com/7sjxZMPY

    Here is my css code.

    http://pastebin.com/RvjfvbPK

    Thank you, let me know if you need all of the css code posted.

  7. zoonini
    help me help you
    Posted 1 year ago #

    Suggestion: put your logo class on your image tag instead of the anchor tag and change it to an ID instead of a class because you have only one logo and it matches your CSS.

    <a href="/"><img id="logo" src="http://thedeadmothersclub.net/wp-content/themes/yboris/dmcheader.png"; ?>

    See if that works. This shouldn't affect images in your posts unless for some reason you're giving images in your posts an ID of "logo."

  8. AyeAaron
    Member
    Posted 1 year ago #

    Great. Thx.

Topic Closed

This topic has been closed to new replies.

About this Topic