- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have some advertisement widgets on my site and I’m trying to get them to respond and tile nicely regardless of screen width. I’m almost there except that two of the blocks are not centering for me.
`
`
Here are screen shots for ads. The third ad is a different type even though it looks visually the same. Only the third ad is behaving correctly, the first two do not center when they stack. I want everything to center when it’s displayed as a single column.
http://s30.postimg.org/q1g54mmj5/image.jpg
http://s15.postimg.org/xu6cjc0ej/image.jpg
http://s1.postimg.org/1ylxvuv6q7/image.jpg
I assume there is a quick easy fix here to get this to work?
Thanks.
Here – Read This – https://css-tricks.com/centering-css-complete-guide/
I don’t understand what I actually have to do to fix it.
I tried switching the first div to this but all that did was break ad #3 and it did not fix 1 and 2.
<div style=“margin: 0 auto;">
The problem was two different quote types:
<div style=“margin: 0 auto;">
Needs to be:
<div style="margin: 0 auto;">