Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress and image attachments

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31457
    kiwus
    Member

    Hi,
    Currently I’m working along on a diploma work page Sample page

    What I’d like to do is to have the divs with images outside the #content like you can see here Sample image
    The problem with it is that wordpress attaches a style=”width:…” to the div, which is the same as image div. I don’t know how to get past that with regular float etc.

    If someone could post any solution (php, css, js whatever you can think of) I’d be greatful.

    #63162
    hugogmg
    Member

    Hello Kiwus.

    You could try with this CSS rule


    #content div.img {
    width: 650px !important;
    }

    The !important will overrule the inline style. Let me know if it worked.

    Bests,

    Hugo

    #63180
    kiwus
    Member

    Always thought it was for IE bugs only but works like a charm!

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.