The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    how to Binding img size?(posting body)

    xiaomah01
    xiaomah01
    Forumember


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

    Solved how to Binding img size?(posting body)

    Post by xiaomah01 21/12/2011, 23:03

    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 22/12/2011, 00:04; edited 1 time in total
    avatar
    Guest
    Guest


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

    Post by Guest 21/12/2011, 23:28

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


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

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

    Post by xiaomah01 21/12/2011, 23:54

    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 22/12/2011, 00:03; edited 1 time in total
    avatar
    Guest
    Guest


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

    Post by Guest 22/12/2011, 00:01

    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.
    Sanket
    Sanket
    ForumGuru


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

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

    Post by Sanket 22/12/2011, 01:09

    Solved?
    xiaomah01
    xiaomah01
    Forumember


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

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

    Post by xiaomah01 22/12/2011, 01:22

    Sanket wrote:Solved?

    yes right~ Very good
    avatar
    Guest
    Guest


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

    Post by Guest 22/12/2011, 01:22

    Welcome. Wink
    Sanket
    Sanket
    ForumGuru


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

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

    Post by Sanket 22/12/2011, 01:23

    Topic Solved & Locked

      Current date/time is 23/9/2024, 02:15