[help] Center aligning

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

18 replies · 719 views · started 16 years ago · 1 min read

8 participants
RJNzone Junior · 10 posts #1

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

metulj Super moderator Principal · 1,726 posts #2

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ノ刀ノイリ!

RJNzone Junior · 10 posts #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..

RJNzone Junior · 10 posts #5

where will i put that code sir?

akela Senior · 305 posts #6

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 Junior · 32 posts #7

CSS CENTER ALIGN for PC user!

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

metulj Super moderator Principal · 1,726 posts #9

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ノ刀ノイリ!

khan Lead · 681 posts #10

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

cpg12 Junior · 32 posts #11

ow...sorry for my misunderstanding...

RJNzone Junior · 10 posts #12

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

wap4ads Developer · 68 posts #14

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

metulj Super moderator Principal · 1,726 posts #15

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ノ刀ノイリ!

shakil420 Developer · 125 posts #16

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.

khan Lead · 681 posts #17

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 Developer · 125 posts #18

Via its shows parse error.charecter 12!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close