Tagged: x
-
AuthorPosts
-
May 13, 2016 at 6:58 am #989582
5wanParticipantHi,
On my Homepage
I have a button “Buy Now” (in a text widget – sidebar):[button style=”x-btn” type=”link” target=”false” title=”” href=”http://www.duncanswan.me/books/”%5DLearn More[/button] [dropdown dropup=”dropup”]
[dropdownhead style=”x-btn” size=”btn-lg” split=””]
Buy Now
[/dropdownhead]
[dropdownbody]
[dropdownitem type=”menuitem” link=”#” ]<i class=”fa fa-amazon” aria-hidden=”true”></i> Amazon[/dropdownitem]
[/dropdownbody]
[/dropdown]On ‘select’ the button opens a drop-down menu.
I’m trying to isolate the background / area beneath the text (to change the colour).
However I have another set of CSS:.widget_text ul {
background-color: transparent;
border-radius: 3px;
text-align: center;
font-size: 18px;
text-shadow: none;
list-style-type: none;
margin-right: 0px !important;
margin-left: 0px !important;
}That’s overwriting all my text widgets, and changing their backgrounds to transparent (which is important for the top posts “Most Viewed ART” section I have further down the page).
How do I just select dropdown button background, or exclude it from the CSS above?
Thanks
May 13, 2016 at 6:59 am #989583
5wanParticipantThis reply has been marked as private.May 13, 2016 at 12:42 pm #990025
JadeModeratorHi Duncan,
If my understanding is correct, you aim to change the background of the dropdown that displays when the Buy Now button is clicked right? If so, please use the selector below and add the CSS styles in it.
.btn-group.dropup ul.dropdown-menu { }Hope this helps.
May 15, 2016 at 7:18 am #992196
5wanParticipantPerfect thanks,
One more question.
I’m trying to change the color of the font of the dropdown that displays when the Buy Now button is clicked.
Currently it’s red.Setting-
color: #fff;Has no effect,
What am I doing wrong?Thanks
May 15, 2016 at 8:12 am #992251
ChristopherModeratorHi there,
Please add this as well :
ul.dropdown-menu li a i, ul.dropdown-menu li a { color: #fff !important; }Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-989582 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
