Image Gallery, trouble positioning swapped img
Posted: Thu Apr 23, 2009 6:22 am
This is just beyond my meager abilities.
I've loaded an image viewer that works just great, but I'm not finding a way to get it to get it nailed down to the page. From ImageGallery.ascx:
var control = document.getElementById("OtherImage");
control.style.visibility = "hidden";
}
</script>
<style type="text/css">
.gallerycontainer{
position: absolute;
top: 220px;
left:70px;
right:auto;
padding:0 0 0 0px;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
height:400px;}
The 'left' control is keying off of the edge of the window causing the image's position to move with the width of the window. I'd like it to be placed directly over the original img.
Can I add (or use) a control in the CSS instead? This is surely pretty simple.
Thanks for any help.
I've loaded an image viewer that works just great, but I'm not finding a way to get it to get it nailed down to the page. From ImageGallery.ascx:
var control = document.getElementById("OtherImage");
control.style.visibility = "hidden";
}
</script>
<style type="text/css">
.gallerycontainer{
position: absolute;
top: 220px;
left:70px;
right:auto;
padding:0 0 0 0px;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
height:400px;}
The 'left' control is keying off of the edge of the window causing the image's position to move with the width of the window. I'd like it to be placed directly over the original img.
Can I add (or use) a control in the CSS instead? This is surely pretty simple.
Thanks for any help.