Hello all. To us yankees…happy fourth, be mindful not to loose a finger or two, keep the pets inside. To everyone else, have an awesome day as well.
Onto the transition thing now.
On this page: http://www.danielamorescalchi.com/coreCorp/index.php
I set up the first image to change when the user hovers over it. great…works. however the bottom image doesn’t’ resize.
Any advice on how to affect the size of both images as the broweser re-adjusts in size.
on this other page http://www.danielamorescalchi.com/coreCorp/staffing.php
I have a thin animated line at the top I am testing out. of course it is fine in chrome. but it gives me scroll bar in ff & nothing at all in IE.
The vendor prefixes are in…
How can i fix this. Any suggestions please?
Thx
d
But make sure to optimize your large background images. They are gigantic files, which isn’t viable on the web. Use the Photoshop Save for Web option to reduce them to about 150 kb.
Hello Ralph, i mean the first image w/the oil platform. if you hover over it changes. but when you resize the browser you’ll see the second image remain the same size and the both are then visible.
Yes on the bg large sizes. Was actually wondering about preloading, but will try to re size & not loose the quality.
the display:block did the trick.
bottom margin/padding not kicking in which is interesting.
this also works on the span w/the text that I added. but not if I stretch the browser way out…or way in.
currenlty I set the size of the span to 100% you think setting a size would work better?
thx
D
additionally:
for the middle image I wanted to try and add more animation on hover: This is what I shot for, and so far it hasn’t worked so looking for answers.
in the html i have:
awesome! that did the trick. And I changed the z-index so now it shows up on top.
Could you advise on how to position it?
I tried giving it a top & left property (also tried at ul & li level) didn’t work. currently chrome says they are “invalid property values” but I can’t see where else they’d go.
also on of the probs is that when I hover over the tech image i get the text boxes.
On the other hand…crap…now I get an horizontal scroll bar…
According to Firebug, the <ul> is not allowed inside the <span>. The reason is of course that block elements such as the <ul> are not allowed inside of an inline element, such as the <span>. You could probably change the <span> to a <div> and style the <div> as needed.
The other questions I’m unclear about. What needs to be positioned?
Done. Ronpat thank you for the clear explanation as why the span would not work w/a ul. Will take care of the other issues as well.
As for clarifying.
when i hover over staffing i’d like for those two boxes (that will hopfully be soon styled and more attractivly animated)
to show up on top and centered over the staffing image.
Right now regardless of me giving the .txtBox an absolute position it is stuck to the left side of the image.
Also a bit problematic is that if i hover over the tech image for example the boxes display (understandable due to their size).
So I was wondering how to fix that.
(do have another question about the animation but not to muddle the waters will post a new one)
Thank you.
D
all right! yey…high five. solved the positioning, but only on local & chrome?!? wtf???
If there is a better solution let me know.
but here it is in case it helps anyone else:
You cannot :hover over an object with the property {display:none} because it isn’t there. That’s why I suggested opacity as a possibility.
I’m having a problem visualizing what you are trying to achieve. What is supposed to trigger what. Would you mind describing again how the objects are supposed to work on the page?
Sure thank you Ronpat.
I’d want to add more animation to the page. both on the main and staffing page.
so when the user hover over an image a div displays animation w/content.
on the index page both boxes w/the content should show at once. on the staffing page the display based on which half of the image the user hovers over.
I want to use positioned divs as I want the effects and animation to be larger than the original image. I don’t just want a roll over.