Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #486478

    Since the topic is closed!….

    I workt :) tnx both of you. ive put my header between the <span> tags and add the following code to custom ccs:

    .page-id-2019  .av-special-heading-tag {
        height: 100px;
        position: relative;
        top: 40px;
    }
    
    .page-id-2019 .av-special-heading-tag span {
        background: rgba(0, 220, 152, 0.8) none repeat scroll 0 0;
        border-radius: 15px;
        padding: 10px 20px;
    }

    check it out :)
    http://www.lookmedia.nl/wat-krijg-je-bij-een-compleet-website-pakket/

    Hi!

    I would like to have a color behind my header text. See the images for how it should be.

    I just selected the text to show what i mean. ( i want the color in te background of that text.

    How it is:
    https://drive.google.com/file/d/0B_mQvtGIygkaT1VZV2NnS1JiUHc/view?usp=sharing

    How i want it to be:
    https://drive.google.com/file/d/0B_mQvtGIygkaUk1RTkpuM1pySk0/view?usp=sharing

    TNX!

    • This topic was modified 9 years, 3 months ago by c3computers.
    #486484

    Hi c3computers!

    Please turn on custom CSS field for ALB elements – kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then give your element a custom class and add following code to Quick CSS

    .your-custom-class { background-color: orange; padding: 5px; }

    Best regards,
    Yigit

    #486505

    hm – if you only want the heading to get a background color you have to do a little trick – because the container of the h1 (or heading) has 100% width of the surrounding container.

    go to your heading and put the heading text in <span>Wat krijg je?</span>
    so you can make some specific css for that:

    f.e.:

    .av-special-heading-tag {
        height: 100px;
        position: relative;
        top: 40px;
    }
    
    .av-special-heading-tag span {
        background: rgba(0, 220, 152, 0.8) none repeat scroll 0 0;
        border-radius: 15px;
        padding: 10px 20px;
    }

    you can see the result here:
    http://webers-testseite.de/enf02/wat-krijg-je/

    if you only want it for that page you has to know the page-id:

    .page-id-2019  .av-special-heading-tag {
        height: 100px;
        position: relative;
        top: 40px;
    }
    
    .page-id-2019 .av-special-heading-tag span {
        background: rgba(0, 220, 152, 0.8) none repeat scroll 0 0;
        border-radius: 15px;
        padding: 10px 20px;
    }
    • This reply was modified 9 years, 3 months ago by Guenni007.
    #486512

    Hey!


    @guenni007
    Thanks as always! I guess you do not really like using custom CSS field? :)

    Regards,
    Yigit

    #486525

    yes but have a look to your changings : the h1 container has 100% width so the background-color goes the full 1210px (default value without 50px padding left/right) – if you look at his screenshot he likes to have only background-color behind the fonts – not the whole container.

    #486530

    Hey!

    Correct :) Screenshots did not load when i first checked but now i see

    Regards,
    Yigit

    #486536

    for 50px heading and 30px subheader he only had to play with that container height and padding

    #486539

    Hi!

    He can give a custom class to Span tag as well as following

    <span class="custom-tag">hey you!</span>

    and target directly using “.custom-tag” class in Quick CSS.

    Best regards,
    Yigit

    #486562

    yes – indeed you got me ;)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Background color "Special Heading (H1)"’ is closed to new replies.