J
Joker7
Hi one and all,
How to convert <div align="center"> to work in a css file .
Cheers
Chris
How to convert <div align="center"> to work in a css file .
Cheers
Chris
Inline:Joker7 said:Hi one and all,
How to convert <div align="center"> to work in a css file .
Joker7 said:Hi one and all,
How to convert <div align="center"> to work in a css file .
Cheers
Chris
Mazin07 said:Sometimes, if you know the width of a certain <div> for sure, you can do
something like this:
div.content {
width:600px;
margin-left:-300px;
position:absolute;
left:50%;
}
Ed said:Inline:
<div style="margin-left:auto;margin-right:auto;">
Or you can define a class in your style sheet:
.XYZ {margin-left:auto;margin-right:auto;}
then write your div as:
<div class="XYZ">
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.