<?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 &#8211; LarryLai</title>
	<atom:link href="https://larrylai.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://larrylai.com</link>
	<description>兼聽則明 偏聽則暗</description>
	<lastBuildDate>Tue, 07 Jan 2020 08:24:11 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://larrylai.com/wp-content/uploads/2017/03/larrylai_com-favicon.png</url>
	<title>CSS &#8211; LarryLai</title>
	<link>https://larrylai.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CSS List item style a) b)</title>
		<link>https://larrylai.com/css-list-item-style-a-b/</link>
					<comments>https://larrylai.com/css-list-item-style-a-b/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Tue, 07 Jan 2020 07:48:19 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Ordered List Item]]></category>
		<category><![CDATA[Text-indent]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=3756</guid>

					<description><![CDATA[<p>Issue Default ordered list item style is decimal number, lower/upper alpha, lower/upper roman then followed by a dot. Thought it&#8217;s easy to change the dot to something like &#160; a) This is good 1st item &#160; b) This is good 2nd item. &#160; &#160; &#160; instead of: &#160; a. This is not good 1st item [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/css-list-item-style-a-b/">CSS List item style a) b)</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Issue</strong></p>
<p>Default ordered list item style is decimal number, lower/upper alpha, lower/upper roman then followed by a dot. Thought it&#8217;s easy to change the dot to something like<br />
&nbsp; a) This is good 1st item<br />
&nbsp; b) This is good 2nd item.   </p>
<p>&nbsp; &nbsp; &nbsp; instead of:<br />
&nbsp; a. This is not good 1st item<br />
&nbsp; b. This is not good 2nd item</p>
<p>However, there&#8217;s no simple way to change the style of ordered list item and remove the dot after the order number <code>&lt;ol&gt; &lt;li&gt;&lt;/li&gt;&lt;/ol&gt;</code>.<br />
As I got used to markdown&#8217;s convinence of auto numbering for ordered list items, don&#8217;t want to hard code the order into the list.</p>
<p><strong>Solution</strong></p>
<ol>
<li>Removing the default ordering number and using counter by creating counter variable  (say, list) like this<br />
&nbsp; <code>ol { list-style-type: none; counter-reset: list;}</code></li>
<li>Update counter variable for each \
<li> like this `ol&gt;li { counter-increment: list; } </li>
<li>Display the content of the new counter like this `ol&gt;li::before { content: counter(list, lower-alpha) &quot;) &quot;; }</li>
</ol>
<p><strong>Tricks</strong></p>
<ul>
<li>It&#8217;s a bit complex for multi-level ordered list, but the principle still applies</li>
<li>Some more has to be added to see hanging text like default ordered list display. This can be done by the following for modifying 2nd order level :
<pre>
ol ol {    
&nbsp; list-style-type: none;    
&nbsp; counter-reset: list;   
}     
ol ol>li::before {     
&nbsp; content: counter(list, lower-alpha) ") \00a0";
&nbsp; display: inline-block;
&nbsp; width: 1.5em;
&nbsp; text-align: right;
}    
ol ol>li {    
&nbsp; counter-increment: list;    
&nbsp; margin-left: .5em;    
&nbsp; text-indent: -1.5em;    
} 
</pre>
<p>Of course, several paramenters can be adjusted to fit into each individual case. These include margin-left, text-indent spaces and the counter number style, i.e. lower-alpha, lower-roman, decimal, etc.</p>
</li>
</ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/css-list-item-style-a-b/">CSS List item style a) b)</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/css-list-item-style-a-b/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>hsla HTML Color Scheme</title>
		<link>https://larrylai.com/hsla-html-color-scheme/</link>
					<comments>https://larrylai.com/hsla-html-color-scheme/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Fri, 10 Mar 2017 13:36:24 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=2779</guid>

					<description><![CDATA[<p>Just learnt how to use hsla (hue, saturation, light, alpha) html color scheme from Castro&#8217;s&#160;HTML5 and CSS3. I found it&#8217;s beauty that it is more logical to think of various colours compared with hex code which is just a set of either 3-digit or 6-digit code set.</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/hsla-html-color-scheme/">hsla HTML Color Scheme</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Just learnt how to use hsla (hue, saturation, light, alpha) html color scheme from Castro&#8217;s&nbsp;<a href="https://www.amazon.com/HTML5-CSS3-Visual-QuickStart-Guide/dp/0321719611" target="_blank" rel="noopener">HTML5 and CSS3</a>.</p>
<p>I found it&#8217;s beauty that it is more logical to think of various colours compared with hex code which is just a set of either 3-digit or 6-digit code set.</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/hsla-html-color-scheme/">hsla HTML Color Scheme</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/hsla-html-color-scheme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
