I’m doing ok except I can’t figure out how to have the top right-hand graphic contain "name’ and “email” fields as an opt in form. Is this even possible? I’ve tried building a form and using the graphic as a background but can’t make the form fit the size of the other graphics.
We want to start with a static one like this first, then perhaps (if I can figure out how to do it!!) replace it with a popup version later.
(Note: I’m still working on the “responsive” parts; it’s definitely a work in progress)
That would be the way to do it, using it as a background image. But because the image has text in it, I presume you want the form elements to clear that. I would be best if the text was actual text, not part of the image, that would help in keeping it clear and with semantics.
Hi, when I looked at the site I thought you meant the “don’t go nuts…” piece. (That’s even more at the top right. )
When I reread your post I had already a fix for the "fit the size of the other graphics, (the logo on the top left I thought. )
I’ll have a look again for the form part. Make the html commented out form as an overlay of the image instead of a background would be an easy solution with the html as is, but not very semantic.
As @SamA74 pointed out, the text could be content above the form and the image as background. I think the other three images could move to the css as backgrounds to three link containers with the same look. But that would need another html structure of the “productshome” part.
Anyway here is my fix for the “Don’t go nuts” piece:
@media only screen and (min-width: 769px) {
#text {
font-size: 1.8vw; /* relate an inherited size to the viewport width to make text grow fluidly like the logo does */
}
}
@media only screen and (min-width: 1404px) {
#text {
font-size: 26px;/* fix size when the gridContainer's max-width 1232px kicks in */
}
}
Thanks Erik. I did mis-speak (mis-type?). I should have said the top-right graphic of the group of 4 (or the 2nd graphic down on a phone). It’s the graphic with the green dragon (which I hate but the site owner loves) that needs to have the form attached to it. Interesting thought about having the graphics as background images - thanks for that!