Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css content with space

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #197071
    El Alemaño
    Participant

    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!

    #197072
    Beverleyh
    Participant

    I think you mean content:'\ 0020';

    #197073
    Beverleyh
    Participant

    The markdown editor is fooing my code – it should be ‘backslash zero zero two zero’ (without spaces)

    #197083
    Paulie_D
    Member

    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.

    #197091
    El Alemaño
    Participant

    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.

    #197092
    El Alemaño
    Participant

    @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?

    #197093
    Paulie_D
    Member

    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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.