Hello,
I m making the site and i have the main div tag that i want to set to center and it should be fit all the srceens in center.
So is there tag we can add?
I have tried but i can't do so.
please reply me.
Harsh patel.
Hello,
I m making the site and i have the main div tag that i want to set to center and it should be fit all the srceens in center.
So is there tag we can add?
I have tried but i can't do so.
please reply me.
Harsh patel.
use css
.yourmaindivclass{
width:500px;
margin:0 auto;
}
Don't forget DTD.
IE needs DTD to support 'auto margin' property.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.