• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

Spacing in html page

I am using internal style sheet in my page and when I use indent option, the lines do get indented, but there is always double space between each line I am trying to indent.  

Besides, if the sentence goes to second line, the second line is not indented.  It flushes to the left while the first line is indented.

How do I fix this?
0
kaushalk
Asked:
kaushalk
  • 5
  • 4
1 Solution
 
COBOLdinosaurCommented:
How do I fix this?

You start by posting a link to the page or the code so we can see what you are doing wrong.

Cd&
0
 
kaushalkAuthor Commented:
Here is Terms of Use code and external style sheet as well
termsofuse.html
styles.css
0
 
COBOLdinosaurCommented:
text-indent is only supposed to add the indentation at the beginning of the element.  If you want the whole thing indented then us padding or use a list instead of a paragraph.  the line spacing is because it looks like the code is invalid.  

take the code to: http://validator.w3.org/ and validate it.  after you fix the errors it might be a little better.

Cd&
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kaushalkAuthor Commented:
this site is not online.  so I cannot check the page.

Any other option of fixing the issue?
0
 
COBOLdinosaurCommented:
The page does not have to be online.  You can enter the code with a cut and paste.

Cd&
0
 
kaushalkAuthor Commented:
what other tags can I use besides the P tag?  I believe my issue is that when I use the P tag to bold, underline or use other elements, it assumes a paragraph and creates extra line above and below the tag.
0
 
COBOLdinosaurCommented:
The p tag and any other block elements include a linefeed. If you do not want a line feed then use an inline element like a span.

Cd&
0
 
kaushalkAuthor Commented:
I have fixed the problem myself.  I shouldn't be using P tag for bold or underline a specific word(s).  I should be using HTML Reference guide to point me to basics to help me achieve what I was looking for.  In my case...

Underline = <u>...</u>
Bold= <b>...</b>

These are some basic HTML reference guide that I was seeking help on.  My html file had no error otherwise and needed no othe changes.

I have achieved what I was looking for.  Thanks for your suggestions but I found my own solution.
0
 
kaushalkAuthor Commented:
I have fixed the problem myself.  I shouldn't be using P tag for bold or underline a specific word(s).  I should be using HTML Reference guide to point me to basics to help me achieve what I was looking for.  In my case...

Underline = <u>...</u>
Bold= <b>...</b>

These are some basic HTML reference guide that I was seeking help on.  My html file had no error otherwise and needed no othe changes.

I have achieved what I was looking for.  Thanks for your suggestions but I found my own solution.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now