"Hello World"
I've made a gallery in css. If the server is online check my projects under http://www.lafeijoa.de/home The main menu is positioned absolute in a circle in the center. Beeing on the photo page on the left are the thumbnails, also positioned absolutely. Clicking a thumb the real image should be shown in front of all and positioned absolutely in the center of the WINDOW! But if the width of the thumb gallery is only 200px and not about the width of the full window how do I get it into the center of the window? (I use this "position-50-50%-margin:-half of imagesize"-method)
So the question is how to get out of the vicious circle of the dependence of one absolute positioned element to his parent element?
Please help! I need a solution working on every browser!Code:<div style="position:absolute;width:200px;"> <a href="#" style="background:url(thumb.jpg);"><img /><em style="background:url(image.jpg);"></em></a> <!-- OnClick em will be shown and image will be loaded --> ... </div>
greetings from Berlin
Max
PS: idea by Stu Nichols ( http://www.cssplay.co.uk )



Reply With Quote
Bookmarks