{"id":2243,"date":"2016-06-30T15:14:44","date_gmt":"2016-06-30T13:14:44","guid":{"rendered":"http:\/\/www.hyperpac.de\/?p=2243"},"modified":"2016-06-30T15:14:44","modified_gmt":"2016-06-30T13:14:44","slug":"nested-css-with-pseudo-class","status":"publish","type":"post","link":"https:\/\/www.hyperpac.de\/?p=2243","title":{"rendered":"Nested CSS with pseudo class"},"content":{"rendered":"<p>Lately I had a bit of an design issue with a web front end based on classical php\/html\/css. I wanted to display images in different sizes on different pages. But I wasn\u00b4t able to touch the php \/ html source so my only chance was to work on the css. But &#8211; I also wasn\u00b4t able to touch the css (pseudo) classes or introduce\u00a0new ones.<\/p>\n<p>After quite some time of research I discovered, that CSS offers a great way to nest statements so here is what I\u00b4ve done.<\/p>\n<p>The original CSS class looked like this:<\/p>\n<blockquote><p>.td_value_details {<br \/>\nvertical-align: top;<br \/>\n}<\/p><\/blockquote>\n<p>And here is how I nested my image size statement in it:<\/p>\n<blockquote><p>.td_value_details img {max-width: 600px; height: 350px;} {<br \/>\nvertical-align: top;<br \/>\n}<\/p><\/blockquote>\n<p>I really didn\u00b4t know that this was possible and I\u00b4m pretty sure it\u00b4s not best practice, but it really does the\u00a0job.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately I had a bit of an design issue with a web front end based on classical php\/html\/css. I wanted to display images in different sizes on different pages. But I wasn\u00b4t able to touch the php \/ html source so my only chance was to work on the css. But &#8211; I also wasn\u00b4t &hellip; <a href=\"https:\/\/www.hyperpac.de\/?p=2243\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nested CSS with pseudo class<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[1185,441,1186,1183,1184],"class_list":["post-2243","post","type-post","status-publish","format-standard","hentry","category-it_wordpres","tag-class","tag-css","tag-css-img","tag-nested","tag-pseudo"],"_links":{"self":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2243"}],"version-history":[{"count":1,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2243\/revisions"}],"predecessor-version":[{"id":2244,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=\/wp\/v2\/posts\/2243\/revisions\/2244"}],"wp:attachment":[{"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyperpac.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}