03/13/20

How do I create a link to a location in a page, when sections are accordion collapsed using CSS?

The page is divided into different categories which can be collapsed (accordion), and using the regular <a href> does not work. That only works when linking to a location in the same section... more

09/17/19

05/24/19

What is fuzzy logic?

I'm working with a couple of AI algorithms at school and I find people use the words Fuzzy Logic to explain any situation that they can solve with a couple of cases. When I go back to the books I... more

05/14/19

What are the best practices for dealing with desired line breaks in responsive web design?

I design a great deal of simple single page web items for sales or email. I often find I run into issues with headlines and my desired line breaks at different media widths. For example, I could... more

05/14/19

How to solve the issue of round number in JavaScript?

I am having an issue in which if I am entering 9 sixteen times and formatting it using Math.round(9999999999999999) and it is becoming 10000000000000000. Oddly enough, when I run... more

05/14/19

CSS snap point design guidelines?

I'm creating a new personal site and am considering using CSS's scroll snap module: https://drafts.csswg.org/css-snappoints/ as my primary navigation. Essentially this allows the web page to "snap"... more

05/14/19

How to trigger a file download when clicking an HTML button or JavaScript?

This is crazy but I don't know how to do this, and because of how common the words are, it's hard to find what I need on search engines. I'm thinking this should be an easy one to answer.I want a... more

05/13/19

What Is Tail Call Optimization?

Very simply, what is tail-call optimization? More specifically, Can anyone show some small code snippets where it could be applied, and where not, with an explanation of why?

04/12/19

What is the difference between the terms "arguments" and "parameters"?

I often find myself confused with how the terms 'arguments' and 'parameters' are used. They seem to be used interchangeably in the programming world.What's the correct convention for their use?

04/12/19

How to make an image center (vertically & horizontally) inside a bigger div?

I have a div 200 x 200 px. I want to place a 50 x 50 px image right in the middle of the div. How can it be done?I am able to get it centered horizontally by using text-align: center for the div.... more

03/28/19

Is it still worthwhile to use Dreamweaver?

03/27/19

I am trying to clean up the way my anchors work. I have a header that is fixed to the top of the page, so when you link to an anchor elsewhere in the page, the page jumps so the anchor is at the... more

03/27/19

How do you easily horizontally center a <div> using CSS?

I'm trying to horizontally center a  block element on a page and have it set to a minimum width. What is the simplest way to do this? I want the  element to be inline with rest of my page. I'll... more

03/27/19

Rotate a Triangle around its center with JavaScript?

I'm trying to draw an equilateral triangle on a canvas, and then rotate it around its center by 90 degrees once you click the triangle, but for some reason I'm having trouble determining it's... more

03/27/19

CSS hide scroll bar if not needed?

I am trying to figure out how I can hide the overflow-y:scroll; if not needed. What I mean is that I am building a website and I have a main area which posts will be displayed and I want to hide... more

03/27/19

Can someone explain this JavaScript auto executing function?

var foo = (function(){ var x = 0; return function(){return x++;}; })() Why the var x = 0 expression only runs once is my biggest misunderstanding about this.

03/27/19

What are the benefits and drawbacks of OOP?

As far as I can tell, in spite of the countless millions or billions spent on OOP education, languages, and tools, OOP has not improved developer productivity or software reliability, nor has it... more

03/27/19

Function for creating color wheels?

This is something I've pseudo-solved many times and have never quite found a solution for.The problem is to come up with a way to generate N colors, that are as distinguishable as possible where... more

03/27/19

What's the difference between and <strong>, <i> and <em>?

What's the difference between  and ,  and  in HTML/XHTML? When should you use each?

03/27/19

Who first discovered CMYK?

It has been used for colour printing for many, many years, but who (and when) first discovered that a bright pink colour (magenta), a light blue (cyan), yellow and black can be mixed to create... more

03/26/19

Why is NaN not equal to NaN?

The relevant IEEE standard defines a numeric constant NaN (not a number) and prescribes that NaN should compare as not equal to itself. Why is that? All the languages I'm familiar with implement... more

03/26/19

Observer Design Pattern vs "Listeners"?

It seems to me that the Observer design pattern as described in GOF is really the same thing as Listeners found in various toolkits. Is there a difference between the concepts, or are Listeners and... more

03/19/19

Which Logic Operator Takes Precedence?

So, I'm looking into writing a slightly more complex operation with logic operators in an if-else statement. I know I can do parentheses, and I know it's the better way of doing this, but I've... more

Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.