• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

test please delete

Collapse
This is a sticky topic.
X
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Morning denizens

    Clear blue sky and bright sunshine out

    Still very snowy; temperature's risen from -1°C to 0° in the last thirty minutes or so (though with a "feels like" of -6°), heading for a high of 2° this afternoon before plummeting to -3° again overnight

    But then it's expected to warm up through the week, though the snow possibly returns at the weekend. Barometers: 998/1006mB

    There's already a trickle of melting snow coming from the overhang of the eaves, so it seems it might not continue to look mildly scenic for very long

    Comment


      Links are up

      Comment


        Originally posted by NickFitz View Post
        Maybe they're trying to communicate psychically with someone on the surface, and they got through to you

        Why did the chicken go to the séance?

        To get to the other side!


        have this picture of Madam Xoxxy with a crystal ball.
        Always forgive your enemies; nothing annoys them so much.

        Comment


          Lunch was a fillet of John Dory that HWMBO had left for me with some spinach in a sesame and peanut sauce that was left over from Saturday's takeaway dinner.

          Comment


            Almost finished pissing about with website. Had one page where clear didn't work for some reason. Then discovered flexbox. Bah! Why didn't hadn't I found out about that before using a lot of complicated floaty stuff?
            bloggoth

            If everything isn't black and white, I say, 'Why the hell not?'
            John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

            Comment


              Originally posted by xoggoth View Post
              Almost finished pissing about with website. Had one page where clear didn't work for some reason. Then discovered flexbox. Bah! Why didn't hadn't I found out about that before using a lot of complicated floaty stuff?
              Yes, there's been a lot of advances in CSS layout over the last few years. Wait till you discover CSS Grid and grid-template-areas!

              For example, if you have the HTML
              HTML Code:
              <body>
                <header class="page-header">Page header</header>
                <main class="page-content">Main stuff</main>
                <aside class="page-sidebar">Sidebar stuff</aside>
                <footer class="page-footer">Page footer</footer>
              </body>
              you can get one usual layout for such things with:

              Code:
              html, body {
                height: 100%; 
                margin: 0;
              }
              
              
              body {
                display: grid;
                grid-template-columns: 300px, 1fr;
                grid-template-rows: 100px, 1fr, 50px;
                grid-template-areas: 
                  "header header"
                  "sidebar main"
                  "footer footer"
              }
              
              .page-header {
                grid-area: header;
              }
              
              .page-content {
                grid-area: main;
              }
              
              .page-sidebar {
                grid-area: sidebar;
              }
              
              .page-content {
                grid-area: footer;
              }
              and then if you decided to have the sidebar run the full height instead, you'd just change the grid-template-areas in the first bit:

              Code:
                grid-template-areas: 
                  "sidebar header"
                  "sidebar main"
                  "sidebar footer"
              or if you want it on the right instead just change it to:

              Code:
                grid-template-areas: 
                  "header sidebar"
                  "main sidebar"
                  "footer sidebar"
              and change the width of the columns:

              Code:
                grid-template-columns: 1fr 200px;
              and you're done - nothing else to change!

              (N.B. I've quickly tested this at CSS Grid Demo for xog so it should work, but there's a heck of a lot to Grid so I might have missed something; for example, I suspect there might be a way to do the column widths so you don't need to change the grid-template-columns rule for the last one, but there might not be.)
              Last edited by NickFitz; 25 January 2021, 14:41.

              Comment


                Witchcraft!

                Comment


                  Lunch: gammon bap (wholemeal) with a bag of plain crisps

                  Comment


                    Originally posted by ladymuck View Post
                    Witchcraft!

                    It does feel like sorcery when you think back over twenty years of buggering about with floats

                    Though floats were only originally meant so you could have, say, an image to the side of a paragraph and the text would flow round it; using them to layout a page was never more than a clever hack, but it somehow ended up defining the entire process of CSS page layout for well over a decade before we finally got technologies designed for the purpose

                    Comment


                      Originally posted by DoctorStrangelove View Post
                      ...

                      Come to think of it, the plumbing could have frozen over night.

                      That would have been fun.

                      The bit under the sink is lagged but the remainder is boxed in but unlagged.

                      Now there's a thought.
                      I have lots of surplus wool packaging that would come in handy as lagging.

                      Comment

                      Working...
                      X