No replies
SurfDog's picture
Horsham, PA
Last seen: 8 years 36 weeks ago
Horsham, PA
Timezone: GMT-5
Joined: 2013-11-30
Posts: 1
Points: 2

(sales guy here, not a coder so go easy on me Smile )

not even sure this is the correct implementation so I am open for suggestions.

Have a wrapper div which holds (several) container divs one of which gets dynamically updated via JS into 6 lines of


I would like this block of text to be centered (all around).

centering horizontally is fine using text-align but I can't for the life of me center it vertically.

I thought using margin: auto (-top:auto :bottom-auto) would work but it doesn't

I can add padding but that drives down the whole div which would sit below the .wrapper.

Can anyone help the NEWB out?

(site link - blue wrapper at bottom)