<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS Tutorials Archives - The NOKIA Blog</title>
	<atom:link href="https://thenokiablog.com/tag/css-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://thenokiablog.com/tag/css-tutorials/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Dec 2024 09:06:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://thenokiablog.com/wp-content/uploads/2024/03/cropped-Cjdowner-Cryptocurrency-Flat-ICON-ICX.512-32x32.png</url>
	<title>CSS Tutorials Archives - The NOKIA Blog</title>
	<link>https://thenokiablog.com/tag/css-tutorials/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CSS Properties to Make Hyperlinks More Attractive</title>
		<link>https://thenokiablog.com/css-properties-to-make-hyperlinks-more-attractive/</link>
		
		<dc:creator><![CDATA[Mister Nokia]]></dc:creator>
		<pubDate>Tue, 10 Dec 2024 09:06:45 +0000</pubDate>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Snippets]]></category>
		<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[Web Accessibility]]></category>
		<guid isPermaLink="false">https://thenokiablog.com/css-properties-to-make-hyperlinks-more-attractive/</guid>

					<description><![CDATA[<p>Hyperlinks don&#8217;t always get the attention they deserve from web designers. Sure, we might make a...</p>
<p>The post <a href="https://thenokiablog.com/css-properties-to-make-hyperlinks-more-attractive/">CSS Properties to Make Hyperlinks More Attractive</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img decoding="async" src="https://thenokiablog.com/wp-content/uploads/2024/12/css-properties-to-make-hyperlinks-more-attractive.jpg" class="ff-og-image-inserted"></div>
<p>Hyperlinks don&rsquo;t always get the attention they deserve from web designers. Sure, we might make a few tweaks. However, we don&rsquo;t always go the extra mile to make them stand out.</p>
<p>Perhaps that&rsquo;s because the styling options used to be limited. Link color and underlining were the primary options. Hover and focus states seemed to be where most of the creativity occurred. Other enhancements tended to require add-ons like JavaScript.</p>
<p>CSS has changed the game in recent years. Several properties are available to customize the look of hyperlinks. They also provide a higher level of control regarding details like spacing and sizing.</p>
<p>It&rsquo;s a whole new world of possibilities. Let&rsquo;s check out some CSS properties that help make hyperlinks more attractive.</p>
<h2><span id="A_Default_Link">A Default Link</span></h2>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/rose-gold-design/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Rose gold design</span></a></div><p>We&rsquo;ll start with a default link configuration. A link color and CSS states were added &ndash; but that&rsquo;s it. It will serve as a baseline as we explore the CSS properties below.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="qBeLKyK" data-pen-title="Link Styling:Plain" data-preview="true" data-user="karks88">See the Pen Link Styling:Plain by Eric Karkovack</p>
<p>It used to be that a link&rsquo;s underline had to be the same color as its text. The <code>text-decoration-color</code> property allows us to choose a separate hue. It also works with overlines, strikethroughs, and anything else set by the text-decoration property.</p>
<p>We&rsquo;ve added a brown underline to compliment our green link text.</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/passion-work/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Passion &amp; work</span></a></div><p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="GRVPGPb" data-pen-title="Link Styling:text-decoration-color" data-preview="true" data-user="karks88">See the Pen Link Styling:text-decoration-color by Eric Karkovack</p>
<p>This niche property determines how the link&rsquo;s text decoration interacts with glyphs. The default setting is auto, where the browser interrupts underlines and overlines so they don&rsquo;t touch a glyph. You&rsquo;ll notice this with lowercase letters that go below the baseline.</p>
<p>Setting the property to <code>none</code> means the underline or overline draws a straight line &ndash; regardless of where glyphs are located.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="NWQeBrd" data-pen-title="Link Styling:text-decoration-skip-link" data-preview="true" data-user="karks88">See the Pen Link Styling:text-decoration-skip-link by Eric Karkovack</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/the-joy-of-art/" class="template-2"><span class="cta">Read more</span><span class="postTitle">The joy of art</span></a></div><p>The thickness of a link&rsquo;s underline typically follows what&rsquo;s defined in the font-weight property. That is, bold text will result in a thicker underline. This property lets us set a consistent value for every link in the cascade.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="xxvmJLM" data-pen-title="Link Styling:text-decoration-thickness" data-preview="true" data-user="karks88">See the Pen Link Styling:text-decoration-thickness by Eric Karkovack</p>
<p>Text decorations don&rsquo;t have to be a straight line. This property lets you change the style to <code>dashed</code>, <code>dotted</code>, <code>double</code>, or <code>wavy</code> lines.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="xxvmawb" data-pen-title="Link Styling:text-decoration-style" data-preview="true" data-user="karks88">See the Pen Link Styling:text-decoration-style by Eric Karkovack</p>
<p>Here&rsquo;s a way to specify how closely (or not) an underline is to the text above. Adding a few pixels of space between them can improve legibility.</p>
<p>Note that this property doesn&rsquo;t impact instances of the HTML underline tag (<code>&lt;u&gt;</code>). It only affects instances where the <code>text-decoration</code> property is set.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="vYovzZZ" data-pen-title="Link Styling:text-underline-offset" data-preview="true" data-user="karks88">See the Pen Link Styling:text-underline-offset by Eric Karkovack</p>
<p>Another niche property, <code>text-underline-position</code> specifies the position of the underline relative to its text. Setting it to under is ideal for mathematical and scientific formulas. It makes subscript characters easy to read &ndash; even when underlined.</p>
<p class="codepen" data-height="550" data-default-tab="css,result" data-slug-hash="qBeLMxa" data-pen-title="Link Styling:text-underline-under" data-preview="true" data-user="karks88">See the Pen Link Styling:text-underline-under by Eric Karkovack</p>
<h2><span id="Going_Further_with_Link_Styles">Going Further with Link Styles</span></h2>
<p>Hyperlinks don&rsquo;t have to be bland. There are now plenty of ways to make them as much a part of your brand as other design elements.</p>
<p>The properties above are all worth considering when styling links. They&rsquo;re relatively simple to implement and can make links more attractive and accessible. Best of all, they&rsquo;re native CSS and won&rsquo;t impact page load performance.</p>
<p>You can also use them beyond default styles. Style them for various states, such as changing the link&rsquo;s underline color during a hover event. In addition, there&rsquo;s an opportunity to add animation and transitions to create all sorts of fun micro-interactions.</p>
<p>Just beware &ndash; it&rsquo;s possible to take things a little too far. Always keep best practices in mind to enhance the user experience. Anything that makes links harder to read or use isn&rsquo;t worth doing.</p>
<p>It&rsquo;s time to get creative! Experiment with these CSS properties and see how you can bring a little life to your links.</p>
<div class="topics">
<h2>Related Topics</h2>
</div>
<p><i class="fa fa-arrow-up"></i><br>Top</p>
<p>The post <a href="https://thenokiablog.com/css-properties-to-make-hyperlinks-more-attractive/">CSS Properties to Make Hyperlinks More Attractive</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
