-
AuthorPosts
-
August 12, 2015 at 12:52 pm #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=sharingHow i want it to be:
https://drive.google.com/file/d/0B_mQvtGIygkaUk1RTkpuM1pySk0/view?usp=sharingTNX!
- This topic was modified 9 years, 4 months ago by c3computers.
August 12, 2015 at 12:59 pm #486484Hi 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,
YigitAugust 12, 2015 at 1:22 pm #486505hm – 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, 4 months ago by Guenni007.
August 12, 2015 at 1:26 pm #486512Hey!
@guenni007 Thanks as always! I guess you do not really like using custom CSS field? :)Regards,
YigitAugust 12, 2015 at 1:36 pm #486525yes 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.
August 12, 2015 at 1:42 pm #486530Hey!
Correct :) Screenshots did not load when i first checked but now i see
Regards,
YigitAugust 12, 2015 at 1:45 pm #486536for 50px heading and 30px subheader he only had to play with that container height and padding
August 12, 2015 at 1:51 pm #486539Hi!
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,
YigitAugust 12, 2015 at 2:14 pm #486562yes – indeed you got me ;)
-
AuthorPosts
- The topic ‘Background color "Special Heading (H1)"’ is closed to new replies.