<?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>table Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/table/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/table/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to Export Html Table to Excel Sheet using JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 13:01:30 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Excel Sheet]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8268</guid>

					<description><![CDATA[<p>Steps to Export HTML Table Data to Excel using JavaScript HTML Table Data: JavaScript Code: 1. HTML Table Data Export [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/">How to Export Html Table to Excel Sheet using JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"> Steps to Export HTML Table Data to Excel using JavaScript</h2>



<ol class="wp-block-list"><li><strong>HTML Table Data:</strong></li><li><strong>JavaScript Code:</strong></li></ol>



<h2 class="wp-block-heading">1. HTML Table Data</h2>



<p class="wp-block-paragraph">Export HTML data in Excel, even before we have to load some data into an HTML table. So here we have to make fetch employee table data and load it in an HTML table with table columns like name, address, gender, designation, and age. Here we have created an HTML table with id employee_data. So this id we will use for fetch this HTML table data in JavaScript code. Under this HTML code, we have made one button tag with id export_button, so when use has clicked on this button, then HTML table data will be download in Excel file format without refresh of a web page using JavaScript.</p>



<script src="https://gist.github.com/vijaypk376/6d3d977f05198d9e43441f7bb786a0f7.js"></script>



<h2 class="wp-block-heading">2. JavaScript Code</h2>



<p class="wp-block-paragraph">In this tutorial, we have to use SheetJS JavaScript Library to export HTML table data to Excel using JavaScript. So first we have to include the following SheetJS library link at the header of this HTML web page.</p>



<script src="https://gist.github.com/vijaypk376/db22fa99e99e9f919c529041713e7f00.js"></script>



<p class="wp-block-paragraph">In the JavaScript code part, first we have created the html_table_to_excel(type) function. This function has used sheetJS library function and convert or write HTML table data to excel format and download it in a browser without refreshing the web page.</p>



<p class="wp-block-paragraph">Once a function is ready then we have to call html_table_to_excel(type) function on the button click event, so for the trigger button click event, we have to use the addEventListener method. So when a user has clicked the button the html_table_to_excel(type) function is called with the xlsx file type. Then it will download the HTML table data in .xlsx format Excel file in the browser without having to refresh a Web page on the client-side.</p>



<script src="https://gist.github.com/vijaypk376/e1c5b905ef57fd1cf6331e77ce246d8c.js"></script>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/">How to Export Html Table to Excel Sheet using JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-export-html-table-to-excel-sheet-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use display property in CSS?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-display-property-in-css/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-display-property-in-css/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 11 Aug 2021 13:22:08 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7777</guid>

					<description><![CDATA[<p>This property is used to define how an element should display. Every HTML element has a default display value depending [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-display-property-in-css/">How to use display property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This property is used to define how an element should display. Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline.</p>



<p class="wp-block-paragraph">display properties use below &#8211;</p>



<ul class="wp-block-list"><li>inline</li><li>block</li><li>flex</li><li>inline-block</li><li>inline-flex</li><li>inline-table</li><li>list-item</li><li>run-in</li><li>table</li></ul>



<ul class="wp-block-list"><li>table-row-group</li><li>table-caption</li><li>table-column-group</li><li>table-header-group</li><li>table-footer-group</li><li>table-cell</li><li>table-column</li><li>table-row none</li></ul>



<script src="https://gist.github.com/ajcotocus/e2344498a444a1419b80b4157e3574c5.js"></script>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="701" height="338" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-79.png" alt="" class="wp-image-7780" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-79.png 701w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-79-300x145.png 300w" sizes="(max-width: 701px) 100vw, 701px" /></figure>



<h2 class="wp-block-heading"><strong>Display</strong>&#8211;</h2>



<ul class="wp-block-list"><li>inline – When we set this value, the element does not start on a new line and only takes up as much width as necessary (we can’t set width/height it won’t work)</li><li>block – When we set this value, element always starts on a new line and takes up the full width available (we can set width/height)</li><li>inline-block – It is combination of inline and block value. It doesn’t start on new line but we can set width and height.</li><li>none &#8211; The element will not be displayed at all (has no effect on layout)</li><li>flex &#8211; Displays an element as a block-level flex container.</li><li>inline-flex &#8211; Displays an element as an inline-level flex container.</li><li>inline-table &#8211; The element is displayed as an inline-level table</li><li>run-in &#8211; Displays an element as either block or inline, depending on context</li></ul>



<ul class="wp-block-list"><li>table – It works like a element</li><li>table-caption &#8211; It works like a element</li><li>table-header-group &#8211; It works like a element</li><li>table-footer-group &#8211; It works like a element</li><li>table-row-group &#8211; It works like a element</li><li>table-cell &#8211; It works like a element</li><li>table-row &#8211; It works like a element</li><li>list-item &#8211; It works like a element</li></ul>



<h2 class="wp-block-heading"><strong>justify-content</strong>&#8211;</h2>



<p class="wp-block-paragraph">This property is used to align the flexible container&#8217;s items when the items do not use all available space on the main-axis (horizontally). We can set this property to <em>flex-start</em> (default)<em>, flex-end, center, space-between, space-around</em>.</p>



<p class="wp-block-paragraph">Ex<strong>: &#8211;</strong></p>



<p class="wp-block-paragraph">div { justify-content: center; }</p>



<ul class="wp-block-list"><li>flex-start – This is used to position the item at the beginning of the container</li><li>flex-end – This is used to position the item at the end of the container</li><li>center &#8211; This is used to position the item at the center of the container</li><li>space-between &#8211; This is used to position the item with space between the lines</li><li>space-around &#8211; This is used to position the item with space before, between, and after the lines</li></ul>



<h2 class="wp-block-heading"><strong>align-items</strong>&#8211;</h2>



<p class="wp-block-paragraph">This property is used to specify the default alignment for items inside the container. This property can be override using align-self property for each item. We can set this property to stretch (default), center, flex-start, flex-end, baseline.</p>



<p class="wp-block-paragraph">Ex: &#8211;</p>



<p class="wp-block-paragraph">div { align-items: center; }</p>



<ul class="wp-block-list"><li>stretch – This is used to stretch the item to fit the container</li><li>center – This is used to position the item at the center of the container</li><li>flex-start &#8211; This is used to position the item at the beginning of the container</li><li>flex-end &#8211; This is used to position the item at the end of the container</li><li>baseline &#8211; This is used to position the item at the baseline of the container</li></ul>



<h2 class="wp-block-heading"><strong>align-content</strong>&#8211;</h2>



<p class="wp-block-paragraph">This property is used to modify the behavior of the flex-wrap property. It is similar to align-items, but instead of aligning flex items, it aligns flex lines. There must be multiple lines of items for this property to have any effect. We can set this property to <em>stretch</em> (default), <em>center,</em> <em>flex-start, flex-end, space-between, space-around</em>.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<ul class="wp-block-list"><li>div { align-content: center; }</li><li>stretch &#8211; Lines stretch to take up the remaining space</li><li>center &#8211; Lines are packed toward the center of the flex container</li><li>flex-start &#8211; Lines are packed toward the start of the flex container</li><li>flex-end &#8211; Lines are packed toward the end of the flex container</li><li>space-between &#8211; Lines are evenly distributed in the flex container</li><li>space-around &#8211; Lines are evenly distributed in the flex container, with half-size spaces on either end</li></ul>



<h2 class="wp-block-heading"><strong>order</strong>&#8211;</h2>



<p class="wp-block-paragraph">This property is used to specify the order of a flexible item relative to the rest of the flexible items inside the same container. If the element is not a flexible item, the order property has no effect. We can set this property to <em>number (</em>default 0<em>)</em>.</p>



<p class="wp-block-paragraph">Ex:<strong> &#8211;</strong></p>



<p class="wp-block-paragraph">div {order: 1}</p>



<h2 class="wp-block-heading"><strong>align-self</strong>&#8211;</h2>



<p class="wp-block-paragraph">This property is used to specify the alignment for the selected item inside the flexible container. The align-self property overrides the flexible container&#8217;s align-items property. We can set this property to <em>auto</em> (default), <em>stretch, center, flex-start, flex-end, baseline</em>.</p>



<p class="wp-block-paragraph">Ex:<strong> &#8211;</strong></p>



<ul class="wp-block-list"><li>div {align-self: center;}</li><li>auto &#8211; The element inherits its parent container&#8217;s align-items property, or &#8220;stretch&#8221; if it has no parent container</li><li>stretch – This is used to position the element to fit the container</li><li>center &#8211; This is used to position the element at the center of the container </li><li>flex-start &#8211; This is used to position the element at the beginning of the container</li><li>flex-end &#8211; This is used to position the element at the end of the container</li><li>baseline &#8211; This is used to position the element at the baseline of the container</li></ul>



<script src="https://gist.github.com/ajcotocus/841ada8c113afd9a3be9955d2874ef8f.js"></script>



<figure class="wp-block-image size-full"><img decoding="async" width="490" height="485" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-80.png" alt="" class="wp-image-7781" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-80.png 490w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-80-300x297.png 300w" sizes="(max-width: 490px) 100vw, 490px" /><figcaption><strong>Display-block property</strong></figcaption></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-display-property-in-css/">How to use display property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-display-property-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How an element should display in CSS?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-an-element-should-display-in-css/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-an-element-should-display-in-css/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 29 Jul 2021 12:53:53 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7175</guid>

					<description><![CDATA[<p>This property is used to define how an element should display. Every HTML element has a default display value depending [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-an-element-should-display-in-css/">How an element should display in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This property is used to define how an element should display. Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline.</p>



<figure class="wp-block-table"><table><tbody><tr><td>inline</td><td>table-row-group</td></tr><tr><td>block</td><td>table-caption</td></tr><tr><td>flex</td><td>table-column-group</td></tr><tr><td>inline-block</td><td>table-header-group</td></tr><tr><td>inline-flex</td><td>table-footer-group</td></tr><tr><td>inline-table</td><td>table-cell</td></tr><tr><td>list-item</td><td>table-column</td></tr><tr><td>run-in</td><td>table-row</td></tr><tr><td>table</td><td>none</td></tr></tbody></table><figcaption><strong>p { display: inline; }</strong></figcaption></figure>



<figure class="wp-block-image"><img decoding="async" src="https://daqxzxzy8xq3u.cloudfront.net/wp-content/uploads/2019/05/20122804/display-block-example-css-code-2.png" alt="How to use the top 5 CSS display values: none, block, inline-block, table,  and flex"/></figure>



<h2 class="wp-block-heading"><strong>Block-level Elements</strong>&#8211;</h2>



<p class="wp-block-paragraph">A Block-level element always starts on a new line and takes up the full width available.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph">&lt;div&gt;</p>



<p class="wp-block-paragraph">&lt;h1&gt;</p>



<p class="wp-block-paragraph"> &lt;p></p>



<figure class="wp-block-image"><img decoding="async" src="https://wonderfulengineering.com/wp-content/uploads/2021/03/sublime-syntax-1024x614-1024x614-1.jpg" alt="Best JavaScript Development Services Provided by Developers"/></figure>



<h2 class="wp-block-heading"><strong>Inline Elements</strong>&#8211;</h2>



<p class="wp-block-paragraph">An inline element does not start on a new line and only takes up as much width as necessary.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph">&lt;span&gt;</p>



<p class="wp-block-paragraph">&lt;a&gt;</p>



<p class="wp-block-paragraph">&lt;img></p>



<figure class="wp-block-image"><img decoding="async" src="https://www.udacity.com/blog/wp-content/uploads/2021/06/CSSImageGallery1.png" alt="The Easy Guide to Building A CSS Image Gallery | Udacity"/></figure>



<h2 class="wp-block-heading"><strong>Display</strong>&#8211;</h2>



<p class="wp-block-paragraph">•<strong>inline</strong> – When we set this value, the element does not start on a new line and only takes up as much width as necessary (we can’t set width/height it won’t work)</p>



<p class="wp-block-paragraph">•<strong>block</strong> – When we set this value, element always starts on a new line and takes up the full width available (we can set width/height)</p>



<p class="wp-block-paragraph">•<strong>inline-block</strong> – It is combination of inline and block value. It doesn’t start on new line but we can set width and height.</p>



<p class="wp-block-paragraph">•<strong>none </strong>&#8211; The element will not be displayed at all (has no effect on layout)</p>



<p class="wp-block-paragraph">•<strong>flex</strong> &#8211; Displays an element as a block-level flex container.</p>



<p class="wp-block-paragraph">•<strong>inline-flex</strong> &#8211;  Displays an element as an inline-level flex container.</p>



<p class="wp-block-paragraph">•<strong>inline-table</strong> &#8211; The element is displayed as an inline-level table </p>



<p class="wp-block-paragraph">•<strong>run-in</strong> &#8211; Displays an element as either block or inline, depending on context</p>



<h2 class="wp-block-heading">How to use Display?</h2>



<ul class="wp-block-list"><li>table – It works like a element</li><li>table-caption &#8211; It works like a element</li><li>table-header-group &#8211; It works like a element</li><li>table-footer-group &#8211; It works like a element</li><li>table-row-group &#8211; It works like a element</li><li>table-cell &#8211; It works like a element</li><li>table-row &#8211; It works like a element</li><li>list-item &#8211; It works like a element</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-an-element-should-display-in-css/">How an element should display in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-an-element-should-display-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set Table width, height, color &#038; padding using CSS?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-set-table-width-height-color-padding-using-css/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-set-table-width-height-color-padding-using-css/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 28 Jul 2021 14:47:42 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cells]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[width]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7172</guid>

					<description><![CDATA[<p>Empty-cells This property is used to set whether or not to display borders and background on empty cells in a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-table-width-height-color-padding-using-css/">How to set Table width, height, color &#038; padding using CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Empty-cells</h2>



<p class="wp-block-paragraph">This property is used to set whether or not to display borders and background on empty cells in a table. It will work only if the border-collapse is set to separate. We can set this property to <em>show</em> (default) or <em>hide</em>.</p>



<p class="wp-block-paragraph"><strong>Ex:-</strong></p>



<p class="wp-block-paragraph">table <strong>{ table-layout: fixed; }</strong></p>



<h2 class="wp-block-heading"><strong>How to set Table width and Height</strong>?</h2>



<p class="wp-block-paragraph">We use <em>width</em> and <em>height</em> property to set table width and height.</p>



<p class="wp-block-paragraph">We can also set table heading (th) width and height.</p>



<p class="wp-block-paragraph"><strong>table { width: 100% ;}</strong></p>



<p class="wp-block-paragraph"><strong>th { height: 10px; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://lh3.googleusercontent.com/proxy/UAOzr1XIVZZtUAptuqXkg2sO8178lyTPWJ_gu2z_LKrDON2sBHqplSl0voaF5wIQiaavfzq_wnJ72i4gP0Ocruvf3Kypbxk90OuCpXbo7P09aPoJlQ" alt=""/></figure>



<h2 class="wp-block-heading"><strong>How to set Table Padding</strong>?</h2>



<p class="wp-block-paragraph">This property is used to control the space between the border and the content in a table, this is used on <strong>&lt;td></strong> and <strong>&lt;th></strong> elements.</p>



<p class="wp-block-paragraph"><strong>th, td { padding: 10px; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://i.stack.imgur.com/AGuDf.gif" alt=""/></figure>



<h2 class="wp-block-heading"><strong>How to set Table color</strong>?</h2>



<p class="wp-block-paragraph"><strong>table {background-color: pink;}</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://lh3.googleusercontent.com/proxy/CJ00PfR6BFiSkSJo8UILqkHTzp6dGPIVtgAQYQbmHcWQS1DUyYj1B_FVKsvAwXH0XNQVQ5TZsuNagsnG6VdRJY_6U27oO07dunlRhl0P3SEZZA" alt=""/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-table-width-height-color-padding-using-css/">How to set Table width, height, color &#038; padding using CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-set-table-width-height-color-padding-using-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
