Image Gallery, trouble positioning swapped img
Image Gallery, trouble positioning swapped img
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.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Image Gallery, trouble positioning swapped img
It is a Css thing, as you say. You would just have to experiment with Css absolute, relative, and clear functions.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 50
- Joined: Mon Jul 02, 2007 9:37 pm
- Location: Chicago, IL
- Contact:
Re: Image Gallery, trouble positioning swapped img
It would be easier to give you an answer if you could provide a live example. Do you have a link that you can provide?
Re: Image Gallery, trouble positioning swapped img
http://www.medicinecabinetmaker.com/Loc ... t-P51.aspx
I'm getting better at CSS, etc., but this is a little over my head and trial/error gets old quick.
This and the swatch sizes are about the last parts to clear up - plus loading more products.
Thanks.
I'm getting better at CSS, etc., but this is a little over my head and trial/error gets old quick.
This and the swatch sizes are about the last parts to clear up - plus loading more products.
Thanks.
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 50
- Joined: Mon Jul 02, 2007 9:37 pm
- Location: Chicago, IL
- Contact:
Re: Image Gallery, trouble positioning swapped img
See if this works for you. It appears to work in Firefox, but i'm not sure about IE.
.gallerycontainer{
position: absolute;
top: 208px;
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 setting doesn't appear to be needed.
.gallerycontainer{
position: absolute;
top: 208px;
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 setting doesn't appear to be needed.
Re: Image Gallery, trouble positioning swapped img
Master, you're a genius... almost
It's great in FF, quite a somthin' in IE6 (of course).
Gotta center it in Imagespanel - I think?
funny (IE6):
It's great in FF, quite a somthin' in IE6 (of course).
Gotta center it in Imagespanel - I think?
funny (IE6):
-
- Lieutenant, Jr. Grade (LT JG)
- Posts: 50
- Joined: Mon Jul 02, 2007 9:37 pm
- Location: Chicago, IL
- Contact:
Re: Image Gallery, trouble positioning swapped img
For reference this is what fixed it.
Put a DIV around the image ConLib calls on Show Product 1.htm:
Create the galleryholder CSS class.
Adjust the gallerycontainer css class:
That should do it!
Put a DIV around the image ConLib calls on Show Product 1.htm:
Code: Select all
<div class="galleryholder">
[[ConLib:ProductImage ShowImage="Image"]]<br />
<br /><br />
[[Conlib:Custom/ImageGallery]]
</div>
Code: Select all
.galleryholder{
position:relative;
width:400px;
height:510px;
top:0px;
left:0px;
}
Code: Select all
.gallerycontainer{
position: absolute;
top:0px;
left:0px;
padding:0 0 0 0px;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
height:400px;
}