Tagged: x
-
AuthorPosts
-
May 27, 2016 at 3:11 pm #1013446
wnhorne246ParticipantHi all,
I have a quick question about margins around icons within a text box. I have inserted an icon for Facebook and raised it’s size and changed it’s color with the following snippet… [icon type=”facebook-square” style=”font-size: 40px; color: #3b5998;”]. The only issue is, there are margins above and below the icon now which off-centers the icon and the click actions (red line that surrounds the icon after it is clicked) do no hug up against the icon on the top and bottom. You can see this in action at dev.emilycolin.com/contact/. I’ll also attach a screen shot of the issue I’m seeing.
What I need help with is a way to remove all margins around the icon.
I’m figuring the solution is simple, but that’s why I went with X. Less headaches!
Thanks for your help.
May 27, 2016 at 3:15 pm #1013456
wnhorne246ParticipantThis reply has been marked as private.May 27, 2016 at 10:21 pm #1013919
FriechModeratorHi There,
Thanks for writing in! Add a
line-height: 0;css property on your icon, same way how you add thefont-size: 50px;.Then you can add this under Custom > CSS in the Customizer to get rid of that red border issue.
a:focus, select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="submit"]:focus, input[type="checkbox"]:focus { outline: none !important; }Hope it helps, Cheers!
May 28, 2016 at 5:02 pm #1014649
wnhorne246ParticipantThanks. The line-height worked mostly. There is still a little margin on the top and bottom. Maybe there is a way to remove that too?
As for the CSS for the red line… That just removes the highlights all together. I think if the margins were fixed, the red lines will look right.
May 28, 2016 at 10:36 pm #1014892
RadModeratorHi there,
Should the highlights stay? In what particular condition?
And for the margin, please add this CSS as well,
.page-id-30 .x-text p:last-child, .x-text p:nth-last-child(2) { margin-bottom: 5px; }Thanks!
May 29, 2016 at 8:46 am #1015243
wnhorne246ParticipantYes, the highlights should stay. When you click on an icon, I would like the highlights to hug the icon the same on the top and bottom as it does on the side.
I think I’m really close now. I’m happy with how this looks on the contact page (except for the highlights alignment). I also used this same method of inserting these same icons on the main/home page in a widget area in a text box. It’s weird… when looking from a desktop or laptop, it looks as if the icons are underlined. I added a Goodreads icon with an image that is not underlined. I’ve attached a screenshot. Is the a way to get rid of the underline in this area?
May 29, 2016 at 8:58 am #1015249
wnhorne246ParticipantAlso, what is the method of changing the color of the highlights?
May 29, 2016 at 10:41 am #1015315
RupokMemberHi there,
Thanks for writing back. This is what i can see on your page right now – http://prntscr.com/b9txef
If you are referring the focus state as “highlight” then you can modify this and add the color under Custom CSS :
a:focus, select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="submit"]:focus, input[type="checkbox"]:focus { outline: 5px auto #dd3333; }Hope this helps.
Cheers!
May 29, 2016 at 11:34 am #1015352
wnhorne246ParticipantSorry for the confusion. What you were looking at in your screenshot was not the page I was talking about. This issue is on the home page in the right sidebar under “Follow Me.”
“I also used this same method of inserting these same icons on the main/home page in a widget area in a text box. It’s weird… when looking from a desktop or laptop, it looks as if the icons are underlined. I added a Goodreads icon with an image that is not underlined. I’ve attached a screenshot. Is the a way to get rid of the underline in this area?”
The CSS for the Focus state worked great by the way. Thanks for that.
May 29, 2016 at 2:39 pm #1015452
RadModeratorHi there,
Please add this CSS as well,
.textwidget a { text-decoration: none !important; }Hope this helps.
May 29, 2016 at 3:48 pm #1015496
wnhorne246ParticipantThank you sir. This topic is resolved and can be closed.
May 29, 2016 at 5:21 pm #1015568
RadModeratorYou’re welcome :), Sure!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1013446 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
