Skip to content

Instantly share code, notes, and snippets.

@Pageboy
Pageboy / flex-for-responsiveness.markdown
Created March 6, 2023 22:09
Flex for Responsiveness
@Pageboy
Pageboy / play.css
Last active March 6, 2024 10:10
A CSS file to add when exporting from InDesign to reflow able eBook
/* select this CSS file when first exporting to the re-flowable ePub from InDesign */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body,
div,
dl,
@Pageboy
Pageboy / play.css
Created February 13, 2022 18:41
This CSS file should be your 'starter' css for the Shakespeare play HTML exported from InDesign
/* This stylesheet is where to add styles for your Shakespeare Play */
/*We usually add something general for the body*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Web safe Fonts</title>
<style>
body {
margin: 12px 40px;
@Pageboy
Pageboy / dropcaps.css
Created November 7, 2021 12:41
dropcaps on first letter
.blurb:first-letter {
background-color: rgb(61, 60, 145);
color: white;
float: left;
font-family: Georgia;
font-size: 4em;
line-height: 1;
padding: 0 .1em;
margin: .1em;
}
@Pageboy
Pageboy / dabblet.css
Created February 20, 2021 11:14
Responsive menu bar
/**
* Responsive menu bar
*/
html {
font-size: 16px;
}
* {
margin:0;
padding:0;
@Pageboy
Pageboy / navigation.html
Last active February 16, 2023 13:59
Simple Navigation with CSS Flexbox
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" />
<title>Responsive Menu</title>
</head>
<body>
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@Pageboy
Pageboy / helpgetatomrunningonpc.md
Last active April 14, 2020 10:43
Install on PC

How to install Atom on a PC and use for your GitHub site

Go to https://atom.io and install atom for your PC

Once you have this running you can close down the help windows etc.

Now, locate the Packages menu and scroll down to Settings View > Install packages/themes

In the Install box for Packages you need to find the following and install them:

@Pageboy
Pageboy / play.html
Created February 14, 2020 18:13
Here is my play.html - You can see that I have added a couple of items just above and inside the contents section.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>play</title>
<link href="play-web-resources/css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body id="play" lang="en-GB">
<p class="playtitle">A Midsummer Night's Dream</p>
<a href="#navigation" class="menu">Menu</a>