Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7639397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:24:28+00:00 2026-05-31T08:24:28+00:00

Figured out the answer is: img_node.removeAttribute(width,0); img_node.removeAttribute(height,0); I have a page specific chrome extension

  • 0

Figured out the answer is:

img_node.removeAttribute("width",0);
img_node.removeAttribute("height",0);

I have a page specific chrome extension I am developing that does stuff to pages on a forum I frequent. (http://code.google.com/p/orpcastmanagerchromeextension/wiki/About)

I have a way for people to replace people’s avatars with a custom url in specific groups of threads (these users are players in a play by post game).

The forum sets people’s avatar img to width=60 and heigh=60:

<img src="https://urlforSinbadEVsavatar" width="60" height="60" alt="SinbadEV's Avatar" border="0" title="SinbadEV's Avatar">

but I want people to be able to specify that they not have the static img size…
assuming that img_node is the node of the img.

I tried:

img_node.width = "100%";
img_node.height= "100%";

and get a 0x0 image:

<img src="https://urlforSinbadEVsavatar" width="0" height="0" alt="SinbadEV's Avatar" border="0" title="SinbadEV's Avatar">

I tried:

img_node.width = "";
img_node.height= "";

and get a 0x0 image:

<img src="https://urlforSinbadEVsavatar" width="0" height="0" alt="SinbadEV's Avatar" border="0" title="SinbadEV's Avatar">

I tried:

img_node.style.width = "100%";
img_node.style.height= "100%";

and get 1×60 image:

<img src="https://urlforSinbadEVsavatar" width="60" height="60" alt="SinbadEV's Avatar" border="0" title="SinbadEV's Avatar" style="width: 100%; height: 100%; ">

I tried:

delete img_node.width;
delete img_node.height;

and get a 60×60 image:

<img src="https://lh4.googleusercontent.com/-DKJY8ApOJHM/Tt_nTqBCIKI/AAAAAAAAAi0/lGF2J4nLiRo/s60/KindlyDM60x60.png" width="60" height="60" alt="SinbadEV's Avatar" border="0" title="SinbadEV's Avatar">

I want to get rid of the constraint or set it to 100% of it’s original size. What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:24:29+00:00Added an answer on May 31, 2026 at 8:24 am
    img_node.removeAttribute("width",0);
    img_node.removeAttribute("height",0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I figured out that CUDA does not work in 64bit mode on my mac
I figured out that of course . and SPACE aren't allowed. Are there other
This week I have figured out how to modify form elements in the location
I've figured out that default ReceiveBufferSize (8192) doesn't work for me - I lose
I have figured out a way to change the style of tabs at run
EDIT: I figured out the answer to the original YUI3 question I posted here,
I figured out how to get all the user's images in the camera roll
I figured out how to pass a String value between activites thanks to this
After a while I figured out I could bind Shark to the process of
I haven't figured out the correct programming architecture for: -WPF Application -Each build will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.