Skip to content

Instantly share code, notes, and snippets.

View richardadalton's full-sized avatar

Richard Dalton richardadalton

View GitHub Profile
<!DOCTYPE html>
<head>
<title>Gastra Super Menu</title>
<style>
p {
font-family: "Lucinda Grande", "Lucinda Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
}
.veg:before {
content: url(img/veggie.png) " "; /*whitespace added to distance icon from text*/
}
#calculateTotal{
border: 1px solid #809956;
color: #fff;
background: #809956;
padding: 10px 20px;
border-radius: 3px;
}
<button id="calculateTotal">How Much?</button>
<!DOCTYPE html>
<head>
<title>Gastra Super Menu</title>
<style>
p {
font-family: "Lucinda Grande", "Lucinda Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
}
.veg:before {
content: url(img/veggie.png) " "; /*whitespace added to distance icon from text*/
}
.veg:before {
content: url(img/veggie.png) " "; /*whitespace added to distance icon from text*/
}
<body>
<p class="veg">Rocket Drizzle Salad</p> <!--added veg classes-->
<p class="veg">All about the Beets</p>
<p class="veg">Great bowl of Broccoli</p>
<p class="veg main" Lentil Masala with Spinach</p><!--added veg and main classes-->
<p class="meat main">Peri Peri double Chicken</p> <!--added main and meat classes-->
</body>
<body>
<p>Rocket Drizzle salad</p>
<p>All about the Beets</p>
<p>Great bowl of Broccoli</p>
<p>Red Lentil Masala with Spinach</p>
<p>Peri Peri double Chicken</p>
</body>
<body>
<h1>My Great Page</h1>
<img src="img/jazzCats.jpg" />
</body>
<!DOCTYPE html>
<html>
<head>
<title>Page Title Here</title>
</head>
<body>
<h1>My Great Page</h1>
<p>A witty paragraph.</p>
</body>
</html>
@richardadalton
richardadalton / djangolight_onefile.py
Created February 27, 2017 07:29
Example of simplest possible Django Project
# Based on the book 'Lightweight Django'
# by Mark Lavin & Julia Elman
# See the following Repo for this example broken into multiple files.
# https://github.com/richardadalton/djangolight
import sys
from django.core.management import execute_from_command_line
from django.conf import settings
from django.conf.urls import url