Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #985744

    Hello,
    I would like to add a special heading align to the right. I tried it with the following step but it didn’t work.

    First off do this, http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/.

    And then add a class of “align_right” to the heading and then add this to your custom CSS.

    .align_right h3 {
    text-align: right;
    }

    Thanks for your support.

    Kind regards
    Nino

    #985786

    Hey Nilpferd,
    Please try this code in the General Styling > Quick CSS field:

    .av-special-heading-tag {
    float: right !important;
    }

    If this doesn’t help please include the url to the page in question so we can take a closer look.

    Best regards,
    Mike

    #993725

    Hello Mike,
    thanks for your answer. Now it works. But the special heading is always float right. I would like to select float right or float left. You can see it on the link (I post the link in the private content section).

    Thanks.

    Best regards,
    Nino

    #993754

    Hi,
    Ok, I see now, so first on your page your elements are h2, not h3
    then if you want some to float right, and others to float left, you will need to create two classes “align_right” & “align_left”
    and add the appropriate class to the appropriate element.
    Please see screenshot in Private Content area.
    then use this css:

    .align_right h2 {
    float: right !important;
    }
    .align_left h2 {
    float: left !important;
    }

    Best regards,
    Mike

    #994523

    Hello Mike,

    no it works fine. Thanks. I have another question. How can I delete the line besides the headline?

    Best regards
    Nino

    #994584

    Hi,
    Please try this code in the General Styling > Quick CSS field:

    .main_color .align_right .special-heading-inner-border,.main_color .align_left .special-heading-inner-border {
    border-color: transparent;
    }

    this covers the two classes “align_right” & “align_left” so that it won’t interfere with the rest of your site.

    Best regards,
    Mike

    #1211388

    Hi – this is my solution to the problem of aligning a special heading to the right, using heading_float_right as a user-defined class.

    .heading_float_right .av-special-heading-tag {
    float: right !important;
    }

    .heading_float_right .special-heading-inner-border {
    margin-left: 0px !important;
    width: 98% !important;
    }

    Cheers,
    Ralph

    #1211434

    Hi,
    Thanks for sharing your solution.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to make the special heading align to the right’ is closed to new replies.