replacing "tag-tagname" with "tag name"
A Pen by David Cochran on CodePen.
| // Turn off autocomplete in Visual Studio Code | |
| // http://code.visualstudio.com/ | |
| // Add the following lines to user settings | |
| // OPTIONAL WORD WRAPPING | |
| // Controls if lines should wrap. The lines will wrap at min(editor.wrappingColumn, viewportWidthInColumns). | |
| "editor.wordWrap": true, | |
| // Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'. | |
| "editor.wrappingIndent": "indent", |
| // Turns off autocompletion and smart indents | |
| // Add the following lines to your user preferences json file | |
| { | |
| "codehint.AttrHints": false, | |
| "codehint.CssPropHints": false, | |
| "codehint.SpecialCharHints": false, | |
| "codehint.TagHints": false, | |
| "codehint.UrlCodeHints": false, | |
| "closeBrackets": false, | |
| "closeTags": { "whenOpening": false, "whenClosing": false, "indentTags": [] }, |
| ## INTEREST CALCULATOR ## | |
| Lesson("Interest Calculator (Challenge)") | |
| ## The formula is A = P(1+r/n)**(n*t) | |
| ## Create each variable separate | |
| ## P = Principal, r = Rate %, n = times compounded per year, t = years | |
| ## find How much money you will have if you invest your college tuition, $100,000 into a investment account for 40 years earning 7% interest compounded yearly. | |
| ##CREATE HERE## |
| <?php | |
| $myExcerpt = get_the_excerpt(); | |
| $tags = array("<p>", "</p>"); | |
| $myExcerpt = str_replace($tags, "", $myExcerpt); | |
| echo $myExcerpt; | |
| ?> | |
| <!-- https://wordpress.org/support/topic/remove-ltpgt-tag-from-excerpt --> |
| <?php if ( !empty( $post->post_excerpt ) ) : // if the excerpt field is not empty | |
| the_excerpt(); // do the excerpt | |
| else : // if the excerpt field is empty | |
| false; // no excerpt | |
| endif; ?> | |
| <!-- see: https://wordpress.org/support/topic/if-the_excerpt-is-blank --> |
| <svg width="96" height="96"> | |
| <image xlink:href="svg.svg" src="svg.png" width="96" height="96" /> | |
| </svg> | |
| <!-- | |
| by Alexey Ten | |
| http://lynn.ru/examples/svg/en.html | |
| Exploits the way browsers render the image tag. Widely supported, including all major browsers. |
replacing "tag-tagname" with "tag name"
A Pen by David Cochran on CodePen.
| .products-grid { | |
| display: table; | |
| } | |
| .product-item { | |
| float: none; // override default grid floating behavior | |
| display: inline-table; | |
| margin-right: -1em; // http://www.tylercipriani.com/2012/08/01/display-inline-block-extra-margin.html | |
| vertical-align: top; // Safari defaults to vertical-align center | |
| } |
| /* | |
| In a situation such as this markup | |
| where we want columns to organize themselves | |
| into two rows at on smaller screens. | |
| This Bootstrap 3 markup gets us most of the way there. | |
| <div class="col-sm-4 col-md-2"> | |
| ... | |
| <div class="col-sm-4 col-md-2"> | |
| ... | |
| <div class="col-sm-4 col-md-2"> |
| // Animate scroll to all page anchors | |
| $('[href^=#]').click(function (e) { | |
| e.preventDefault(); | |
| var div = $(this).attr('href'); | |
| $("html, body").animate({ | |
| scrollTop: $(div).position().top | |
| }, "slow", "swing"); | |
| }); |