Hi, I’m new to Obsidian and css entirely. Forgive me if I’m doing anything out of the general rules.
I’m trying to import custom css into Obsidian, but have had issues with a few showing up correctly in the Live Preview mode.
In this case, the border between “#” and “Google”(or “Yahoo”) overlap with each other.
The desired outcome would be a single border surrounding “#Google” or “Yahoo”, like the below.
Things I have tried
I’ve had some other issues but was able to solve them thanks to the below post.
However I’ve been tinkering with the border overlapping issue for a while but to no avail.
Thanks in advance.
I also have another css snippet for the hashtags that may be interfering (copied from the aforementioned forum post). Will paste just in case.
/* for hash (#) part of the tag in live preview */
/* use it for padding, and border */
.cm-s-obsidian span.cm-hashtag-begin {
padding-left: 5px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
/* for the word (after the #) part of the tag in live preview */
/* use it for padding, and border */
.cm-s-obsidian span.cm-hashtag-end {
padding-right: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
``
Not sure what theme you are using (the default and Minimal themes have more rounded and pill shaped tags as the default shape), but something like this should work with some adjustments on your end.