Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need to center text in each section

    Hi!
    I'm using a site that is designed to have a horizontal scroll.
    I need the contents of each section to be centered horizontally with JS so if the resolution changes, the text is centered too.
    The site is www.big-band.com.ar

    Any help is very appreciated.
    Thanks a lot!!

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,869
    Thanks
    79
    Thanked 4,418 Times in 4,383 Posts
    No, you need the sections to be centered using CSS.

    Probably as simple as using something like
    Code:
    <div style="text-align: center;">
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •