Wednesday, November 23, 2016

basics

news


We assume, here, that we have access to an expanse of space, such that we can display the entire expanse or some part of it. This is accessed by going to an address with the browser. The expanse of space then displays in the browser window.

To help us visualize what this means, let us say the expanse of space is a pink square, and that there is a default view which displays when the page is loaded - the above described address is the address of a web page - and the default view displays the entire pink square when the page is loaded. And to explain how this works, let us say the pink square is a div, with an id, and a background color of "pink", and when the page loads a script sets the height and width of the div, and its left and top, such that the entire pink square is visible in the browser window.

Now let us furthermore say that in the above described div there is a block of text, which, when the page is loaded and the div is set to the default view, is quite small. This block of text is another div, in the pink square div, and, if the font size of the pink square div is set to its height, so that text in the pink square div would display at a very large size, relative to the div, then the block of text div's font size would be set to, say, .1%.

This text would be very small in the default view. If there were a reasonable amount of text in the block of text, in the default view, assuming the block of text were positioned somewhere inside the pink square div, in the default view, at that location inside the pink square div we might see a small smudge which might be distinguishable as being text.

To continue, let us say that, in addition to the pink square, with the block of text in it, the page displayed a set of controls that would allow us to enlarge the pink square around a selected point. If we set that point to a location in the vicinity of the small smudge representing, in the default view, the block of text, and then enlarged the pink square around that point, the entire pink square would grow larger and larger as we watched, its edges would presumably fly off the edges of the browser window, and the block of text would also grow larger and large, until ultimately the text would enlarge to a point where it was readable. This would be the basic setup.