before Selector

before Selector
CSS before Selector reference
The CSS before pseudo-element selector ( X::before { } ) is used to generate content to the targeted elements directly before the content inside the element is rendered. Reference the content property to see possible values of content types that can be generated, you can generate more than just string content.
CSS CODE EXAMPLE
<!DOCTYPE html>
<style type="text/css">
p::before {
    content: "String ... ";
}
</style>
<p>paragraph content</p>
<p>paragraph content</p>
<p>paragraph content</p>
<p>paragraph content</p>
 
paragraph content
paragraph content
paragraph content
paragraph content

0 Response to "before Selector"

Post a Comment