I have an image which is contained in a header DIV.
I want to centre the image in the DIV, so I set the style of the DIV to be "text-align:centre" this worked perfectly and the image was now centred inside the DIV. Seeing as the whole site is using class's to give the shape, I decided to create a new class in my css file. It is definitely a class, as it is declared with a full stop. The only modification that this line does is the same as the inline declaration: text-align:center.
With the declaration in the class file, the image isn't being centered, but the same declaration in the asp.net page and the image is centred correctly.
What gives? Bug? Am I doing something wrong?
View Complete Post