Remove .img css from prepended div
Posted
by
Ivan Schrecklich
on Stack Overflow
See other posts from Stack Overflow
or by Ivan Schrecklich
Published on 2012-10-01T03:35:26Z
Indexed on
2012/10/01
3:37 UTC
Read the original article
Hit count: 85
OK as the title says I've got a div which is prepended and dynamically loaded. The problem I have is that I can't split the css on this one as it parses also whole strings. The usage is like that: I've got a @username somewhere in the string. If the user hovers it a div with informations will get prepended to the current username. Now there is the problem that I've allowed users to post images in this text also. As the autolinker is flexible it doesn't know the image sizes and restrictions and I want to leave it like that! So I define css classes which look like that:
.minpost img{ max-height: 30px; max-width: 30px; }
Of course I don't need to mention that this attribute is also inherited by the prepended div. And that I don't want to! nifty little tricks like !important won't work for me. So I am asking you guys. If you need further informations just ask?!
© Stack Overflow or respective owner