-
AuthorPosts
-
July 7, 2016 at 4:15 am #657825
Hi there,
I’m trying to create a custom class for an image container so it floats up above a widget box (sort of like the icon content box).
.avia-image-container.avia-align-center .avia-image-container-inner {
background: #ffffff none repeat scroll 0 0;
display: inline-block;
margin: -68px auto 0;
vertical-align: bottom;
}After updating the margin, I was able to get the image to float up above the border like I want it too.
However I only want it applied to a specific custom CSS as noted inI set a custom class (float-icon-box) for the middle site search box on my homepage. Modified the Quick CSS, and it the image container doesn’t float up like it should.
.float-icon-box {
display: inline-block;
margin: -68px auto 0;
vertical-align: bottom;
}Any suggestions?
July 7, 2016 at 6:41 am #657839Hey gerardbao,
It’s not clear what you are trying to do? Would you mind posting us a screenshot/mockup of what you would like to achieve? You can upload the screenshot to imgur.com or dropbox and share the link here :)
Best regards,
VinayJuly 7, 2016 at 10:18 am #657864July 9, 2016 at 8:03 pm #658824Hi,
Thank you for sharing the mockup, to modify specific icon box please add the below css to quick css and the custom css class name “icon-offset” to the icon box element.
.icon-offset .avia-image-container-inner { margin-top: -200px; }
Let us know if you have any questions.
Best regards,
VinayJuly 11, 2016 at 12:15 am #659024I applied the code to the Simple custom CSS and added the icon-offset class name to the image box element and even the column box itself. Both attempts didn’t change anything.
July 12, 2016 at 2:42 pm #659885Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
AndyJuly 12, 2016 at 11:13 pm #660145Info noted in private.
July 13, 2016 at 9:20 am #660231Hi,
you didn’t put “icon-offset” as custom css class inside your icons in question, Vinay told it to you already. Afterwards I put this code into your Quick CSS field:
.avia_textblock.icon-offset { margin-top: -86px; }
Hope you’re happy now?
Best regards,
AndyJuly 13, 2016 at 6:32 pm #660529Sorry. I only put icon-offset in one of the icons for testing. Looks like the additional code helped too.
Yes I am happy and whole again. Thanks!
-
AuthorPosts
- The topic ‘Custom image float style CSS’ is closed to new replies.