--- id: 587d781c367417b2b2512abf title: Decrease the Opacity of an Element challengeType: 0 videoUrl: 'https://scrimba.com/c/c7aKqu4' forumTopicId: 301055 dashedName: decrease-the-opacity-of-an-element --- # --description-- The `opacity` property in CSS is used to adjust the opacity, or conversely, the transparency for an item.
A value of 1 is opaque, which isn't transparent at all.The value given will apply to the entire element, whether that's an image with some transparency, or the foreground and background colors for a block of text. # --instructions-- Set the `opacity` of the anchor tags to 0.7 using `links` class to select them. # --hints-- Your code should set the `opacity` property to 0.7 on the anchor tags by selecting the class of `links`. ```js assert( /\.links\s*{([\s\S]*?;)*\s*opacity\s*:\s*0*\.70*\s*(;[\s\S]*?|\s*)}/.test( $('style').text() ) ); ``` # --seed-- ## --seed-contents-- ```html
A value of 0.5 is half see-through.
A value of 0 is completely transparent.
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.