[help] Center aligning
Started on the old forum in September 2010 · view the original in the archive · old links redirect here
RJNzone wrote: My wap are all place in the left side, what shoud i do to put in in the center?
for WML:
<?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:
.aligncenter {
text-align : center;
}
usage:
<?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ノ刀ノイリ!
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..
Simple way to aligning center. in html and php as well.try this
echo "<center>Hello Buddy.:)</center>";
you are illiterate man of html . you don't know html so first learn html tutorial. without learning you will not get earning.
External image (may be gone) Unlimited Web Hosting service. 99.99 $ uptime Guarantee. Free Trail Available for 30 days. Free Script | Null script| Php | Unlimited Web Hosting| Unlimited Space | Unlimited Bandwidth| Unlimited Domain| $3/m Unlimited Space | Unlimited Bandwidth|5 Domain| $2/m 10 GB Space | 100 GB Bandwidth| 1 Domain| $1/m FFMPEG| FREE SCRIPT | FREE SITE BUILDER |LIVE SUPPORT [Timewebhosting.com On Web Hosting| Unlimited Web Hosting](http://www…
cpg12 wrote: 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ノ刀ノイリ!
cpg12 wrote: 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
RJNzone wrote: i'm sorry for neing illiterate man.. thanks for the responce.. still in left side lol
Post here a page of ur code.
metulj wrote: 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.
Free Advertising @ wap4ads.com
Advertise your site freely @ http://wap4ads.com
wap4ads wrote: 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ノ刀ノイリ!
I really fedup. In my localhost my script is ok n works.but when i put it to byet host it shows some allign error.not finished.with opera i can enter my site.but with china based wap browse ,it shows "unknown format of content" script site is wml. I really dnt kn0w whts this prob.
shakil420 wrote: I really fedup. In my localhost my script is ok n works.but when i put it to byet host it shows some allign error.not finished.with opera i can enter my site.but with china based wap browse ,it shows "unknown format of content" script site is wml. I really dnt kn0w whts this prob.
Due to Security Reason, Byet Disabled web browsing from China Made Browser in their Free host No Problem in Paid host. And Where aligning err?? Gimme your code in pm.
shakil420 wrote: Via its shows parse error.charecter 12!
It means you do another wrong while putting codes or any parsin err.