- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
I want to habe a space on a css content attribute.
So I am doing like this:
content: '020020»';
But sometimes the Browser is showing something like this:
content: '020020»';
Any idea why?
Thanks!
I think you mean content:'\ 0020';
The markdown editor is fooing my code – it should be ‘backslash zero zero two zero’ (without spaces)
A space
is an unusual thing to have in a pseudo element by itself…I can’t think of a reason for it that couldn’t be accomplished another (perhaps more robust) method.
Yes, that is what I am already using.
content: '\ 0020\ 0020»';
But sometimes it is showing something else:
content: '\ 0020\ 0020»';
Not sure why…
PD: Without the space.
@Paulie_D:
I know that space on a content attribute it is maybe not the best way to do this. But how would you add at the end of a text “»” without changing the html?
But how would you add at the end of a text “»” without changing the html?
I assume you meant “add space”…with padding or margin…that’s how one normally adds ‘space’.
That’s what they are for.
Using “space” characters is not for actual spacing any more than using br
tags is for separating elements.