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 8807271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:19:46+00:00 2026-06-14T02:19:46+00:00

I have a bookmarklet and recently I have changed the CSS properties, using cleanslate

  • 0

I have a bookmarklet and recently I have changed the CSS properties, using cleanslate css because the bookmarklet design was not the same on third party websites, when used.

This CSS file, should reset all the properties of all the tags within a specific tag, and it does that, but when I need to manipulate the settings, I can’t;

<div class="mainclass">
<div id="login">a</div>
<div id="form">b</div>
<div id="details">c</div>
</div>

I have many forms, which I hide and unhide at specific actions, like: I show the login form, if the user in not logged in, I show the the detail form, if the user is logged in and if I know the history of a URL, and other forms;

So, if I set the div id details display property to block, and the rest to none, and then try to set all to none and the div id form display property to block, the css it doesn’t do anything, but I can see that the javascript runs the actions

This CSS should do the job, but because I used the !important property on all the tags properties, I can’t set from JavaScript new values to properties, like:

document.getElementById("form").style.display = "none";

enter image description here

in this image, I use the old CSS, a reset method was used, and also, the js code worked fine, but the design was not the same on third party websites

in the actual project, the design is the same on all the third party websites, but the js code can’t set CSS properties

  • 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-06-14T02:19:48+00:00Added an answer on June 14, 2026 at 2:19 am

    Important is a really bad idea in general and should try to be avoided as it breaks the rules of specificity in css. Is there no way you can make your css more specific to overide the current styles rather than using !importnat.

    You can still apply importnant by doing some thing like this

    element.style.setProperty("display", "none", "important");
    

    Or jquery makes it quite easy

    element.css("display","none !important");
    

    But again best to just not use important

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bookmarklet that keeps using cache versions of http://www.imvu-e.com/products/hpv/download/HPV.js . I want
I have this bookmarklet, i.e. it does not start with 'http:' but with 'javascript:'.
I have a bookmarklet which inserts a CSS stylesheet into the target DOM via
I have bookmarklet. If I open a random page (not mine) and click the
I have a bookmarklet: var b=document.getElementsByClassName('textinput')[0]; b.value=' (Christiansburg)'; var f=document.createEvent(HTMLEvents); f.initEvent('change',true,true); b.dispatchEvent(f); void(0); This
I have a bookmarklet that inserts a widget into any site's pages. The styling
We have a bookmarklet, and the user clicks a button and an inspect like
I have a bookmarklet that will come up with a iframe that will load
I have a pretty typical bookmarklet code that's working perfectly for me in all
I have come across Evernote's bookmarklet and was wondering how this worked. You can

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.