Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to auto resize img group with browser change size?

How to auto resize img group with browser change size?

Problem

How to Auto Resize Img group with browser change size?

I almost finish it in css, but now I can't set overflow:hidden let the 5th or 6th.. picture hide.


(img from php)
(I will connect jQuery plugin scrolling-carousel.)

Any suggestion i'd really appreciate you taking the time.


Here is my http://jsfiddle.net/uSHbc/1/
HTML

CSS

.conimgwrap2{
    position: relative;
    left: 50%;
    width: 50%;
}
.conimgwrap{
    position: absolute;
    width: 25%;
    height: 25%;
}

.conimg{
    max-width: 100%;
    max-height: 100%;
    background-color: yellow;
    display: inline;
    white-space: nowrap;
}

.conimg div{
    display: inline;
    white-space: nowrap;
}
.conimg img{
    max-width: 100%;
    max-height: 100%;
}​
Problem courtesy of: user1775888

Solution

inner-

display: inline;
max-width: _%;
max-height: 100%;

outer-

white-space: nowrap;
and position set learn how from http://www.alistapart.com/articles/conflictingabsolutepositions

Solution courtesy of: user1775888

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

How to auto resize img group with browser change size?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×