Align Center CSS Code
- Forums
- CSS
- Align Center CSS Code
This Page Contains information about Align Center CSS Code By chuck78 in category CSS with 9 Replies. [3345], Last Updated: Mon Jun 24, 2024
chuck78
Wed Apr 23, 2008
9 Comments
675 Visits
i've noticed that when im trying to align a div with style sheets it doesnt align proplerly in the middle
its always to the side but when i select aligh text to middel only the content is centered
i want to do it like your site here where you have the main div align to the center
Answer:
<p style="text-align:center;font-family:sans-serif;position: absolute;top: 50%;width:100%">Not Authorized</p>
here an example of a div
padding: 10px;
width: 798px;
border:1px solid #ccc;
border-width: 0 1px 1px 1px 1px;
margin:0 auto;
}
<div class="centered">Im Aligned to the middle of the page</div>
https://www.webune.com/forums/align-center-css-code.html