NEW POSTS
latest

Pages

Contact Form

Name

Email *

Message *

Automatic Digital Date, Month & Year

In this tutorial, we will delve into a simple approach for generating an automated digital representation of the date, month, and year using JavaScript and CSS. By integrating the given code, you can seamlessly showcase the current date in a format that is easily understandable for users on your webpage.

Digital Date

-

Video Tutoral at https://youtu.be/VaqLibBUiq8

The below are the code that can create date, month and year which be expressed in digits by using simple JavaScript and CSS.

Index

Script

Stylesheet

Result ⤷

Creating Superscript and Subscript in an HTML

HTML superscript and subscript

Result:

Superscript

5th December.

(a+b)2

Subscript

Nitric Acid, HNO3

Carbon dioxide, CO2

Splitting Or Merging Cells In An HTML Table Using An HTML Code

Splitting or merging cells in HTML table
-

Video Tutoral at https://youtu.be/bo4HN8R_lPY

1. Code Before Using rowspan & colspan:


2. Code after using rowspan & colspan:

3. Behind rowspan & colspan, Hiding Border Lines In An HTML Table By Using Background Color: 
remove table cellFull code:↓

How to Create a Table with Scrollbar Using HTML and CSS

Tables are crucial elements of any website as they are used to present and organize data in a structured manner. However, large tables with numerous rows and columns can often cause the web page to exceed its intended size and make it difficult for users to view the data. This is where a scrollbar becomes indispensable, enabling users to navigate through the table with ease and without having to resize their browser window.

table scrollbar

Try it at https://codepen.io/sirchogyal/pen/QWZaKpY

The first step in creating a table with a scrollbar is to create an HTML table. For our example, we will be using a table with five columns and five rows. Below is the HTML code for the table with a horizontal scrollbar using HTML and CSS and if you reduce the height, the vertical scrollbar from the right side will also appear. The table contains five columns: "SL No", "Particulars", "Quantity", "Unit Price", and "Total Amount (USD)". Each row of the table displays data related to an office furniture item, including the item number, description, quantity, unit price, and total amount in US dollars.

HTML Code

After creating the HTML table, we need to apply some CSS styles to add a scrollbar. The following is the CSS code for the scroll-bar class:

Stylesheet

The scroll-bar class contains CSS styles for the scrollbar. The height and width properties define the dimensions of the scrollbar container. The border property sets the border of the scrollbar container, while the font-family property sets the font family of the text inside the scrollbar container. The overflow property determines whether to clip the content or to add a scrollbar.

To add a horizontal scrollbar to the table, we can use the white-space property to prevent the text from wrapping and overflow-x property to add a horizontal scrollbar.

To add a vertical scrollbar, we can use the overflow-y property to add a vertical scrollbar to the scrollbar container. It's essential to set a height for the scrollbar container to ensure that the scrollbar appears.

With these simple steps, you can now create a table with a scrollbar using HTML and CSS. Experiment with different properties and styles to customize the scrollbar and the table to suit your requirements.

Adding a scrollbar to a table using HTML and CSS is an excellent way to present data in an organized and user-friendly way. With the code snippet provided in this blog post, you can easily create a table with a scrollbar and customize it to fit your specific needs. A scrollbar makes it easy for users to navigate through large tables, ensuring that your website remains easy to use and visually appealing.

Hide an Image URL From Inspection and Page Source

Hide an image URL

Video Tutoral at https://youtu.be/mG0bV78HtvY

As a website owner, you might not want to reveal the image URL of your website for various reasons. Maybe you don't want other websites to hotlink your images or want to protect your images from being downloaded by others. Whatever your reason, hiding the image URL can be a useful technique. Use the necessary code below to hide an image URL from your website.

HTML

Stylesheet

Image

JavaScript

The Matrix() Function in CSS

Hide an image URL
-

Video Tutoral at https://youtu.be/_7tYMHiV_WY

The matrix() function in CSS defines a homogeneous 2D transformation matrix where it consists of 6 parameters like scale()X, skew()Y, skewX(), scaleY(), translateX(), and translateY().

The syntax for the matrix() function is: matrix(a, b, c, d, tx, ty); where, a represents scaleX(), b represents skewY(), c represents skewX(), d represents scaleY(), tx represents translateX(), and ty represents translateY().

The first four values describe the linear transformation, while the last two values describe the translation to apply.

The scale values control the size of the element, while the skew values control the angle at which the element is skewed. The translate values move the element along the X and Y axis.

Here you can see how the matrix() function can also be the shorthand for the matrix3d() function but only when some of the values are 0 in the matrix3d() function as shown below.

Matrix(a, b, c, d, tx, ty) = matrix3d(a, b, 0, 0, c, d, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1)

HTML

Stylesheet

Make Your Blogger Theme Totally Responsive

We are going to make a responsive blogger theme for the sidebar at the right, left & for double sidebar, i.e, theme having both right and left sidebars. Your theme should be of Picture Window, simple theme, travel theme, watermark theme, etc.

Hide an image URL
-

Video Tutoral at https://youtu.be/jwIYuQwmobg

1. Right Sidebar Responsive Theme

i. Choose the right sidebar by going to Theme tab-Customize-Layout.

ii. Find this code under your <head> tag.


iii. Replace the above code with the new code below:

iv. Select code from ]]></b:skin> to till ]]></b:template-skin>  and replace with the following code:
2. Left Sidebar Responsive Theme

i. Choose the left sidebar by going to Theme tab-Customize-Layout.

ii. Find this code under your <head> tag.

iii. Replace the above code with the new code below:

iv. Select code from ]]></b:skin> to till ]]></b:template-skin>  and replace with the following code:
3. Right & Left Sidebar Responsive Theme

i. Choose double sidebar by going to Theme tab-Customize-Layout.

ii. Find this code under your <head> tag.

iii. Replace the above code with the new code below:

iv. Select code from ]]></b:skin> to till ]]></b:template-skin>  and replace with the following code:

Hide a Widget From a Specific URL

Step 1: Copy the title of your widget that you wanted to hide from a specific URL.

Step 2: Go to "Theme" in your blogger.

Step 3: Click on the three dots drop down menu and go to "Edit HTML"

Step 4: Left click inside the HTML code and press Ctrl+F on your keyboard.

Step 5: Paste the title of the widget and hit Enter in your keyboard.

Step 6: Just above <!-- only display title if it's non-empty --> You can paste this code <b:if cond='data:blog.url != &quot;YOUR URL&quot;'>

Step 7: Replace YOUR URL with your specific URL.

Step 8: Paste </b:if> below this line <b:include name='quickedit'/>

hide blogger widget
Summary:
<b:if cond='data:blog.url != &quot;YOUR URL&quot;'>


Widget code........

</b:if> 
US Flag
play button