kaushalk
asked on
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?
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?
ASKER
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&
take the code to: http://validator.w3.org/ and validate it. after you fix the errors it might be a little better.
Cd&
ASKER
this site is not online. so I cannot check the page.
Any other option of fixing the issue?
Any other option of fixing the issue?
The page does not have to be online. You can enter the code with a cut and paste.
Cd&
Cd&
ASKER
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.
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&
Cd&
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
You start by posting a link to the page or the code so we can see what you are doing wrong.
Cd&