how to Binding img size?(posting body)

Go down

Solved how to Binding img size?(posting body)

Post by xiaomah01 on December 21st 2011, 5:03 pm

how to Binding img size? in posting body

because my posting body img width too long...
become:
Click:


i want like this:
Click:




but i don't want to use "Images resize",because it will be load time slowly


can i use some css code to binding???
like:
Code:
img {
max-width: xxxpx; max-height: xxxpx;
}


Last edited by xiaomah01 on December 21st 2011, 6:04 pm; edited 1 time in total
avatar
xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by Guest on December 21st 2011, 5:28 pm

Yes, of course!
Code:
max-width
max-height
min-width
min-height
These codes will resize image automatically. Smile

Guest
Guest


Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by xiaomah01 on December 21st 2011, 5:54 pm

Spankers wrote:Yes, of course!

These codes will resize image automatically. Smile

what is the full code?
this?
Code:
max-width
max-height
min-width
min-height

???




EDIT:

well solved myself~ Very Happy but also thanks Spanker to helping:verygood:

Code:
img {
max-width: 750px;
}


Last edited by xiaomah01 on December 21st 2011, 6:03 pm; edited 1 time in total
avatar
xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by Guest on December 21st 2011, 6:01 pm

Nope. That are the proprietes only. So, your code works, but all images on the forum will resized. Try:
Code:
tr.post td.row1 div.postbody{
max-width: xxxpx !important;
max-height: xxxpx !important;
}
P.S. Add this code before all codes you have in Stylesheet. Wink Don't forget to replace xxxpx.

Guest
Guest


Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by Sanket on December 21st 2011, 7:09 pm

Solved?
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by xiaomah01 on December 21st 2011, 7:22 pm

@Sanket wrote:Solved?

yes right~ Very good
avatar
xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by Guest on December 21st 2011, 7:22 pm

Welcome. Wink

Guest
Guest


Back to top Go down

Solved Re: how to Binding img size?(posting body)

Post by Sanket on December 21st 2011, 7:23 pm

Topic Solved & Locked
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum