View Full Version : Blog Fixed Width For Embeded Images
Is there a plugin to stop photo comments in blogs from going outside of the fixed width area?
Thank you so much.
BirdOPrey5
09-17-2012, 10:55 AM
This is something easily controlled with a little custom CSS.
In your browser (Chrome in this example)
Browse to a blog with an image that is too big, right click on it and choose "Inspect Element"
There will be the css needed to apply to blog images, it is something that ends in img like:
.blogcontent img {
So in additional.css template add code like this:
.blogcontent img { max-width: 800px !important; }
That will make the max width of any image in a blog 800 pixels wide, change the value to suit your needs. !important means it should override any other value if this value is set elsewhere in the code.
Note- this is for inline images using the [IMG] tag. You may need a separate line for attached images- follow the same basic instructions.
--------------- Added 1347939861 at 1347939861 ---------------
My developer says it's not working. Blogs have fixed width for images, however blog comments still do not restrict the width on large images.
BirdOPrey5
09-18-2012, 11:58 AM
Oh that was for the blogs not blog comments. If you can link to a page I can get the correct code.
we figured it out, thanks. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.