I'm experimenting with some styles on & text> s and I do some stuff Tried with :: first and :: after the selector and I could not do anything to make them work. So the question is: Is this possible? I know that the CSS forms are mentioned around, but it seems that it should work.
: before and after : Will not work on text-field (nor any element that is the other element, such as img or input ), because the generation of pseudo-elements Content made element << em> or before or after the content of that element, and itself an element Works as a proxy element is not kept before or after the original element (Contrary to some information Programming can be found on the Internet). For example:
If you have this CSS:
p: first {content: 'before--'} p: after {content: '--after '} then html like this:
& lt; P & gt; Original content & lt; / P & gt; Effectively rendering such as source code on screen:
not such as source code :
< / Code>
after
This is the reason why tags html element "content" (like those people can not include ) Before - & lt; P & gt; Original content & lt; / P & gt; Mentioned above) do not recognize pseudo elements, because there is no "space" for the content that is generated. There can be "content" in textarea , but only the pure text content can be.
Comments
Post a Comment