Viewing 2 replies - 1 through 2 (of 2 total)
  • Will Schmierer

    (@officialwill)

    Looks like on here you have an inline style width of 640px and max-width of 100%. I’d recommend moving those and adding them to the sermonnet class.

    <div class="sermonnet" style="width:640px;max-width:100%;">

    so remove the styles above and add this to your css stylesheet:

    .sermonnet {
     margin: 0 auto;
     max-width: 100%;
     width:640px;
    }

    The margin: 0 auto will center the items. Hope this helps!

    Thread Starter astephens

    (@astephens)

    Well i was thinking that would work but when i removed the style=”width:640px;max-width:100%;”
    and added the css you suggested, i lost the media player and only got a line of text. Obviously i did something wrong…
    so i tried to change everything back the way it was and now i don’t have the player i had before… still just the line of text.

    I don’t know if you can tell what i missed but if not, i’ll just try to start all over and go again.
    Thanks for your help and advice though.
    https://gracechurchhouston.com/grace/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘center proper div with padding or margin’ is closed to new replies.