{"id":5071,"date":"2024-04-14T11:22:42","date_gmt":"2024-04-14T03:22:42","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5071"},"modified":"2024-04-14T11:35:22","modified_gmt":"2024-04-14T03:35:22","slug":"trim-picture-to-text-span","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/trim-picture-to-text-span\/","title":{"rendered":"Trim picture to text span"},"content":{"rendered":"<div class=\"docs_rich-text w-richtext\">\n<p>Merge the potential of text spans and image text fills to craft Headings that standout \u2014 all while still retaining selectability and search engine friendliness.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4f5_60e8926fdfb4842f7273b429_16.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt=\"A multi-word Heading shown in black text, features one word with a rainbow colored fill.\" title=\"64b94c4ffc23aad63282c4f5_60e8926fdfb4842f7273b429_16\"><\/div>\n<\/figure>\n<p>In this tutorial, you&#8217;ll discover:<\/p>\n<ol start=\"1\">\n<li>How to envelop text with a span<\/li>\n<li>How to insert a background image to the text span<\/li>\n<li>How to trim the image background<\/li>\n<\/ol>\n<h2>How to envelop text with a span<\/h2>\n<p>To impact specific text within a Heading, include a span around it:<\/p>\n<ol start=\"1\">\n<li>Pick your <strong>Heading<\/strong> and double-click it to initiate editing<\/li>\n<li>Highlight the word or words you wish to enclose in the span<\/li>\n<li>Choose the <strong>Wrap with Span<\/strong> &#8220;brush&#8221; icon located in the options above your selection<\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4f8_60e893741a69864edbe57721_11.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt='The \"Wrap with span\" brush icon button appears after selecting a word in a multi-word Heading' title=\"64b94c4ffc23aad63282c4f8_60e893741a69864edbe57721_11\"><\/div>\n<\/figure>\n<p>Excellent! Now you have established a span within your Heading.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4fc_60e8937effb63a1b54cf29de_12.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt='After wrapping one word with a span in a multi-word Heading, the word becomes a distinct \"Text span\"' title=\"64b94c4ffc23aad63282c4fc_60e8937effb63a1b54cf29de_12\"><\/div>\n<\/figure>\n<p>Remember to assign a class to your span to keep your formatting organized (e.g., &#8220;Image background).<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4f0_60e89388b29e4b232b6d65a5_13.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt='After creating a Text span on a word, assign a class name to the Text span (e.g., \"Image background\")' title=\"64b94c4ffc23aad63282c4f0_60e89388b29e4b232b6d65a5_13\"><\/div>\n<\/figure>\n<p>Discover more about inline text formatting using text spans.<\/p>\n<h2>How to insert a background image to the text span<\/h2>\n<p>Let&#8217;s attach a background image to the text span \u2014 this picture will be visible within the text:<\/p>\n<ol start=\"1\">\n<li>Access <strong>Style panel\u00a0<\/strong>&gt;<strong>\u00a0Backgrounds<\/strong><\/li>\n<li>Tap the <strong>Image and gradient<\/strong> &#8220;plus&#8221; icon<\/li>\n<li>Choose <strong>Choose Image<\/strong> to designate the image for your text fill<\/li>\n<li>Set the Size to <strong>Cover<\/strong><\/li>\n<li>Click a dot below <strong>Position<\/strong> to modify how your background image is showcased (e.g., select the central dot)<\/li>\n<\/ol>\n<p>Read more about background images.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4e4_60e895f5727ec57113c1d33d_14.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt=\"In the Backgrounds section of Webflow's Style panel, set the image, set its size to &quot;Cover,&quot; and choose its position (e.g., the center dot)\" title=\"64b94c4ffc23aad63282c4e4_60e895f5727ec57113c1d33d_14\"><\/div>\n<\/figure>\n<blockquote><p><strong>Crucial: <\/strong>Ensure to verify your text span&#8217;s image color contrast and readability to guarantee the text is accessible with its background. Delve deeper with our accessibility course.<\/p><\/blockquote>\n<h2>How to trim the image background<\/h2>\n<p>Lastly (this is where the enchantment occurs), let&#8217;s trim the image background to the text span:<\/p>\n<ol start=\"1\">\n<li>Select the <strong>text span<\/strong><\/li>\n<li>Access <strong>Style panel <\/strong>&gt; <strong>Backgrounds<\/strong><\/li>\n<li>Opt for \u201cClip background to text\u201d from the <strong>Clipping<\/strong> drop-down menu<\/li>\n<\/ol>\n<p>Discover more about gradient and image text fills in the Webflow Designer.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4e8_60e8969007d8e684dbca4114_15.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt=\"In the Background section of Webflow's Style panel, &quot;Clip background to text&quot; is highlighted in the Clipping dropdown menu\" title=\"64b94c4ffc23aad63282c4e8_60e8969007d8e684dbca4114_15\"><\/div>\n<\/figure>\n<p>And that&#8217;s all! You&#8217;ve formulated a visually captivating Heading on your site to astonish your site visitors.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b94c4ffc23aad63282c4ed_60e896f05b8411350fb4d803_17.png\" loading=\"lazy\" width=\"auto\" height=\"auto\" alt=\"A multi-word Heading shown in black text, features one word with a rainbow colored fill\" title=\"64b94c4ffc23aad63282c4ed_60e896f05b8411350fb4d803_17\"><\/div>\n<\/figure>\n<p>\u200d<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Add some variety to your site&#8217;s copy with text spans and image text fills.","protected":false},"author":2,"featured_media":5236,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-5071","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=5071"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5071\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5181"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}