XF 2.2 How to give the text on my nodes a border?

Kone

Member
Hi, users on my site have been complaining the text on my nodes are hard to see and while I have been able to change the color to something more visible, the text is still rather obscured due to the colors on the node(s) wallpaper. Is there any code that can be used to wrap the text in a black border or something along those lines so the text stands out more and is more visible? Only asking as the style I'm using doesn't offer that in the settings and I'm hoping there's a workaround for it.

An example of said issue:
a89a4c563da5464dd5486e2fde4ba1de.webp
 
Solution
In the extra.less template.

Start with something like this:
Less:
.node
{
    text-shadow: 2px 2px black;
}

Then customise it to suit.

You can target just the node title, or other elements as required.

Use the browser inspector (F12) to experiment.

For example, this is purple:

1681081283902.webp
I found that the easiest way for me was to just edit the template and move things around (see below) so the text was not lost in the background. This is the member_view template.

1681066688414.webp
 
In the extra.less template.

Start with something like this:
Less:
.node
{
    text-shadow: 2px 2px black;
}

Then customise it to suit.

You can target just the node title, or other elements as required.

Use the browser inspector (F12) to experiment.

For example, this is purple:

1681081283902.webp
 
Solution
In the extra.less template.

Start with something like this:
Less:
.node
{
    text-shadow: 2px 2px black;
}

Then customise it to suit.

You can target just the node title, or other elements as required.

Use the browser inspector (F12) to experiment.

For example, this is purple:

View attachment 284421
Did a bit of playing around and it all looks much better. Thanks so much again for your help, you're a life saver.
 
Back
Top Bottom