Tagged: special heading
-
AuthorPosts
-
December 30, 2014 at 5:07 pm #373186
hi with special headings i love how it places a nice horizontal line to the right of the heading
how ever if we center align the text this effect is no long displayed
How can we have it so it looks something like this
————————— Special Header ————————-
December 30, 2014 at 5:42 pm #373206Hey codecreative!
Add this to your custom CSS.
body .av-special-heading.blockquote .special-heading-border { display: block !important; }
If you want to move it up a bit then you can add this.
top: -20px;
Regards,
ElliottDecember 31, 2014 at 4:59 pm #373594hi
that doesn’t place the line at each side of the text, to the left and right it just placs it underneath you can see from
http://217.199.187.191/dramirsavage.co.uk/
Where it says Periodontist and Implant Dentist underneath the slideshow
Is there anyway to have it float to the left and one to the right in the same way it works when the special heading is just default and left aligned it has a nice line effect to the right of the text
December 31, 2014 at 6:05 pm #373634Hey!
Try adding this as well.
.av-special-heading-tag { background: none repeat scroll 0 0 white !important; left: 50% !important; position: relative; transform: translate(-50%); z-index: 100; display: inline-block !important; float: none !important; margin: 0 auto !important; padding: 10px !important; width: auto !important; }
Cheers!
ElliottJanuary 2, 2015 at 7:32 pm #374167Hi Elliot
Still seems to be failing have you seen it working your end?
January 2, 2015 at 10:14 pm #374255Hey!
Send us a link to the page where your using it at so we can see what’s going on.
Regards,
ElliottJanuary 6, 2015 at 11:46 am #375605No problem thank you for your support Elliot its appreciated
http://www.motcombstreetdental.co.uk/
You can see under the slide show, where it says
Welcome to Motcomb Street Dentist Website
The lines appear to be above and below now after applying the css mentioned
January 6, 2015 at 8:47 pm #375832Hey!
I don’t think its possible by default with the theme, but we can give you a quite complicated workaround:
Add two separator elements from Avia Layout Builder above your special heading. Go and edit the separator items. Choose the width you ned for each side. For “Top Margin” and “Bottom Margin” choose 0px. Choose no icon obviously.
After finding both separator elements on your page, you need to add this into Quick CSS:
For first separator:.hr.hr-custom.hr-center.hr-icon-no.avia-builder-el-1.el_after_av_textblock.el_before_av_hr { left: -141px; top: 46px; }
For second separator:
.hr.hr-custom.hr-center.hr-icon-no.avia-builder-el-2.el_after_av_hr.el_before_av_heading { left: 142px; top: 22px; }
You need to adjust “left” and “top” so it fits for your special heading.
If you need help for adjusting the separators correctly give us a shout after adding them into your page.
Hope that helps.
Cheers!
AndyAugust 19, 2017 at 7:33 pm #841382Hi Guys,
Is there any easy way to do this now with the latest update?
“How can we have it so it looks something like this
————————— Special Header ————————-”
Thanks,
August 21, 2017 at 12:28 pm #841968Hi skynandi,
Here is some css you can play with
If you need further assistance please let us know.
Best regards,
VictoriaAugust 21, 2017 at 3:31 pm #842052Thank You, Victoria
How do I set this up in Enfold? Where do I put that CSS code?
Thank You
August 23, 2017 at 10:11 pm #843303Hi,
Please go to the Theme Settings of Enfold, and you will be there to past the custom CSS
Best regards,
BasilisAugust 23, 2017 at 10:19 pm #843306Thanks, Basilis,
Can you tell me what is the correct custom CSS code to achieve this:
————————— Special Header ————————-
Thanks
August 28, 2017 at 7:34 am #844703Hi @skynandi,
Have you tried the CSS in this thread: https://kriesi.at/support/topic/heading-centered-between-lines/#post-594448
If you need further help, please provide us with a link to the website where you would like to do this.
Best regards,
SarahOctober 17, 2017 at 3:02 pm #865302Yes I have and it works on desktop, but it’s not responsive and when it shrinks it covers the text, is there a better way to do this?
Thanks
Nandor
October 18, 2017 at 10:43 am #865628Hi Nandor,
Can you show us what you’ve got so far?
Best regards,
VictoriaOctober 18, 2017 at 3:56 pm #865768I’ve tried all the codes in this thread and some more from others.
The simple “CSS line behind text” you have posted earlier works on desktop but when you shrink the page to mobile it brakes up and covers the text.
The default style “special heading” in the theme is almost there, I just need that element centered with the lines on both sides.
Thanks in advance,
October 19, 2017 at 9:06 pm #866450Hi skynandi,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaOctober 20, 2017 at 4:03 pm #866757This reply has been marked as private.October 22, 2017 at 8:53 pm #867304Hi skynandi,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 480px) and (max-width: 767px) { .av-special-heading-tag:after { content: ''; width: 30% !important; } .av-special-heading-tag:before { content: ''; width: 30% !important; } } @media only screen and (max-width: 479px) { .av-special-heading-tag:after { content: ''; width: 20% !important; } .av-special-heading-tag:before { content: ''; width: 20% !important; } } .av-special-heading-tag:after { content: ''; width: 40%; height: 1px; border-bottom: 1px solid #6cc24a; position: absolute; right: 0; top: 45%; } .av-special-heading-tag:before { content: ''; width: 40%; height: 1px; border-bottom: 1px solid #6cc24a; position: absolute; left: 0; top: 45%; }
If you need further assistance please let us know.
Best regards,
VictoriaOctober 23, 2017 at 3:45 pm #867651Thank you for that, it works.
October 23, 2017 at 4:27 pm #867685Hi skynandi,
Glad we got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaNovember 6, 2017 at 9:38 pm #873346Exactly what I needed also. Thank you Victoria!
November 6, 2017 at 9:58 pm #873357Hi,
Glad that Victoria helped you. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Center Align special heading so that lines still show’ is closed to new replies.