Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.sinclair > #4102

Re: The joy of DLAN (modern web devs please read)

From Calum <com.gmail@nospam.scottishwildcat>
Newsgroups comp.sys.sinclair
Subject Re: The joy of DLAN (modern web devs please read)
Date 2016-02-21 20:57 +0000
Organization Aioe.org NNTP Server
Message-ID <nad8cc$kh2$1@gioia.aioe.org> (permalink)
References <ce74b513-fa1e-4971-be03-f0743c4d833e@googlegroups.com>

Show all headers | View raw


On 21/02/2016 17:33, bit-naughty@hotmail.com wrote:
>
> Btw, do any of you guys understand how text "flows" in a browser? I
> remember someone telling me that during my last post on this topic
> here, but I've yet to understand the, well, should I call it an
> "algorithm"? I mean, it's just that everything inside a DIV just gets
> printed _inside that box_, right? Is there anything more to it than
> that?

The basics are pretty simple, but it can get pretty hairy depending on 
what you're trying to achieve...

Everything on the page is laid out using block elements and inline elements.

Blocks are things like paragraphs, headings and divs, and always occupy 
a rectangular area on the page. They can contain any combination of 
other blocks, and inline elements.

By default, a block takes up the full width of its container (which may 
be the page itself), is as tall as it needs to be for all its contents 
to be visible, and sits immediately below the previous block in the same 
container. This is called the "normal flow" of the page. You can take 
blocks out of the normal flow by floating them, or by assigning them a 
fixed or absolute position.

By default, consecutive inline elements in a block (which include things 
like text spans, buttons and input fields) are laid out left-to-right, 
top-to-bottom within their container, and occupy only the space they 
require, which may not be rectangular. Inline elements can only contain 
other inline elements.

But of course, that's only scratching the surface...

Back to comp.sys.sinclair | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-02-21 09:33 -0800
  Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-02-21 20:57 +0000
    Re: The joy of DLAN (modern web devs please read) "Brian Gaff" <briang1@blueyonder.co.uk> - 2016-02-22 11:04 +0000
      Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-02-22 12:00 +0000
    Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-02-26 07:38 -0800
      Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-02-27 13:22 +0000
        Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-03-02 02:19 -0800
          Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-03-02 13:58 +0000
            Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-03-06 22:55 -0800
              Re: The joy of DLAN (modern web devs please read) Guesser <alistair@zxnet.co.uk> - 2016-03-07 10:25 +0000
                Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-03-07 07:03 -0800
                Re: The joy of DLAN (modern web devs please read) Guesser <alistair@zxnet.co.uk> - 2016-03-07 15:33 +0000
                Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-03-07 17:37 +0000
              Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-03-07 18:41 +0000
                Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-03-13 08:55 -0700
                Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-03-13 16:44 +0000
  Re: The joy of DLAN (modern web devs please read) "Brian Gaff" <briang1@blueyonder.co.uk> - 2016-02-22 11:01 +0000
    Re: The joy of DLAN (modern web devs please read) bit-naughty@hotmail.com - 2016-02-26 08:34 -0800
      Re: The joy of DLAN (modern web devs please read) "Brian Gaff" <briang1@blueyonder.co.uk> - 2016-02-28 11:04 +0000
        Re: The joy of DLAN (modern web devs please read) Calum <com.gmail@nospam.scottishwildcat> - 2016-02-28 11:34 +0000

csiph-web