Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Image vs Column Width
My vanilla forum is set up so the post area is no wider than 500px or so. This causes problems when images wider than this are posted, pushing the whole design of the page off kilter. I have to manually edit each post like this and add a width="450px" line to the image code.
Is there any way to do this automatically? or anyway to have images scale to vanilla rather than the other way around? (I am not yet a V1 upgrader, so any hints here will have to be compatiable both ways)
Thanks a lot
Is there any way to do this automatically? or anyway to have images scale to vanilla rather than the other way around? (I am not yet a V1 upgrader, so any hints here will have to be compatiable both ways)
Thanks a lot
0
This discussion has been closed.
Comments
.CommentBody img { max-width: 450px; height: auto; }
.CommentBody { overflow: hidden }
The 'max-width' function doesn't work in internet explorer (my forum looks great now in FireFox)
I found this code, advised specifically for IE:
width:expression(document.body.clientWidth > 445? "445px": "auto" );
But all it does is set EVERY image to 445px wide.
How can I get around all this IE nonsense?
width: expression(Math.min(this.width, 445));
IE also seems to require one more change. Go to around line 269 and change
background: url('[snip]/kubrickbgwide.jpg') repeat-y center;
to
background: url('[snip]/kubrickbgwide.jpg') repeat-y top left;