Search results

  1. cbreemer

    Python global

    I was reading about the global keyword. That you can use it in a function to define a global variable outside that function. Yikes... this smells awful bad to me. It's already debatable if a function should be allowed to modify a global variable, but declaring it ? Ffs.... Can there be any...
  2. cbreemer

    JavaScript Dividing by one ???

    I seem to have hit a blind spot, being quite stumped by this line I found in a W3C example: if ( (count / n) % 1 == 0 ) Intuitively I understand that this is testing whether count (an integer counter) is a multiple of n (a variable with value 150), and I believe it is working that way in...
  3. cbreemer

    HTML & CSS Text align on small button

    I'm struggling to get a tiny button on my page to look exactly the way I want it to. Unfortunately I'm one of these OCD types who cannot rest before everything is absolutely pixel-perfect 🤣. The button has the text X and I want the X to fit snugly inside the area. Initially I had this styling...
  4. cbreemer

    HTML & CSS Dynamic content vs. manipulating document body

    On my web page I have a table or list that is populated dynamically. The rows/items have an onclick() handler so that when I click on one it gets highlighted (and the one previously highlighted gets un-highlighted). This works perfectly fine, UNTIL I temporarily change the document body html and...
  5. cbreemer

    Anyone using Dependency Walker ?

    I'm not sure this is the correct forum to post this, or if there even is a forum for it. If it's inappropriate, by all means delete it and I'll try elsewhere. I've been an avid user of Dependency Walker (https://www.dependencywalker.com/) to troubleshoot loading/dependency issues with C...
  6. cbreemer

    Console.log("Hello Code Forum !");

    Hello all, I am new to this forum, having joined in the hope that someone could help me out with a very basic HTML/CSS error/misunderstanding. I am a retired IT support engineer (having worked in Uniface for some 30 years) with a lot of programming experience (C, Java, VB, C#, shell scripting...
  7. cbreemer

    HTML & CSS Very basic HTML/CSS question...

    Hi all, I'm new here, hoping someone can help me understand a very basic thing, or point out what I'm overlooking. I'm toying with a very simple set of 3 div's stacked on top of each other: <html> <body> <div style="background-color:lightblue;"> top </div> <div style="background-color:wheat;">...
Top