![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is this possible with image swap? or, do I have to use layers? |
|
Hey folks: I have been shrugging with this in Flash and have now decided to scrap that idea work with Dreaweaver Css and/ or Javascript This is what I want to do: I have this image of a person with their hand extended forward. I want the fingers to be the site navigation. I have two copies of this image.... Image 1 with a small hand and image 2 with a slightly enlarged hand. Ideally I would want the image 1 to be swaped for image 2 (large hand) upon rollover. I would then want image 2 to have hotspots on the individual fingers to operate disjointed rollovers eslewhere on the page. Is this possible with image swap? or, do I have to use layers? How would I implement this keeping in mind that image 1 and 2 are placed on top of each other with image to 2 being on the top. Any help would be greatly appreciated J |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I rollover the main "hand image" on my page the display is just like I want it in FF but in IE the rollover image displays several pixels lower ion the page. |
|
I am a little confused on one point. I understand that an Ap Div is not in the document flow and hovers above the document. But where does the ApDiv reference from? |
|
Murray: Thanks for the reply many days ago. Using some of your suggestions, I finally got things shaping up. I am having an issue though. I have been trying to work this issue out since last night with no luck. When I rollover the main "hand image" on my page the display is just like I want it in FF but in IE the rollover image displays several pixels lower ion the page. I want both images to line up identically as in Firefox. I am also having the same issues with the disjointed circular rollovers to the right of the hand. I tried messing around with zeroing out the padding, margin and borders in the body tag but haven't had any luck. I am a little confused on one point. I understand that an Ap Div is not in the document flow and hovers above the document. But where does the ApDiv reference from? Ideal I want it to reference from the wrapper but I don't know if that is what's going on. http://highschoolforthehumanities.or...dexSample.html Any help would be greatly appreciated, Thanks MS Here is my CSS: code>@charset "utf-8"; body { background: #999999; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em; line-height: 1.25em; color: #FFFFFF; } h1 { font-size: 1.5em; color: #FFFFFF; line-height: 1.05em; font-family: Verdana, Arial, Helvetica, sans-serif; } h2 { font-size: 1.25em; color: #B6A892; } img {border:none} p {padding-bottom: 10px;} ul { list-style-position: outside; list-style-image: url(../images/bullet.gif); list-style-type: none; } #container { width: 950px; background: #3f3f3f; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ text-align: left; /* this overrides the text-align: center on the body element. */ margin-top: 30px; } #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } #mainContent { background: #3f3f3f; padding-top: 10px; } #mainContent p{ text-align: justify; } #mainContent h1, h2 { padding-bottom: 10px; padding-left: 180px; padding-right: 152px; } #subheadingContainerLft ul { padding-left: 198px; margin-left: 0px; } #subheadingContainerLft h2 { padding-left: 180px; padding-right: 0px; } #subheadingContainerLft { float:left; width: 450px; } #subheadingContainerRt { float: left; width: 475px; } #subheadingContainerRt h2 { margin-left: 0px; padding-left: 0px; } #subheadingContainerRt ul { padding-left: 18px; margin-left: 0px; } #robertContainer { float:left; margin-top: 0; margin-left: 50px; width: 590px; height: 340px; margin-right: 0px; padding-right: 0px; } |
#5
| |||
| |||
|
|
Muray, Thanks for the reply. I am shocked that I never thought to resize the browser window to test the layout integrity, glad you pointed that out to me, what a mess. I have been working all morning on this with no luck. I have tried your Css suggestions and just get more of a mess. I read a bit about layer positioning on your website as well. I have been reading my books on CSS to try and wrap my head around these concepts and have been having great difficulty. I partially understand the bit about referencing from the body tag o,o coordinates because there are no other ancestors but what dictates the nearest ancestor? Is an ancestor the nearest div that is assigned a relative position as well? I tried adding the position:relative; in place of the absolute attribute to my div#container and things stayed the same. I then changed the absolute positioning attribute of the top layer (hand image w/ hotspots) to relative to see if would reference from the div#container as the nearest relatively positioned ancestor? but it just increased the margin between the banner and the top of the view port. I am thoroughly confused. Am attaching updated code for the html and the css. http://highschoolforthehumanities.or...dexSample.html |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Unfortunately when I rollover the the hidden layer image (#robertContainerTopLayer ) does not reposition itself as I change the browser view port. |
|
I do believe that all of my content has always been inside the #container, hasn't it? |
|
Murray, thanks for the info. I looked it over thoroughly and checked the demo links as well. I think I now understand this on paper but but my design is still breaking upon resizing of the view port. . My understanding is that the #container needs to be set to relative , which it now is. And the #robertContainerTopLayer div set to absolute so it will reference it's position from the nearest relatively positioned ancestor (#container). Unfortunately when I rollover the the hidden layer image (#robertContainerTopLayer ) does not reposition itself as I change the browser view port. Is this a DW behaviors issue?? You also said : [Q]To fix this, make your div#container by position:relative. Now, move ALL your content within the div#container. You will see magic happen when you do this.[/Q] I do believe that all of my content has always been inside the #container, hasn't it? I am feeling pretty frustrated. Thanks for all your time Murray. MS |
#8
| |||
| |||
|
|
Unfortunately when I rollover the the hidden layer image (#robertContainerTopLayer ) does not reposition itself as I change the browser view port. |
|
I do believe that all of my content has always been inside the #container, hasn't it? |
|
Murray, thanks for the info. I looked it over thoroughly and checked the demo links as well. I think I now understand this on paper but but my design is still breaking upon resizing of the view port. . My understanding is that the #container needs to be set to relative , which it now is. And the #robertContainerTopLayer div set to absolute so it will reference it's position from the nearest relatively positioned ancestor (#container). Unfortunately when I rollover the the hidden layer image (#robertContainerTopLayer ) does not reposition itself as I change the browser view port. Is this a DW behaviors issue?? You also said : [Q]To fix this, make your div#container by position:relative. Now, move ALL your content within the div#container. You will see magic happen when you do this.[/Q] I do believe that all of my content has always been inside the #container, hasn't it? I am feeling pretty frustrated. Thanks for all your time Murray. MS |
#9
| |||
| |||
|
|
higher up on the page. Margin/ padding type of issue? What do you think? |
|
Murray: Thanks for all the help, man do I feel really stupid. I spent a ridiculous amount of time on this today, over ten hours as embarrassing as that sounds and that's just today. I totally thought I was following your instructions. All I can say is thanks for lending a hand. I hope I can return the favor to someone else at some point. The layout doesn't break apart now but there is still a IE/ FF discrepancy in the vertical position of the apDivs . Looks like the Ad divs are rendering higher up on the page. Margin/ padding type of issue? What do you think? |
#10
| |||
| |||
|
|
higher up on the page. Margin/ padding type of issue? What do you think? |
|
Murray: Thanks for all the help, man do I feel really stupid. I spent a ridiculous amount of time on this today, over ten hours as embarrassing as that sounds and that's just today. I totally thought I was following your instructions. All I can say is thanks for lending a hand. I hope I can return the favor to someone else at some point. The layout doesn't break apart now but there is still a IE/ FF discrepancy in the vertical position of the apDivs . Looks like the Ad divs are rendering higher up on the page. Margin/ padding type of issue? What do you think? |
![]() |
| Thread Tools | |
| Display Modes | |
| |