div alignment
-
I have a div with a backgroung image, I set its width to 300px and its height to 200px. When I do that the div is aligned to the left altough I set : <body style="text-align:center"> When I dont set the div's height and width it looks ok..
You can do it using two ways : 1. Change Div layout. give padding for position. 2. Create Table. Put Div inside TD. set alignment for TD.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET
-
I have a div with a backgroung image, I set its width to 300px and its height to 200px. When I do that the div is aligned to the left altough I set : <body style="text-align:center"> When I dont set the div's height and width it looks ok..
set its left coordinates also