Jump to content


Photo
- - - - -

Spacing of Banners

banner spacing margin css

Best Answer James B , 03 January 2013 - 03:50 AM

Hi there, the original css is being applied inline so its overriding the settings you're putting in for the other items. To override it add !important

 

 
    #banners .banner-text-pad {
      padding:10px !imoprtant;
    }
Go to the full post


  • Please log in to reply
1 reply to this topic

#1 jonthompson

jonthompson

    Super Member

  • Members
  • 100 posts
  • Country: Country Flag

Posted 03 January 2013 - 03:32 AM

ok, so I am trying to style the banners so they are smaller, and have less space around the content. I am using the correct css, I think but when I adjusted the margins with this:

 

 

 

#banners .banner-text-pad {
  padding:10px;
}

 

then it did this: 

Please Login or Register to see this Hidden Content

 

which is great, but it didn't take effect on all of them. This has always perplexed me because I never know exactly where to find the other css to change. 

 

Please Login or Register to see this Hidden Content

 

I would think that that rule would be able to apply anywhere. Its probably some simple thing I couldn't remember. thanks for the help in advance.

 

Please Login or Register to see this Hidden Content

 

 



#2 James B

James B

    Advocate

  • Members

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

Posted 03 January 2013 - 03:50 AM   Best Answer

Hi there, the original css is being applied inline so its overriding the settings you're putting in for the other items. To override it add !important

 

Please Login or Register to see this Hidden Content


  • jonthompson likes this





Also tagged with one or more of these keywords: banner, spacing, margin, css