1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why is the text centered?

Discussion in 'HTML & Website Design' started by se_p800, Oct 18, 2008.

  1. #1
    Hi, I have this code on my forum to show a message to visitors:

    
    <!-- guest welcome message -->
    <div class="welcomet">
     <div class="welcometl">
      <div class="welcometr">
      </div>
     </div>
    </div>
    <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td valign="top" align="left" width="9" class="welcomel"><div class="welcomelimg"></div></td><td valign="left" class="welcome"><phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase></td><td valign="top" align="left" width="9" class="welcomer"><div class="welcomerimg"></div></td>
    </tr>
    </table>
    <div class="welcomeb">
     <div class="welcomebl">
      <div class="welcomebr">
      </div>
     </div>
    </div>
    <!-- / guest welcome message -->
    
    HTML:
    And when viewed, as you can see here at the top in the "Welcome to..." box, all the text is centered. Can anyone help me resolve this matter? Thanks
     
    Solved! View solution.
    se_p800, Oct 18, 2008 IP
  2. Setimerenptah

    Setimerenptah Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using text-align="left"

    Instead of having all that code in your table tags on the page you should just define a table class in your css sheet
     
    Setimerenptah, Oct 18, 2008 IP
  3. #3
    you need to change parameter

    text-align:center;
    to
    text-align:left;

    in

    ".welcome" class

    just login to your vBulletin admin cp and make some changes in css skin style

    btw, I'm experienced with vB forums, so I can do this shortly, if you won't find risky create me a limited admin access to me for 1 minute:)
     
    Artimmi, Oct 18, 2008 IP
    Marshton and se_p800 like this.
  4. se_p800

    se_p800 Well-Known Member

    Messages:
    609
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    2
    #4
    Oh your a star! +rep to you! :) Thanks I managed to do it myself with your instructions!
     
    se_p800, Oct 18, 2008 IP