Announcement

Collapse
No announcement yet.

Problem centering text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem centering text

    Hi

    Could someone please advise why my text will not center?

    It works fine in the products description but if I try it in the section description it ignores CSS, HTML, PHP the lot! I can't work out why

    See images for a better description on what I'm on about.

    Thanks in advance.
    Attached Files

    #2
    Have you tried giving the td a width?

    Comment


      #3
      Originally posted by drounding View Post
      Have you tried giving the td a width?
      Hi drounding

      I'm not sure what you mean? Do you mean using a div tag and setting the width and height in px?

      Comment


        #4
        Why are you left aligning the td and then centering text within, just set it to center on the td and get rid of the rest of the code.

        Comment


          #5
          Originally posted by leehack View Post
          Why are you left aligning the td and then centering text within, just set it to center on the td and get rid of the rest of the code.
          I've changed them to center and it's positioned them in the center vertically which is good but it's still not doing anything horizontally. I've tried changing ALL the td ones to center and it's made no difference.

          Comment


            #6
            You're misunderstanding then, there is valign and align, I suspect you're using the wrong one.

            Comment


              #7
              Is this up on test?

              Comment

              Working...
              X