WordPress.org

Ready to get started?Download WordPress

Forums

Ari
Right column CSS (4 posts)

  1. websmythe
    Member
    Posted 1 year ago #

    K. So, I don't think there is, but... is there anything hidden that might be controlling the secomdary-sidebar CSS, on the right side. I'm trying to center an image in a text widget, and even when I add
    'style="display:block;margin-left !important:auto;margin-right:auto !important;"'
    directly to the <img> tag, it does nothing. I'm stumped. Any body got any ideas?
    http://thesugarshack.kucaburra.com/

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Which image are you dealing with? Your code in your post has the auto and !important reversed -- so if that's what's in your actual code, that would do it.

    BTW, inline CSS code is not generally recommended.

  3. CPC Mike
    Member
    Posted 1 year ago #

    The cetering problem you are having is because of this in your style.css:

    ul.sidebar li.widget_text img {
        float: left;
    }

    I'm assuming that is there to align the small images above it. Use different css properties for each text widget instead:

    #text-3 img{
    float:left;
    }
  4. websmythe
    Member
    Posted 1 year ago #

    Thanx folks. Appreciated. Another pair of eyes is always best.
    @CedarPointConcepts: Thanks for pointing out the float. Totally missed that sitting right in front of my face. Duh! Time to down tools.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic