{"id":3191,"date":"2021-06-23T05:35:31","date_gmt":"2021-06-23T05:35:31","guid":{"rendered":"https:\/\/saadashraf.net\/blog\/?p=3191"},"modified":"2021-06-23T05:35:31","modified_gmt":"2021-06-23T05:35:31","slug":"how-to-target-design-elements-with-the-css-not-pseudo-class","status":"publish","type":"post","link":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/","title":{"rendered":"How to Target Design Elements with the CSS: not Pseudo-Class"},"content":{"rendered":"<p>Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.<\/p>\n<p>However, there are times when a particular piece of a plan doesn&#8217;t exactly fit the shape. It could be an oddball configuration include that is used on a solitary page or space of a site. For instance, home pages frequently incorporate components that don&#8217;t continue to auxiliary pages. Singular blog entries may likewise require their very own specific design.<\/p>\n<p>The difficulty is that the HTML markup might be the same all through the site. Think about a WordPress topic that has a similar design for each page. How might you target just explicit occurrences of a component?<\/p>\n<p>This is the place where the CSS: not pseudo-class proves to be useful. It permits you to target components that don&#8217;t coordinate with a rundown of gave selectors. The outcome is all the more fine-grain authority over those specialty configuration highlights.<\/p>\n<p><strong>Web Developer Dubai<\/strong> will explain a couple of situations that show the force of: not.<\/p>\n<h4><u>Full-Width Content on the Home Page <\/u><\/h4>\n<p>In our first model, how about we consider a landing page that will utilize full-width content. Maybe it has a ton of substance and a wide format would exploit huge screens. In any case, that is the lone spot we need to add this style until further notice.<\/p>\n<p>We&#8217;ll likewise accept that we&#8217;re adding a CSS class of .home someplace on the page, while optional pages get their class of .auxiliary page.<\/p>\n<p>The objective is to change the width of the #content component just for pages that do exclude the .home class.<\/p>\n<h4><u>Eliminate Text Decoration on Hyperlinks Outside the Content Area <\/u><\/h4>\n<p>Underlining hyperlinks are useful for openness. Nonetheless, there might be places inside a site where you don&#8217;t need this visual upgrade. Route bars and even footers may shun underlined connects by and large.<\/p>\n<p>In this situation, we&#8217;ll underline joins \u2013 yet just inside the #content component. Each space of our anecdotal page will forego them.<\/p>\n<p>To achieve this, we&#8217;ll search for youngster components of the .holder component, which folds over the sum of the page. Connections that are not inside the #content component will have a style of text-embellishment: none.<\/p>\n<h4><u>Change a Text Heading Style When Inside of a Multi-Column Layout <\/u><\/h4>\n<p>Typography styles are frequently adapted to various sorts of page formats. You should utilize diverse text dimensions and edges, for instance, inside a multi-section design instead of a solitary segment page.<\/p>\n<p>Huge content headings could be particularly overpowering when utilized in more modest spaces. With this model, we&#8217;ll change &lt;h2&gt; components to more readily fit these circumstances.<\/p>\n<p>In particular, the CSS we&#8217;ve composed expects that any &lt;h2&gt; components that aren&#8217;t inside in a holder utilizing the .single_column class ought to be made more modest. Likewise, we&#8217;ve changed the shading and a couple of different properties.<\/p>\n<p><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3193\" src=\"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/CSS-Web-Development-300x153.png\" alt=\"CSS Web Development\" width=\"300\" height=\"153\" srcset=\"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/CSS-Web-Development-300x153.png 300w, https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/CSS-Web-Development-585x298.png 585w, https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/CSS-Web-Development.png 670w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4><u>: not a Bad Way to Control Your CSS <\/u><\/h4>\n<p>Part of the magnificence of CSS is in its adaptability. There are frequently various approaches to achieve a given objective. This permits website specialists to work more proficiently than at any time in recent memory.<\/p>\n<p>The: not pseudo-class is one more supportive device. You may have taken a gander at the situations above and considered different strategies for doing the same thing. What&#8217;s more, there are in reality times when you should adopt an alternate strategy.<\/p>\n<p>Be that as it may, much of the time: not can build effectiveness. It saves us from separately focusing on different selectors that require comparable styling. Also, as recently referenced, it&#8217;s incredible for those oddball plan components that we need to stick out. Program support is additionally solid.<\/p>\n<p>It ought to be noticed that: not has a few restrictions. Additionally, it requires a touch of foundation on how the CSS course functions. In this manner, composing a powerful piece of code can take a couple of attempts.<\/p>\n<p>All things considered, it merits learning. When you get the grammar down, you may be astounded at how valuable this usefulness is.<\/p>\n<p><a href=\"https:\/\/www.saadashraf.net\/\"><strong>Contact Freelance Web Developer Dubai today<\/strong><\/a> to get the best web development services in Dubai and the UAE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient. However, there are times when a particular piece of a plan doesn&#8217;t exactly fit the shape. It could be an oddball configuration include that is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[34],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Target Design Elements with the CSS: not Pseudo-Class -<\/title>\n<meta name=\"description\" content=\"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Target Design Elements with the CSS: not Pseudo-Class -\" \/>\n<meta property=\"og:description\" content=\"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\" \/>\n<meta property=\"og:site_name\" content=\"Blogs\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-23T05:35:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/Web-Design-Elements.png\" \/>\n\t<meta property=\"og:image:width\" content=\"488\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/07c8e06409a4c41e57cc283478049b72\"},\"headline\":\"How to Target Design Elements with the CSS: not Pseudo-Class\",\"datePublished\":\"2021-06-23T05:35:31+00:00\",\"dateModified\":\"2021-06-23T05:35:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\"},\"wordCount\":711,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/#organization\"},\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\",\"url\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\",\"name\":\"How to Target Design Elements with the CSS: not Pseudo-Class -\",\"isPartOf\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/#website\"},\"datePublished\":\"2021-06-23T05:35:31+00:00\",\"dateModified\":\"2021-06-23T05:35:31+00:00\",\"description\":\"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.\",\"breadcrumb\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/saadashraf.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Target Design Elements with the CSS: not Pseudo-Class\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#website\",\"url\":\"https:\/\/saadashraf.net\/blog\/\",\"name\":\"Blogs\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/saadashraf.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#organization\",\"name\":\"Saad Ashraf\",\"url\":\"https:\/\/saadashraf.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2023\/03\/Saad-Ashraf-Logo.jpeg\",\"contentUrl\":\"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2023\/03\/Saad-Ashraf-Logo.jpeg\",\"width\":350,\"height\":162,\"caption\":\"Saad Ashraf\"},\"image\":{\"@id\":\"https:\/\/saadashraf.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/07c8e06409a4c41e57cc283478049b72\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dd2838ca55a7e429f4853f74d0eb550?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dd2838ca55a7e429f4853f74d0eb550?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Target Design Elements with the CSS: not Pseudo-Class -","description":"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/","og_locale":"en_US","og_type":"article","og_title":"How to Target Design Elements with the CSS: not Pseudo-Class -","og_description":"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.","og_url":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/","og_site_name":"Blogs","article_published_time":"2021-06-23T05:35:31+00:00","og_image":[{"width":488,"height":300,"url":"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2021\/06\/Web-Design-Elements.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#article","isPartOf":{"@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/"},"author":{"name":"admin","@id":"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/07c8e06409a4c41e57cc283478049b72"},"headline":"How to Target Design Elements with the CSS: not Pseudo-Class","datePublished":"2021-06-23T05:35:31+00:00","dateModified":"2021-06-23T05:35:31+00:00","mainEntityOfPage":{"@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/"},"wordCount":711,"commentCount":0,"publisher":{"@id":"https:\/\/saadashraf.net\/blog\/#organization"},"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/","url":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/","name":"How to Target Design Elements with the CSS: not Pseudo-Class -","isPartOf":{"@id":"https:\/\/saadashraf.net\/blog\/#website"},"datePublished":"2021-06-23T05:35:31+00:00","dateModified":"2021-06-23T05:35:31+00:00","description":"Consistency is acceptable practice in every aspect of website composition. Toward the front, it makes for a superior client experience. In the engine, upkeep turns out to be more proficient.","breadcrumb":{"@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/saadashraf.net\/blog\/how-to-target-design-elements-with-the-css-not-pseudo-class\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/saadashraf.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Target Design Elements with the CSS: not Pseudo-Class"}]},{"@type":"WebSite","@id":"https:\/\/saadashraf.net\/blog\/#website","url":"https:\/\/saadashraf.net\/blog\/","name":"Blogs","description":"","publisher":{"@id":"https:\/\/saadashraf.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/saadashraf.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/saadashraf.net\/blog\/#organization","name":"Saad Ashraf","url":"https:\/\/saadashraf.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/saadashraf.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2023\/03\/Saad-Ashraf-Logo.jpeg","contentUrl":"https:\/\/saadashraf.net\/blog\/wp-content\/uploads\/2023\/03\/Saad-Ashraf-Logo.jpeg","width":350,"height":162,"caption":"Saad Ashraf"},"image":{"@id":"https:\/\/saadashraf.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/07c8e06409a4c41e57cc283478049b72","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/saadashraf.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dd2838ca55a7e429f4853f74d0eb550?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dd2838ca55a7e429f4853f74d0eb550?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/posts\/3191"}],"collection":[{"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/comments?post=3191"}],"version-history":[{"count":1,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/posts\/3191\/revisions"}],"predecessor-version":[{"id":3194,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/posts\/3191\/revisions\/3194"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/media\/3192"}],"wp:attachment":[{"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/media?parent=3191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/categories?post=3191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saadashraf.net\/blog\/wp-json\/wp\/v2\/tags?post=3191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}