I think you need a space between ::content and :first-child

http://jsbin.com/jaluh/2/edit


On Sun, Jun 22, 2014 at 11:31 AM, Don Olmstead <[email protected]>
wrote:

> I have a component where I have an image absolutely positioned in the
> upper right corner like the following.
>
> +-----------------------+---+
> |     :first-child      | I |
> +-----------------------+---+
> |  rest of the content      |
> +---------------------------+
>
> I'd like to be able to apply a margin on the right to the first child of
> the content area so it doesn't bleed into the area taken up by the image. I
> was trying the following CSS which doesn't give me the behavior I was
> hoping for.
>
> polyfill-next-selector {
>   content: ':first-child'; }
>
> ::content:first-child {
>   margin-right: 44px; }
>
> I can work around it by giving a different class to the first element, but
> I figured I'd ask if I'm doing something wrong or if there's even support
> for pseudo elements within the <content> tag.
>
> Thanks!
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/a39b7cf2-05e9-4de6-81ae-429637f176c2%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/a39b7cf2-05e9-4de6-81ae-429637f176c2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAJj5OwCbhJtiv8BNX97cUQxytFAo4mUo0vPr1Jqtx80yq1OMMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to