Jump to content


Photo
- - - - -

Social media icons inside branding section won't resize

branding icons

  • Please log in to reply
5 replies to this topic

#1 kneops

kneops

    Advanced Member

  • Members
  • 95 posts
  • LocationNetherlands
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 22 July 2013 - 11:07 AM

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.



#2 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 22 July 2013 - 10:17 PM

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;
}


#3 kneops

kneops

    Advanced Member

  • Members
  • 95 posts
  • LocationNetherlands
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 23 July 2013 - 07:50 AM

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 :)



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 23 July 2013 - 07:56 AM

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. 



#5 kneops

kneops

    Advanced Member

  • Members
  • 95 posts
  • LocationNetherlands
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 23 July 2013 - 08:01 AM

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.


#6 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 23 July 2013 - 06:08 PM

Thanks for letting us know this is resolved. 







Also tagged with one or more of these keywords: branding, icons