Skip to main content

How to add Transparent textures in website background - EHB

In this post, I am going to tell you how you can add some lines or patterns to the background of your website. As an example, you can see that in WhatsApp, when you open a contact, there are some doodles in the background where messages are displayed. Here you will learn step by step how you can also add these types of lines or patterns to your website absolutely free. So keep reading.

Many people use these "Transparent Textures" on their websites to make them more beautiful and appealing to the eye of the user. To add these transparent textures to your website, you only need to know some basic HTML and CSS. The "Transparent Textures" website will provide you with the CSS which you can add to the body tag of your HTML file. If you are ready, then let's see the steps now.

Step 1: Go to "Transparent Textures"

Step 2: Select your preferred texture.

Step 3: Get the CSS

On the left hand side, you will see an option like "3. Grab the CSS". There you will get the CSS code to apply the texture. Just copy it. Here you can also change the background colour of your website. On this website, you can also see a preview of the transparent texture.

Note: If you want to use it for testing purposes, you can use the CSS code as it is, but if you are using it for your official or production website, it is recommended that you download the transparent texture. On this site, you can easily download the textures.

Step 4: Open your "styles.css" file.

Step 5: Paste the CSS code.

After opening your CSS file, you just have to write the HTML tag to which you are planning to add the transparent texture. You can add that code to the "body tag" or "html tag". You can also add the code as inline CSS.

For example,

body {
background-color: #851400;
background-image: url("https://www.transparenttextures.com/patterns/3px-tile.png");
}

// Here "background-color" is optional.

In this example, we are adding the code in the CSS file to the "body" tag of our website. You can add the code to any HTML tag that you want, like a div or p tag. The above code will add a background image to the "body" tag and change its background colour.

I hope by following these steps you will be able to add transparent textures to your website. If you have a question or encounter a problem, then you can tell me in the comment section. Do let me know if you want more posts like this. If you like this post, then make sure you follow my blog.

Comments

Popular posts from this blog

POLED vs AMOLED

POLED में p प्लास्टिक के लिए है। जैसा की इसके नाम से पता चलता है, ये डिस्प्ले गिलास की बजाय प्लास्टिक से बना होता है। लेकिन अगर यह प्लास्टिक से बना है, तो इसका मतलब यह नहीं है कि यह एक खराब डिस्प्ले है। यहां आपको POLED और AMOLED में अंतर पता चल जाएगा कि कौन सा डिस्प्ले बेहतर है, POLED या AMOLED, और क्यों? पढ़ते रहिए। आप ने कभी न कभी तो LG का नाम सुना होगा। LG टेक्नोलॉजी की दुनिया मे बहूत बड़ा नाम है। साल 2015 में एलजी कंपनी ने मोबाइल उपकरणों के लिए लचीले OLED डिस्प्ले का उत्पादन शुरू किया। उन्होंने इसे POLED नाम दिया है। एलजी OLED उत्पादन में अग्रणी है। यहां आपको यह जानना होगा कि POLED PMOLED से अलग है। POLED और AMOLED मे अंतर जानने से पहले हमें यह जानना होगा की POLED और AMOLED मे OLED क्या है? तो चलिए पहले OLED के बारे मे जानते है। OLED तकनीक के बारे में: OLED का फुल फॉर्म ऑर्गेनिक लाइट-एमिटिंग डायोड है, जिसे ऑर्गेनिक इलेक्ट्रोल्यूमिनसेंट डायोड भी कहा जाता है। इसे ऑर्गेनिक एलईडी कहा जाता है क्योंकि यह OLED डिस्प्ले तकनीक की "इलेक्ट्रोल्यूमिनसेंट" परत बनाने के लिए

Blogger | Add Google Analytics and See Real-Time Traffic Data

Today, I will tell you how you can add Google Analytics to your blog post created on the Blogger site. In this post, I'll show you how to include Global Site Tag (gtag.js) in your blog's header section. For properly adding Google Analytics to your site, keep reading. Google Analytics is a powerful tool for collecting data related to your website, and more importantly, it is freely available. With the help of this tool, you can create content that is perfect for your visitors and increase your website traffic. It also helps you understand what content is driving traffic to your site. Moreover, it is from Google, so you can rest assured about your data's safety. Below is a graph showing Google Analytics data:  Here are the steps you need to take to add Google Analytics to your website: Steps to add Google Analytics to Blogger Step 1:- Create a Google Analytics account and open it. Making a Google Analytics account is easy. If you have a Gmail account , then