KODE PPC ANDA

Indenting paragraphs can be done in several ways.

Cascading Style Sheets
Using CSS, you can set all your paragraphs in a document to be indented whatever amount you would wish.


<style>
<!--
p { text-indent : 10px; }
-->
</style>

This is the best way to indent paragraphs, as it separates style from content and is widely supported on modern browsers.


Non-Breaking Space

The non-breaking space special character can be used to move text and images over slightly on a Web page.

<p>
& nbsp; & nbsp; & nbsp; & nbsp; Paragraph starts here....
</p>

Remove the spaces between the ampersand and the "nbsp;".


Some browsers don't like multiple non-breaking spaces in a row. They will crash, or just ignore them.

Transparent Image


Use a transparent GIF image, no more than 5-10 pixels wide and 2-5 pixels high. Place that image at the beginning of each of your paragraphs.

<p>
<img src="spacer.gif" width="1" height="1" border="0" style="margin: 0 5px 0 5px;" alt=" " />Paragraph starts here....
</p>

Using this method can make your pages load more slowly, and look strange if the image doesn't load for some reason.



From: webdesign.about.com

KODE PPC ANDA

Digg Technorati del.icio.us Stumbleupon Reddit Blinklist Furl Spurl Yahoo Simpy

Related Posts by Categories



Widget by Hoctro | Jack Book

0 comments

Post a Comment