Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: forum img

  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    forum img

    user can do in forum:
    Code:
    [IMG]http ....jpg[/IMG]
    before save I convert that to ..., and add static size limit, so it does not go out of my box, if jpg bigger:

    Code:
    <img src="http..jpg" style = "width...; height">
    This proves to be bad if .jpg is smaller than my size limit, it stretchs it to max.

    I mean I know there is css max-width, but as I know it does not work on all browsers.

    Do I have to download each and every .jpg first to measure it or is there something else more simpler ?
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    hmm, mybe this:

    Code:
    .user_img
    {
      max-width:400px;
      width: expression(this.width > 400 ? 400: true);
    }
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    tested it and it works, unfortunately it is not css validator compatible.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •