2012-06-22, 09:39 PM
I'm trying to come up with a solution where my images expand, or contract, based on browser window size. I've come up with a couple scenarios, but the one that works makes my smilies huge.
This doesn't affect the smiley, but it pushes images outside of the trow1; thus, causing the forum to break.
I next tried this, which works for the images, but also affects my smilies. I rely heavily on images for my forum; therefore, having them always fit within the post at max size is optimal. Unfortunately, this also re-sizes any smiley within the post.
Keep in mind, I have used the image re-size plugin, but setting the width to auto, or 100%, also causes the trow1 to break. Alternatively, I've specified a width in the plugin, allowing the user to click on the image for a larger preview, but once it expands, it too breaks the page.
The only solution I can think of is finding out a way to reset my smiley size upon preview. I tried looking for a template, but the only smiley template I could find referred to the list of smilies you see when editing a post. Is there a way to insert a <div> tag around it, or associate a class with the smiley <img> that gets inserted?
I could just forget about the smiley and figure out a better solution for sizing images within the trow1, but those ideas are escaping me. Any thoughts?
This doesn't affect the smiley, but it pushes images outside of the trow1; thus, causing the forum to break.
.post_body img {
max-width: 100%;
}
I next tried this, which works for the images, but also affects my smilies. I rely heavily on images for my forum; therefore, having them always fit within the post at max size is optimal. Unfortunately, this also re-sizes any smiley within the post.
.post_body img {
width: 100%;
}
Keep in mind, I have used the image re-size plugin, but setting the width to auto, or 100%, also causes the trow1 to break. Alternatively, I've specified a width in the plugin, allowing the user to click on the image for a larger preview, but once it expands, it too breaks the page.
The only solution I can think of is finding out a way to reset my smiley size upon preview. I tried looking for a template, but the only smiley template I could find referred to the list of smilies you see when editing a post. Is there a way to insert a <div> tag around it, or associate a class with the smiley <img> that gets inserted?
I could just forget about the smiley and figure out a better solution for sizing images within the trow1, but those ideas are escaping me. Any thoughts?