Home › Forums › Support › Site title border This topic has 11 replies, 2 voices, and was last updated 4 years, 8 months ago by Leo. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts July 24, 2019 at 9:41 am #966192 Ernesto Hi, I need to set a border (1 o 2 px, white or another color) to the H1 header title on my site: I just can’t figure out how to do it. Thanks for your help Ernesto July 24, 2019 at 9:42 am #966193 LeoStaff Customer Support Hi there, Try this CSS: .main-title a { border: 1px solid #ffffff; padding: 5px; } Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know π July 24, 2019 at 10:35 am #966237 Ernesto I think I didn’t explain myself properly, I didn’t mean a rectangle box around the H1 tag, like this: http://prntscr.com/ojiyzq but a border to each letter of the heading H1 ————————————– One more issue, opening the site with a tablet it looks like this: http://prntscr.com/ojj0gb any hints to solve it? Thanks once again July 24, 2019 at 4:11 pm #966392 LeoStaff Customer Support but a border to each letter of the heading H1 Not quite sure if I can picture this. Can you provide a quick example? Background images are tough to deal with sometimes unfortunately. You can either try setting the background-size to auto, or apply a different image specifically for the smaller screen using this CSS: @media (max-width: 768px) { .site-header { background-image: url(https://IMAGE-URL); } } Let me know π July 24, 2019 at 9:38 pm #966554 Ernesto I’m trying to achieve this: http://prntscr.com/ojpm82 this is what I have now: http://prntscr.com/ojpmlj I would be nice to try something like this too, no fill in the font: http://prntscr.com/ojpng6 thanks July 25, 2019 at 8:48 am #967084 LeoStaff Customer Support Ahh you are looking for something like this: https://css-tricks.com/adding-stroke-to-web-text/ Your CSS selector would be: .main-title a, .main-title a:hover, .main-title a:visited { /* stoke CSS here */ } July 25, 2019 at 9:56 am #967184 Ernesto YESSSSS !!! That’s the idea! Thanks! July 25, 2019 at 9:57 am #967186 LeoStaff Customer Support No problem π July 25, 2019 at 10:05 am #967190 Ernesto Leo, Just one more question: could this be like this? .main-title a, .main-title a:hover, .main-title a:visited { -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: white; } July 25, 2019 at 11:26 am #967268 LeoStaff Customer Support That looks good. Have you tried it? July 25, 2019 at 12:35 pm #967313 Ernesto Yes Leo, and it works! Thank you for the hints Ernesto July 25, 2019 at 3:15 pm #967397 LeoStaff Customer Support No problem π Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In