Wednesday, 16 December 2009

Centering layout

I have been trying to centre my layout in dreamweaver for days. The simplest way to do it is to select the Table_01 CSS style which is your outer box of the layout and change its alignment to center. But for some reason, mine would not work. So, after tweaking around here and there, I finally managed to get it to the centre.

First, select the Table_01 properties by double clicking it, then under the "Box" categories, uncheck the "same for all" under "Margin", and make the Right and Left option to "auto". Next, the "Positioning" category, change the "position" from "absolute" to "relative", and it should do the trick!

Now I have make my layout to be in the centre, and it works in the Google Chrome and Mozilla Firefox browser, though unfortunately not in Internet Explorer.

No comments:

Post a Comment