https://github.com/jabranr/letter-spacing
An inline custom element to provide letter-spacing CSS styling to its contents.
https://github.com/jabranr/letter-spacing
custom-elements html5 shadow-dom web-components
Last synced: 6 months ago
JSON representation
An inline custom element to provide letter-spacing CSS styling to its contents.
- Host: GitHub
- URL: https://github.com/jabranr/letter-spacing
- Owner: jabranr
- License: mit
- Created: 2014-06-28T11:42:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-11T08:36:41.000Z (over 10 years ago)
- Last Synced: 2024-04-13T21:41:58.264Z (over 1 year ago)
- Topics: custom-elements, html5, shadow-dom, web-components
- Language: HTML
- Size: 459 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# <letter-spacing>
An inline custom element to provide `letter-spacing` CSS styling to its contents.
## Install
``` shell
$ bower install letter-spacing
```## Usage
Import `Polymer` and `letter-spacing` into your HTML document.
``` html
// Get Polymer// Import letter-spacing element
```
Starting using it:
``` html
Text goes here
```## Demo
[See live demo](http://www.jabran.me/letter-spacing/)
## Options
Attribute | Options | Default | Description
--- | --- | --- | ---
`value` | *String* | `` | Spacing value i.e. '3px' or '-3px'## Basic use example
``` html
This text is spaced with letter-spacing custom element.
```Results in above text spaced by given value.
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin new-feature`
5. Submit a pull request## License
[MIT License](http://opensource.org/licenses/MIT) - © Jabran Rafique 2014
[](https://github.com/igrigorik/ga-beacon)