aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes style sheet question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "style sheet question" Watch "style sheet question" New topic
Author

style sheet question

cormac patterson
Greenhorn

Joined: Nov 02, 2001
Posts: 4
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

Joined: Sep 22, 2001
Posts: 2573

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

Joined: Nov 02, 2001
Posts: 4
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]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: style sheet question
 
Similar Threads
how to add HR tag between rows when using datatable???
set font for textarea
What are the available binding styles for webservice
Printing problem....help
Netscape and Overflow Property