<?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>HTML Archives - CNERIS</title>
	<atom:link href="https://cneris.com/en/category/html-en/feed/" rel="self" type="application/rss+xml" />
	<link>https://cneris.com/en/category/html-en/</link>
	<description></description>
	<lastBuildDate>Sun, 27 Oct 2024 11:56:04 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>How to change the border color of a table inline (in HTML)</title>
		<link>https://cneris.com/en/how-to-change-the-border-color-of-a-table-inline-in-html/</link>
					<comments>https://cneris.com/en/how-to-change-the-border-color-of-a-table-inline-in-html/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 27 Oct 2024 11:56:04 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html table border]]></category>
		<category><![CDATA[table border]]></category>
		<category><![CDATA[table inline]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2664</guid>

					<description><![CDATA[<p>To change the color of a table border inline in HTML, use the style attribute like this: &lt;table style="border: 2px solid blue;"&gt; &lt;tr&gt; &lt;td&gt;Cell 1&lt;/td&gt; &lt;td&gt;Cell 2&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; In this example, the table border will be 2px thick and blue in color. You can modify solid blue to other colors or styles, such as [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-change-the-border-color-of-a-table-inline-in-html/">How to change the border color of a table inline (in HTML)</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To change the color of a table border inline in HTML, use the <code>style</code> attribute like this:</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr">&lt;table style=&#8221;border: 2px solid blue;&#8221;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Cell 1&lt;/td&gt;<br />
&lt;td&gt;Cell 2&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</div>
</div>
<p>In this example, the table border will be <strong>2px</strong> thick and <strong>blue</strong> in color. You can modify <code>solid blue</code> to other colors or styles, such as <code>dotted</code> or <code>dashed</code>.</p>
<p>The post <a href="https://cneris.com/en/how-to-change-the-border-color-of-a-table-inline-in-html/">How to change the border color of a table inline (in HTML)</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-change-the-border-color-of-a-table-inline-in-html/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to center an inline element in HTML</title>
		<link>https://cneris.com/en/how-to-center-an-inline-element-in-html/</link>
					<comments>https://cneris.com/en/how-to-center-an-inline-element-in-html/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 Oct 2024 17:37:49 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[center inline]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[inline element]]></category>
		<guid isPermaLink="false">https://cneris.com/?p=2529</guid>

					<description><![CDATA[<p>To center an inline element in HTML, we commonly use CSS. Below are steps to achieve this, using both a container and the element itself. 1. Centering an inline element within a container If the inline element (like span or a) is inside a container, you can center it horizontally within the container. First, create [...]</p>
<p>The post <a href="https://cneris.com/en/how-to-center-an-inline-element-in-html/">How to center an inline element in HTML</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To center an <strong>inline</strong> element in HTML, we commonly use CSS. Below are steps to achieve this, using both a container and the element itself.</p>
<h4>1. <strong>Centering an inline element within a container</strong></h4>
<p>If the inline element (like <code>span</code> or <code>a</code>) is inside a container, you can center it horizontally within the container.</p>
<ul>
<li>First, create a <code>div</code> container with <code>text-align: center;</code> and place the inline element inside it:</li>
</ul>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"text-align: center;"</span>&gt;</span><br />
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>This is a centered inline element<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br />
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br />
</code></div>
</div>
<ul>
<li>Here, the <code>text-align: center;</code> in the <code>div</code> container ensures that all inline elements within it are centered horizontally.</li>
</ul>
<h4>2. <strong>Directly centering an inline element</strong></h4>
<p>To center an inline element without a container, such as a button or a link, you can apply <code>display: inline-block;</code> to make it behave like a block element, then use <code>text-align: center;</code>.</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre hljs language-html"><span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"display: inline-block; text-align: center;"</span>&gt;</span>Centered inline element<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span></code></div>
</div>
<p>The post <a href="https://cneris.com/en/how-to-center-an-inline-element-in-html/">How to center an inline element in HTML</a> appeared first on <a href="https://cneris.com/en">CNERIS</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cneris.com/en/how-to-center-an-inline-element-in-html/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
