There’s one more trick you can try for this, and I can confirm that it works and is responsive. First, apply my PrefixFree Action to the page, or else get ready to type a lot of different browser prefixes into your CSS.
Instead of using top with a negative pixel value, use this:
transform: translateY(-50%);
Do that to your picture, and it will float up to halfway. Unfortunately the text to the right of it will appear a little low. So to fix that, you also need to float the picture up half of its height. Make a new style in the Styles palette with the Tag set to #yourBoxName span
, and use Extended to add the same transform value, plus display: inline-block
.
Walter
On May 24, 2015, at 8:48 PM, JDW email@hidden wrote:
Thanks, Walter, it’s now popping outside its box as it should.
I now just need to figure out how to get the graphic and the text to vertically center with respect to each other inside the same colored box. I normally use a table for vertical centering since it’s fast and easy (put the graphic in the left cell and the text link in the right cell). Ernie taught me the proper “responsive” way as per the following thread:
http://freewaytalk.net/thread/view/161777
But the problem is that vertical centering method doesn’t allow me to select both the graphic and the text and put a link on both at the same time, such that mousing over the graphic will trigger HOVER on the text link.
I can hack together something that looks like its vertically centered on Macs using Safari, but if the text size changes on Windows or if the user makes the text size change, then the text will be off-center as show in this short screencast (no sound):
http://cl.ly/150c2k0e0P0g
Using a table, I can make them both vertically center perpetually, regardless of how the text shrinks or expands, but since they would be in separate cells in that case, I could not select both and apply a link to them.
It never fails that I seek to achieve something so simple which in turn ends up becoming so complex!
–James Wages
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options