How do I indent the first line in my paragraphs?
Answers were Sorted based on User's Feedback
Answer / karuna
In the style information for the paragraph....we can say
p{text-indent:20px}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / guest
This isn't really possible in a reliable way, until style
sheets are more widely supported. At this moment, there are
several browser-specific kludges and tricks available, but
these are not guaranteed to work.
1) Use a number of ( ) characters. Netscape and related
browsers do not collapse these, like normal spaces, so this
appears as an indent in these browsers. Other browsers can
display it as one space.
2) Put a <DD> at the beginning of the line. This is
syntactically invalid, but Netscape works around this by
indenting the line at this ball. Of course, other browsers
will handle this differently, and there is no guarantee that
Netscape will keep doing this.
3) Use a blank, transparent GIF, using WIDTH and HEIGHT to
indicate the desired whitespace. This is a very ugly
solution, as it only works if you have image loading on,
otherwise you get the "Image" icon at the beginning of the
line. Not all browsers support resizing using these
attributes, and you can only "indent" a certain number of
pixels, not characters. So the amount of "indentation"
varies with the font size used to display your document.
| Is This Answer Correct ? | 1 Yes | 1 No |
What are the new Form Elements introduced in HTML 5?
What do you mean by DOM?
Describe in brief HTML Tables?
What is purpose of clearPosition() method of geolocation object of HTML5?
what are different types of heading are supported by html?
Name 3 of the minimum html elements needed for an html document.
Why div tag is used in html?
What does dhmu mean in texting?
Which is the current version of html?
What is the difference between xhtml and html?
What is dhtml? What are the features of dhtml?
What happens if there is no text between the tags? Does this affect the display of the html file?