---
title: "Discussion on \"How to Get the File Size of an Image imported by CSS Background URL Method in Javascript\" | Hashnode"
description: "Discussion on \"How to Get the File Size of an Image imported by CSS Background URL Method in Javascript\". The HTML and CSS\nHere is the HTML\n<div id=\"hello\" class=\"container1\"></div>\n<div id=\"hello\" class=\"container2\"></div>\n\nWe have two <div> elements with different classes applied to them. But they both share the same id hello\nThe CSS:\n.container1 {\n   ..."
url: "https://hashnode.com/posts/how-to-get-the-file-size-of-an-image-imported-by-css-background-url-method-in-javascript/63a5f6d5c561add8ea1b5e6b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Get the File Size of an Image imported by CSS Background URL Method in Javascript](https://bot5am.hashnode.dev/how-to-get-the-file-size-of-an-image-imported-by-css-background-url-method-in-javascript?utm_source=hashnode&utm_medium=feed)

The HTML and CSS Here is the HTML <div id="hello" class="container1"></div> <div id="hello" class="container2"></div> We have two <div> elements with different classes applied to them. But they both share the same id hello The CSS: .container1 { ...

Dec 23, 2022 · 5 min read · bot5am.hashnode.dev  
Read the article

-   [#xmlhttprequest](https://hashnode.com/tag/xmlhttprequest)
-   [#css-box-model](https://hashnode.com/tag/css-box-model)
-   [#css-background-properties](https://hashnode.com/tag/css-background-properties)
-   [#css3](https://hashnode.com/tag/css3)
-   [#files](https://hashnode.com/tag/files)

## Written by

[bot5am](https://hashnode.com/@bot5am)

@bot5am · metaverse

  
[View profile](https://hashnode.com/@bot5am)

The Myth of Sisyphus. Recovering Perfectionist. Real Progress vs. Fantastic Delusions.

I am trying to mix fun with coding. So far, it has burned up on my face. I have voices in my head feeding me fear, wholesale. Coding is the only antidote to my fear of powerlessness. That's why I can't give up.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
