• 0
Sign in to follow this  
Followers 0

Social media icons inside branding section won't resize


Question

Posted · Report post

I just uploaded a few colored social media icons inside the branding section. They are visible, but very small. Even with css and !important I can't resize the icons.

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

Hi there, what selectors have you been applying the css to? I seem to get a result using the below

 

.section-branding .icons a {
    width50px;
}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I was trying

 

#branding .icons img {
         display:block;
        width:31px !important;
height:31px !important;
       }

 

but that didn't work. Yours did, but I don't understand the logic behind it :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Kneops,

 

Since I began working with Wordpress in 2007, I have discovered one great secret, I'll share.  Logic and CSS do not mix.  There is sometimes no rhyme or reason behind the way some things work in CSS, and some others that seem perfectly sensible do not.   I've also learned to be happy with results when they work because finding the right element, attribute, condition, etc, can sometimes be challenging, to say the least.

 

I'm very happy to hear James was able to help you and found the right code. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I know. Explain that to the people who have to pay you for a website :phew:

But I'm glad I finally found the solution. I guess I have to let go of logic.

 

finding the right element, attribute, condition, etc, can sometimes be challenging, to say the least.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for letting us know this is resolved. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0