Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 9 Months ago Image width limitation
#1
Solved: 11 Years, 9 Months ago
Okay, since the forum updates, any images posted have stopped being reduced in size. My solution was a max-width limitation in pixels on a certain class, but the class must have either been changed, or it was one I created myself in a template (I forgot where).

I don't like using plugins for this, as I have never found one to work properly. Firstly, can I limit image width with percentage? I have NEVER been able to get that to work. If so, how? If not, what do I have to mess around with to get images small enough, so that the posts dont get stretched?
#2
Solved: 11 Years, 9 Months ago
.post_body img {max-width: 600px !important} should work in global.css
#3
Solved: 11 Years, 9 Months ago
I'm afraid that didn't work.
#4
Solved: 11 Years, 9 Months ago
Although you do not want to use any plugins I can assure you that this plugin works very good.
http://mods.mybb.com/view/fit-on-page

It resizes the picture to your maximum width that is available in the post.
Also it pop-ups when you click on it.
#5
Solved: 11 Years, 9 Months ago
This resizes to browser's width:
<!DOCTYPE html>
<head><meta charset="UTF-8"><title>Test image sizing</title>
<h1>Some Heading</h1>
<img style="max-width:100%;height:auto;" alt="" src="http://mybboard.net/assets/images/header.jpg">
<p>My first paragraph.
</html>
- no good deed goes unpunished
#6
Solved: 11 Years, 9 Months ago
(2013-04-26, 04:46 PM)hiig Wrote: I'm afraid that didn't work.

This actually did work. I just forgot to clear the cache upon refresh.
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 3 Guest(s)