Search the Community
Showing results for tags 'margin'.
-
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!
-
Hi, I realized that margin:auto only works sometimes for me in centering an item. Other times, it does nothing. Margin:auto especially doesn't work for me a lot when I try to center texts in <p> </p>. But in those times that it doesn't work, I can still use margin-left, margin-top, etc. Are there certain cases where margin:auto doesn't work? Or, are there only specific cases where it works? Best, GreenTea
- 3 replies
-
- styling
- php basics
-
(and 2 more)
Tagged with: