[help] Center aligning

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

    [help] Center aligning

    My wap are all place in the left side, what shoud i do to put in in the center?

    #2
    Originally posted by RJNzone View Post
    My wap are all place in the left side, what shoud i do to put in in the center?
    for WML:
    PHP Code:
    <?php
    echo "<p align=\"center\">";
    echo 
    "your code to be centered";
    echo 
    "</p>";
    ?>
    it can be used also for XHTML,
    though i prefer CSS in XHTML like
    create file style.css with code:
    PHP Code:
    .aligncenter {
    text-align center;

    usage:
    PHP Code:
    <?php
    echo "<head>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\"/>";
    echo 
    "</head>";

    echo 
    "<div class=\"aligncenter\">";
    echo 
    "your code to be centered";
    echo 
    "</div>";
    ?>
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

    Comment


      #3
      thanks for that dude.. i have little knowledge about this.. try to feedback

      Added after 16 minutes:

      body {
      text-align: center;
      max-width: 400px;
      margin:0px auto 0px;
      font-family:Verdana, Arial, Helvetica, sans-serif;
      font-size:12px;
      background-color: #282828;
      color: #CCCCCC;
      text-align: center;
      }

      .aligncenter {
      text-align : center;
      }


      still it's all in left side.. help pls..
      Last edited by RJNzone; 24.09.10, 17:41.

      Comment


        #4
        Simple way to aligning center. in html and php as well.try this
        PHP Code:
        echo "<center>Hello Buddy.:)</center>"

        Comment


          #5
          where will i put that code sir?

          Comment


            #6
            you are illiterate man of html . you don't know html so first learn html tutorial. without learning you will not get earning.

            Comment


              #7
              CSS CENTER ALIGN for PC user!


              body{
              max-width:450px;
              margin:1px auto;
              }

              Comment


                #8
                Simple HTML.
                Start with <center>
                End with</center>

                Comment


                  #9
                  Originally posted by cpg12 View Post
                  CSS CENTER ALIGN for PC user!


                  body{
                  max-width:450px;
                  margin:1px auto;
                  }
                  im sorry, im not pro.. but your code is not good enough even for lol
                  read the entire post once again...
                  It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                  ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                  ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                  キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                  Comment


                    #10
                    Originally posted by cpg12 View Post
                    CSS CENTER ALIGN for PC user!


                    body{
                    max-width:450px;
                    margin:1px auto;
                    }
                    The thread is about text aligning. not the css aligning.... your code only do the whole site go to middle in Pc. it doesn't matter though

                    Comment


                      #11
                      ow...sorry for my misunderstanding...
                      Last edited by cpg12; 25.09.10, 23:35.

                      Comment


                        #12
                        i'm sorry for neing illiterate man.. thanks for the responce.. still in left side lol

                        Comment


                          #13
                          Originally posted by RJNzone View Post
                          i'm sorry for neing illiterate man.. thanks for the responce.. still in left side lol
                          Post here a page of ur code.

                          Comment


                            #14
                            Originally posted by metulj View Post
                            im sorry, im not pro.. but your code is not good enough even for lol
                            read the entire post once again...
                            what wrong with cpg12 reply ...you read the topic first ..he didn't mentioned that his text are not aligning center ...he just mentioned my wap...think like this even he don't know how to tell his problem ...
                            i think cpg12's reply was correct one for this topic.

                            Comment


                              #15
                              Originally posted by wap4ads View Post
                              what wrong with cpg12 reply ...you read the topic first ..he didn't mentioned that his text are not aligning center ...he just mentioned my wap...think like this even he don't know how to tell his problem ...
                              i think cpg12's reply was correct one for this topic.
                              if you say so...
                              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                              Comment

                              Working...
                              X