
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
CSS content: attr() on HTML5 progress doesn't work
You need to add static content in CSS to make it work.
Let us see an example −
HTML
<progress max = "100" value = "60" data-value = "5"></progress>
You need to add the following CSS. This is to add CSS generated content before and after the HTML5 progress element −
progress::-webkit-progress-bar:before, progress::-webkit-progress-bar:after { content: '989'; }
- Related Articles
- HTML5 meta name = “viewport” doesn't work as expected
- Python3 - Why loop doesn't work?
- MySQL system variable table_type doesn't work?
- Expression in CASE WHEN Clause doesn't work in MySQL query?
- Usage of attr() CSS function
- Why doesn't height: 100% work to expand divs to the screen height?
- Why doesn't JavaScript support multithreading?
- New line separator doesn't work for group_concat function in MySQL? How to use it correctly?
- HTML5 file uploading with multiple progress bars
- Why milk doesn't contain Vitamin C?
- If air pressure acting on chair then why it doesn't get crushed?
- Why Don't Transformers Work on DC Supply?
- MySQL LIKE command doesn't work with strings containing dots to display records beginning with a specific number
- Why doesn't MySQL support millisecond / microsecond precision?
- Why doesn't C++ support functions returning arrays

Advertisements