Some days ago I was trying to customize my blog’s look and feel to remove my pic from each one of my entries. E:first-child: Matches element E when E is the firstchild of its parent (The :first-child pseudo-class) So, the custom CSS ended up being Just now you are seeing only one pic of mine 🙂
At my blog’s theme, every
tag (which contains my pic for each entry) is the first child of a tag.
I discovered a very handy CSS2 selector syntax to accomplish this task:
td > img:first-child {display: none;}
, which removes my user pic from every post, but keep the one on the left sidebar.
Posts Tagged xhtml
About CSS2 Selectors
May 1