Monday, July 6, 2009

create a template that is located in the middle


Create a template located in the middle that I mean the layout template you will always be seen by visitors in the middle even though the monitor with a different resolution...[...] Actually posting this especially for you who like to work especial like the template or design a good template for use in or for the use by others. To create a layout template so that you appear in the middle is very easy because you live change the code value margin to auto mode, example code like this: margin: 0 auto; Description: 0 -> margin of 0px (pixels) for the top and bottom boundaries. If the limit above and below the limit you want to have distance, then you live tambahka value, eg 10px. Auto -> to limit the left and below the limit can always balanced, so that the layout of the template you will always be visible in the middle. By adding code to your template, the layout of the template you will always appear in the center position even if monitor resolution of your visitor is different. Example: In the code template kang Rohman, layout terluar kang Rohman called # wrap in: # wrap ( width: 966px; margin: 0 auto; padding: 0; line-height: 18px; word-wrap: break-word; font-family: Arial, Tahoma, Verdana; font-size: 12px; overflow: hidden; background: $ wrapcolor; ) With the code that I give a red color, the layout of the template will appear in the center. Like others, if you save the code like this: # wrap ( width: 966px; margin: 0; padding: 0; line-height: 18px; word-wrap: break-word; font-family: Arial, Tahoma, Verdana; font-size: 12px; overflow: hidden; background: $ wrapcolor; ) Layout template mepet you will look to the left, the greater the resolution of the monitor visitors to your template will look increasingly to the left mepet: But this problem is the taste, the site of any kompas.com mepet prefer to look to the left in the appeal in the middle looks like the site detik.com

0 komentar:

Post a Comment

visitors :

free counters