MDN documentation<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"The :optional pseudo class targets inputs (including <select>s) that are not specifically set as required (do not have the required attribute). This can be useful when you want to give optional fields a specific look, maybe slightly less visible than required ones. Syntax Demo In the following demo, optional field (\u201cName\u201d, \u201cGender\u201d and \u201cContinent\u201d) have their opacity lowered to 40% so users […]<\/p>\n","protected":false},"author":1036,"featured_media":0,"parent":14240,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-almanac-single.php","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":""},"tags":[],"acf":[],"jetpack-related-posts":[{"id":14267,"url":"https:\/\/css-tricks.com\/almanac\/selectors\/r\/required\/","url_meta":{"origin":14246,"position":0},"title":":required","date":"September 6, 2011","format":false,"excerpt":"The :required pseudo class selector in CSS allows authors to select and style any matched element with the required attribute. Forms can easily indicate which fields must have valid data before the form can be submitted, but allows the user to avoid the wait incurred by having the server be\u2026","rel":"","context":"With 12 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":243955,"url":"https:\/\/css-tricks.com\/snippets\/sass\/viewport-sized-typography-minimum-maximum-sizes\/","url_meta":{"origin":14246,"position":1},"title":"Viewport Sized Typography with Minimum and Maximum Sizes","date":"July 28, 2016","format":false,"excerpt":"Declaring font sizes in viewport units can produce really interesting results, but it does come with challenges. There are no min-font-size or max-font-size properties in CSS, so edge cases where text gets too small or too big are difficult to deal with. This Sass mixin makes use of media queries\u2026","rel":"","context":"With 12 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20644,"url":"https:\/\/css-tricks.com\/video-screencasts\/121-the-right-cms-is-a-customized-one\/","url_meta":{"origin":14246,"position":2},"title":"#121: The Right CMS is a Customized One","date":"March 18, 2013","format":false,"excerpt":"The perfect CMS to suite the needs of any non-trivial content-oriented website does not come out-of-the-box. They require customization. For instance, a feature article for a news site isn't just a title and content anymore. It's a title, optional subtitle, alternate short title, blurb, full content, related articles, featured image,\u2026","rel":"","context":"With 54 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":375796,"url":"https:\/\/css-tricks.com\/almanac\/properties\/b\/border-image-slice\/","url_meta":{"origin":14246,"position":3},"title":"border-image-slice","date":"December 20, 2022","format":false,"excerpt":"The CSS border-image-slice tells the browser where to \u201cslice\u201d an image being used to create the pieces of an element\u2019s borders. .element { border-style: ridge; border-width: 3rem; border-image-source: url('path\/to\/image.jpg'); border-image-slice: 30%; border-image-repeat: repeat; } The border-image-slice property is defined in the CSS Backgrounds and Borders Module Level 3 specification. When\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/12\/css-tricks-logo-gradient-outline.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":13974,"url":"https:\/\/css-tricks.com\/almanac\/properties\/b\/box-shadow\/","url_meta":{"origin":14246,"position":4},"title":"box-shadow","date":"August 31, 2011","format":false,"excerpt":"The box-shadow property in CSS is for putting shadows on elements (sometimes referred to as \"drop shadows\", ala Photoshop\/Figma). .card { box-shadow: 0 3px 10px rgb(0 0 0 \/ 0.2); } That syntax is: box-shadow: [horizontal offset] [vertical offset] [blur radius] [optional spread radius] [color]; The horizontal offset (required) of\u2026","rel":"","context":"In \"box-shadow\"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":150360,"url":"https:\/\/css-tricks.com\/lodge\/learn-jquery\/12-callback-functions\/","url_meta":{"origin":14246,"position":5},"title":"#12: Callback Functions","date":"September 19, 2013","format":false,"excerpt":"Everybody's favorite: concept video time! Callbacks are an important concept in JavaScript. They are functions that are called when an action has completed running. Then lend structure and timing to our code. Take for example the animation we used in the last video. Animations take time to run. What if\u2026","rel":"","context":"With 12 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14246"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/1036"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=14246"}],"version-history":[{"count":7,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14246\/revisions"}],"predecessor-version":[{"id":346120,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14246\/revisions\/346120"}],"up":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/pages\/14240"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=14246"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=14246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}