Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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 in

    I 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?

    #657839

    Hey 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,
    Vinay

    #657864
    #658824

    Hi,

    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,
    Vinay

    #659024

    I 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.

    #659885

    Hi,

    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,
    Andy

    #660145

    Info noted in private.

    #660231

    Hi,

    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,
    Andy

    #660529

    Sorry. 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!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Custom image float style CSS’ is closed to new replies.