Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

style sheet question

 
cormac patterson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When setting up the various text styles in a style sheet, I use the *p class="name"* for the different regular text styles I want to use. The problem is that the paragraph tag automatically inserts a blank line. So if I want to put a short descriptive sentence on the next line immediately below a link, for example, there is a blank line inserted and then the sentence begins on the following line.
Does anyone have any suggestions for a different method than that will eliminate this extra blank line -- such as using the line break tag in regular html.
thanks
 
Manish Hatwalne
Ranch Hand
Posts: 2595
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just include display:inline; in the style tag of your class or <p> tag, that'll get rid of the extra blank line. Alternatively use <span> tag or something similar.

HTH,
- Manish
 
cormac patterson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU!!!
I could not find an answer to that anywhere.
take care,
cormac

Originally posted by Manish Hatwalne:
[B]Just include display:inline; in the style tag of your class or <p> tag, that'll get rid of the extra blank line. Alternatively use <span> tag or something similar.

HTH,
- Manish [/B]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic