How to add text or characters using CSS (no javascript)?


Tags: html,css,tags

Problem :

Well it should work in IE, I know IE doesnt support content property anything other that?



Solution :

The only option is the the content property:

The content property is used with the :before and :after pseudo-elements, to insert generated content.

But as you point out, this is part of CSS 3 and is not supported by IE. In the meantime you will need to compensate by using JavaScript.


    CSS Howto..

    Grails: How do I use the resources plugin to add a CSS “link” tag into the head?

    How to center navigation that has icons so text is aligned to icons?

    How do I center a table?

    How to adjust 100% height to include height of added element

    how does CSS determine which way to animate a transition?

    Prevent div from showing after slideUp() - jQuery

    How to apply css, after Jquery adds a class?

    How to change font-color for disabled input?

    How to calculate the length in pixels of a string with php - from another page on my website

    How to align navigation links after navigation menu is collapsed using bootstrap

    How does CSS handle specificity tie?

    How to create a fixed menu (links come from right to left) - HTML & CSS

    How to theme Options of select box

    How to alter hover effects for image button and embedded text?

    CSS How to make div 100% despite 80% div

    How to remap CSS shortcut key in Mac Bluefish text editor

    How to apply custom size to text field in rails

    How to reference a Div after each h3

    How to make the table use multiple lines on long text using css

    How can I use a different CSS using jQuery?

    CSS: How to make a div block *not* take space in its parent container

    How to make hashtag links work on Internet Explorer?

    Ruby on Rails: (Beginner) How can I make my style sheet (in public/stylesheet folder) be used by my layouts?

    How to hide part of css when input is empty?

    How to center li tags list

    how to increase the size of background image to cover all backgroung (but no repetition) [closed]

    How can I center just one element within a container?

    How to have elements copy other element's auto height css?

    how to ensure that each time a css class name changes from the previous, it is applied a specific style

    how to tint image in div when clicked for 0.5 seconds