Skip to content

Instantly share code, notes, and snippets.

Lewis Walsh lewiswalsh

View GitHub Profile
@lewiswalsh
lewiswalsh / gist:adb139e85ab39060fc185fdd601b7165
Created Jun 7, 2020
OL elements have start and reversed properties.
View gist:adb139e85ab39060fc185fdd601b7165
Useful for pagination, for example
<ol start='11'>
<li>Foo</li>
<li>Bar</li>
<li>Baz</li>
</ol>
Renders:
11. Foo
@lewiswalsh
lewiswalsh / gist:b9ee4429370b12348b380b081687613d
Created Jun 7, 2020
Center horizontally and vertically in CSS
View gist:b9ee4429370b12348b380b081687613d
display: grid;
place-items: center;
@lewiswalsh
lewiswalsh / gist:3eda0f743bc9eae027f5d0f54cbad6cc
Created Jun 7, 2020
Get a random image from Unsplash and set size
View gist:3eda0f743bc9eae027f5d0f54cbad6cc
http://source.unsplash.com/random/1200x600
@lewiswalsh
lewiswalsh / gist:3ee4a53239a624293123f9f396e4259a
Created Jun 7, 2020
Submit a form with a button outside the form
View gist:3ee4a53239a624293123f9f396e4259a
<form id="my-form">
<label for="name">Name:</label>
<input type="text" name="name"></input>
</form>
<button type="submit" form="my-form">Submit</button>
You can’t perform that action at this time.