My wap are all place in the left side, what shoud i do to put in in the center?
[help] Center aligning
Collapse
X
-
Originally posted by RJNzone View PostMy wap are all place in the left side, what shoud i do to put in in the center?
PHP Code:<?php
echo "<p align=\"center\">";
echo "your code to be centered";
echo "</p>";
?>
though i prefer CSS in XHTML like
create file style.css with code:
PHP Code:.aligncenter {
text-align : center;
}
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.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
-
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
-
Originally posted by cpg12 View PostCSS CENTER ALIGN for PC user!
body{
max-width:450px;
margin:1px auto;
}
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.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Originally posted by metulj View Postim sorry, im not pro.. but your code is not good enough even for lol
read the entire post once again...
i think cpg12's reply was correct one for this topic.
Comment
-
Originally posted by wap4ads View Postwhat 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.It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
Comment