Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Help centering elements

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207235
    man123
    Participant

    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.

    `

    [code for first ad]
    [code for second ad]
    [code for third ad]


    `

    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.

    #207236
    Paulie_D
    Member
    #207238
    man123
    Participant

    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;">
    
    #207352
    man123
    Participant

    The problem was two different quote types:

    <div style=“margin: 0 auto;">
    

    Needs to be:

    <div style="margin: 0 auto;">
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.