Lädt...


🔧 Elevate Your Web Design: How to Enhance Your HTML with GitHub Utils CSS via CDN


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Are you looking to add a personal touch to your website's design? Good news! You can take control of your styles by uploading your own utils.css file to your GitHub repository. This guide will walk you through the process, from uploading your custom CSS to finding the file's URL, allowing you to effortlessly integrate it into your web projects.

Step 1: Upload Your Custom utils.css to GitHub

  1. Create a GitHub Repository:
    If you don't have a GitHub repository yet, create one to store your custom CSS. You can do this on the GitHub website by clicking on the "+" sign in the top right corner and selecting "New repository." Keep the repository Public to access this file from anywhere.

  2. Upload utils.css:
    Once your repository is set up, navigate to it and click on the "Add file" button. Choose "Upload files" and select your utils.css file. Commit the changes to complete the upload.

Example of utils.css

.text-center: {
    text-align: center;
}

.bg-red {
    background: red;
}

.border-none {
    border: none;
}

.outline-none {
    outline: none;
}

.danger {
    color: white;
    background: rgba(255, 0, 0, 0.6);
}

.danger:hover {
    box-shadow: 5px 5px 10px rgba(255, 111, 111, 0.5), -5px -5px 10px rgba(255, 111, 111, 0.5);
}

.success {
    color: rgb(0, 0, 0);
    background: rgba(0, 255, 47, 0.6);
}

.success:hover {
    box-shadow: 5px 5px 10px rgba(125, 255, 111, 0.5), -5px -5px 10px rgba(125, 255, 111, 0.5);
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
    justify-content: center;
}

/* Add more css as per your requirement */

Step 2: Find the URL for Your Custom CSS

  1. Access Your CSS File:
    Go to your GitHub repository and navigate to the folder containing your utils.css file. Click on the file to view its contents.

  2. Copy the URL:
    Click on the "Raw" button on the top-right of the file viewer. Copy the URL from your browser's address bar.

Step 3: Integrate Your Custom utils.css into Your HTML

  1. Open Your HTML File:
    Using a text editor, open the HTML file where you want to apply your custom styles.

  2. Add the CDN Link:
    Within the <head> section of your HTML, insert a <link> tag with the copied URL from your utils.css file.

  3. Convert your GitHub repository to cdn link:
    If your GitHub link is https://github.com/example/cdn/css/utils.css then convert this into https://cdn.jsdelivr.net/gh/example/cdn/css/utils.css to use utils.css as cdn

<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Your Web Page Title</title>

        <!-- Add your custom utils.css via CDN link -->
            <link href="https://cdn.jsdelivr.net/gh/example/cdn/css/utils.css" rel="stylesheet" crossorigin="anonymous">
    </head>
    <body>
        <!-- Your HTML content goes here -->
        <button class="border-none outline-none danger">Alert</button>
    </body>
</html>

Preview

Preview

Step 4: Save and Experience the Transformation!

Save your HTML file, open it in a web browser, and witness the magic as your custom utils.css brings your web design to life!

Congratulations! You've successfully uploaded and integrated your own utils.css file through GitHub, giving you complete control over the aesthetics of your web projects. Feel free to update your CSS file on GitHub as needed, and watch your designs evolve with ease.

...

🔧 Elevate Your Web Design: How to Enhance Your HTML with GitHub Utils CSS via CDN


📈 99.97 Punkte
🔧 Programmierung

🔧 Introduction of CSS, What is CSS, Why we use CSS and How CSS describe the HTML elements


📈 38.12 Punkte
🔧 Programmierung

🔧 How to create navigation menu with HTML CSS step by step | web design tutorial | HTML CSS tutorial


📈 35.81 Punkte
🔧 Programmierung

🔧 Elevate Your Web Design with Codepem's CSS Gradient Generator


📈 35.56 Punkte
🔧 Programmierung

🔧 Elevate Your Web Design with Codepem's CSS Gradient Generator


📈 35.56 Punkte
🔧 Programmierung

🔧 Elevate Your CSS with Typed CSS Variables Using `@property`


📈 34.15 Punkte
🔧 Programmierung

🔧 Enhance Your Web Design with CSS Image Effects and Animations


📈 32.62 Punkte
🔧 Programmierung

🔧 Elevate Your Design: Mastering CSS Text Styling🚀


📈 31.72 Punkte
🔧 Programmierung

🔧 🚀 Elevate Your GitHub Profile with the Merged PRs GitHub Action


📈 31.43 Punkte
🔧 Programmierung

📰 Cryptojacking Campaign Employs Deleted GitHub Account and Unofficial GitHub CDN


📈 30.82 Punkte
📰 IT Security Nachrichten

🕵️ Medium CVE-2020-7722: Nodee-utils project Nodee-utils


📈 28.95 Punkte
🕵️ Sicherheitslücken

🕵️ Medium CVE-2020-8147: Utils-extend project Utils-extend


📈 28.95 Punkte
🕵️ Sicherheitslücken

🕵️ High CVE-2021-34080: Ssl-utils project Ssl-utils


📈 28.95 Punkte
🕵️ Sicherheitslücken

🕵️ SaltStack Salt prior 3002.5 API salt/utils/thin.py salt.utils.thin.gen_thin command injection


📈 28.95 Punkte
🕵️ Sicherheitslücken

🔧 Enhance Your Coding Workflow with Our GitHub and GitHub Copilot Learn Plan


📈 28.49 Punkte
🔧 Programmierung

🐧 Aliens elevate privileges to enhance their vision


📈 27.27 Punkte
🐧 Linux Tipps

🔧 Elevate Your Web Design: Mastering React-Select Styling


📈 27.19 Punkte
🔧 Programmierung

🔧 Elevate Your HTML Skills with the 'HTML Practice Challenges' Course


📈 26.71 Punkte
🔧 Programmierung

🔧 Top CSS Websites for Developers: Elevate Your Frontend Skills


📈 25.79 Punkte
🔧 Programmierung

🔧 Choosing the Right CSS Approach: Tailwind CSS vs Bootstrap vs Vanilla CSS


📈 25.1 Punkte
🔧 Programmierung

🔧 A BRIEF REVIEW OF CSS CASCADING, CSS SELECTORS and CSS SPECIFICITY.


📈 25.1 Punkte
🔧 Programmierung

🔧 Stylify CSS: Automagic CSS bundles splitting into CSS layers in Astro.build


📈 25.1 Punkte
🔧 Programmierung

🔧 CSS Grid: Moving From CSS Frameworks To CSS Grid (2018 and beyond)


📈 25.1 Punkte
🔧 Programmierung

🕵️ CPDoS – New Web-Based Web Cache Poisoning Attack On Websites That Using CDN


📈 24.48 Punkte
🕵️ Hacking

🔧 🛠️ Must-Have GitHub Repository to Elevate Your Developer Journey


📈 24.42 Punkte
🔧 Programmierung

🔧 Elevate Your GitHub README Game


📈 24.42 Punkte
🔧 Programmierung

🔧 "🚀 Developing Mini Web Projects with HTML, CSS, and JavaScript: Check Out My Work on GitHub!"


📈 23.86 Punkte
🔧 Programmierung

🔧 Finally found a solution to clear the CDN cache using GitHub Actions!


📈 23.81 Punkte
🔧 Programmierung

📰 GitLab affected by GitHub-style CDN flaw allowing malware hosting


📈 23.81 Punkte
📰 IT Security Nachrichten

🕵️ Spotify, PayPal, GitHub, and other major websites down due to Fastly CDN outage


📈 23.81 Punkte
🕵️ Hacking

🔧 Elevate🚀 Your Design Game with `dummyImg` - A React & Node.js Powerhouse! 😱🖼️


📈 23.36 Punkte
🔧 Programmierung

🔧 15 open-source tools to elevate your software design workflow


📈 23.36 Punkte
🔧 Programmierung

matomo