Hi all,
Basically I want to my list items to resize in width and height when the window/containing ul is resized, at the moment i can only get this to work on the width, the height never seems to change?
Can anyone advise how this can be achieved?
Here is my code:
CSS
HTMLCode:#test{max-width:302px;width:100%;max-height:100px;height:100%} #test li{background:url('http://www.dummyimage.com/100/000/fff') no-repeat 0 0;max-width:30%;width:100%;max-height:30%;height:100%;float:left;margin-left:1px;} #test li:first-child{margin-left:0;}
HTML Code:<ul id="test"> <li>Hello</li> <li>Hihi</li> <li>whatsup</li> </ul>



Reply With Quote



Bookmarks