• Resolved George Ilidis

    (@giorgarasae)


    Hello everyone,

    I want to align images only in a text widget at the sidebar. I know that the widget id is “text-10”.
    Currently i use div styles at the text to align them, but i know that its better to have a style in my child theme.

    How should i refer to the images for this widget in the style.css?

    Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter George Ilidis

    (@giorgarasae)

    Come on guys, anyone; 🙂

    I want to use CSS instead of using <div align=”center”> etc in the html box.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    One way I can think of would be:

    .widget img {
      /* CSS rules */
    }

    But keep in mind that is a little broad and general. Specificity would really depend on the theme and of course the img-ids.

    Thread Starter George Ilidis

    (@giorgarasae)

    I though that this should be the solution too, but trying it messed up the widget at the bottom of the one i want to edit.
    Perhaps something more that the float should be added to the css to take care of the widget below, right?

    Thanks for your time.

    If you’re using floats you could try adding a clear: both; line to the .widget img css and see if that works

    Thread Starter George Ilidis

    (@giorgarasae)

    That didn’t work too.. Exactly the same problem appears. The widget below gets closer to the one i edit.

    I’m sorry but it is really beyond the scope of these forums to deal with general CSS issues. Try a dedicated CSS resource such as http://www.css-discuss.org/ instead. In the meantime, try using Firefox with the Firebug add-on for this kind of CSS work. Or use whatever developer tool is available in your web browser.
    http://getfirebug.com/

    Thread Starter George Ilidis

    (@giorgarasae)

    It’s ok esmi. Thanks for the help guys.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Some help with CSS and images’ is closed to new replies.