Click here to Skip to main content
15,887,349 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to align DIV tag in php???
Posted

1 solution

Divs are HTML nothing related to php... css is your friend : http://www.w3schools.com/tags/att_div_align.asp[^]
 
Share this answer
 
Comments
Killzone DeathMan 19-Feb-13 4:45am    
Easy men...
In the PHP file must be something like:



<HTML>
<head>
<title>Document Title</title>
<style>

/* CSS CODE */
#myDiv
{
width: 600px;
height: 500px;
margin: 0 auto;
border: 1px solid #000;
}
</style>
</head>
<body>
<div id="myDiv"></div>
</body>
</HTML>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900