On the Menu:
   Wiki:
>> View All | Start New    

Complex center align layout
Center aligned websites are becoming increasingly popular. One has to go the extra length to create an attractive and original design. One way of achieving this is to incorporate a 3D effect using a drop-shadow around a center-aligned page (see Produce Media). Although this may seem simple in principle, a more complex design may prove difficult across browser platforms.

In designing Barbara Nelson's Spanish Language and Culture website, I attempted a slightly more complicated layout.In doing so, I came across a mis-alignment problem on IE6 on PC (by far the most popular browser): The edge of the banner did not align with the edge of the page. The annotated code in the diagram below shows what is responsible for the mis-alignment.

glitch

The reason for this glitch is that IE6 calculates center-alignment differently for background and embedded images. (In the above diagram, I denoted which of my images were in the background or embedded.) The images suffer IE6's even/odd pixel browser width calculations, so they shift as a browser window is resized. Below is a snippet of the corrected code and design layout.

corrected


home | LRC | colby college | contact | code & design by: szymon mikulski & clara koh | loaded in 0.02 seconds | last modified: Sep 27th, 2006 at 13:46.