StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Padding around custom text widget area (http://www.studiopress.com/support/showthread.php?t=120429)

mindschmootz 10-10-2012 07:05 PM

Padding around custom text widget area
 
I've been trying to figure out how to add padding to the custom widget that I registered on the home page but I think I am overlooking something obvious. I added this to my css but it doesn't seem to care:

.custom-slider{
padding: 0 0 30px;
width: 100%;
}

Any help is appreciated.

http://mindschmootz.net/development/

SoZo 10-10-2012 07:43 PM

There is not a div on your home page with a class of "custom-slider" assigned to it.

mindschmootz 10-10-2012 08:51 PM

Can you give me an easy example of how to do that?

SoZo 10-10-2012 08:54 PM

How to do what?

mindschmootz 10-10-2012 08:58 PM

How to add a div on my home page with a class of "custom-slider" assigned to it

SoZo 10-10-2012 09:01 PM

You don't need another div. You need to use the class name that you assigned to the div you already added "custom-slider-widget-area"

mindschmootz 10-10-2012 09:10 PM

I am sorry for not understanding very well. Do you mean change my css to:

.custom-slider-widget-area {
padding-top: 30px;
width: 100%;
}

Because I did and nothing changed?

SoZo 10-10-2012 09:23 PM

You've added it within the 300px responsive rule. I find it's less confusing for people if they just add all new rules above the responsive section and make sure to close the 300px responsive rule:

Code:

@media only screen and (max-width: 300px) {

        .home-featured-1,
        .home-featured-2,
        .home-featured-3,
        .home-featured-4 {
                padding: 0 0 30px;
                width: 100%;
        }
        }

And you're adding padding to the top now instead of the bottom like in your original rule.

mindschmootz 10-10-2012 09:27 PM

Wow, now I feel silly that it was that simple. Thank you.

And yes I changed my mind about wanting it on top.

SoZo 10-10-2012 09:34 PM

You're welcome :):


All times are GMT -5. The time now is 10:26 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.