Search the Community
Showing results for tags 'padding'.
-
This has been driving me crazy all day and night! I'm trying to add Adsense ad units to my new site. I want a wide skyscraper on the left-hand side and a medium rectangle at the bottom of the page. The problem is that, for some reason, the ad units aren't sitting in their parent divs properly. They are being pushed down about 10px, as if the parent divs have top padding or the ad units have a top margin. Check it out and you'll see what I mean: Self Help Videos. I've temporarily given the parent divs a yellow background colour so that you can see the problem more clearly. Why are the ad units being pushed down? I've tried everything and I can't fix the problem. I've played with all the CSS margins and paddings, and nothing has worked!
-
I am creating my first responsive website. My site has a wrapper that has the following css: #wrapper { width: 100%; max-width: 1230px; margin: 0 auto; background: #e0dfdf; } and I would like to have this element have a padding of 15px but when i apply that style the width of the element increases by 15px when i want it to stay at for example the max-width of 1230px. Any suggestions?
- 4 replies
-
- responsive
- element
-
(and 1 more)
Tagged with: