using css in child theme
-
Topic
-
I’m self taught on CSS and thus what I’m asking may not be fesible within the theme.
Current on versions of Alyeska and WordPress
Question is:
Added the following (local host copy of site) to the child’s style.css.ribbon {padding-left:103px} .ribbon-background {position:absolute;top:0;right:0;font-size:8px;color:#cccccc;} .ribbon-background a {color:#cccccc;text-decoration:none;font-weight:normal;} .ribbon-background a:hover {color:#cccccc;text-decoration:none;font-weight:normal;} .theribbon{position: relative;width: 250px;font-size: 1.5em;font-weight: bold;padding: 6px 20px 6px 71px;margin: 30px 10px 10px -71px;color: #b34040;background-color: #fff2bf;text-shadow: 0px 1px 2px #bbb;-webkit-box-shadow: 0px 2px 4px #888;-moz-box-shadow: 0px 2px 4px #888;box-shadow: 0px 2px 4px #888;} .theribbon:before, .theribbon:after {content: ' ';position: absolute;width: 0;height: 0;} .theribbon:before{width: 30px;left: -30px;top: 12px;border-width: 20px 10px;border-style: solid;border-color: #fff2bf #fff2bf #fff2bf transparent;} .theribbon:after{left: 0px;top: 100%;border-width: 5px 10px;border-style: solid;border-color: #666666 #666666 transparent transparent;}
The attempted to use with a post with
<div class="ribbon"> <div class="theribbon">Announcing a new service from SCA</div>
What puzzles me is that it works fine if I just create an html document in notepad and view in browser, but doesn’t work in theme.
Tried inserting the style tags within the post but that would seem unneeded with the above.
Any help appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.