Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Control the space between two bullet point lines Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Control the space between two bullet point lines" Watch "Control the space between two bullet point lines" New topic
Author

Control the space between two bullet point lines

S. Palanigounder
Ranch Hand

Joined: Apr 03, 2003
Posts: 145
How to control the distance between Coffee and Tea lines in the output in the example below:

<ul>
<li>Coffee</li>
<li>Tea</li>
</ul>
[ October 27, 2008: Message edited by: S. Palanigounder ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56543
    
  14

What have you tried so far? Hint: margin.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
S. Palanigounder
Ranch Hand

Joined: Apr 03, 2003
Posts: 145
[Not nice response removed.]
[ October 26, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56543
    
  14

Let's all just pretend that you did not post that. JavaRanch is a learning site, not an answer mill. People learn much more when they are guided through the discovery process on their own.

I pretty much gave you the answer already (cough, margin). All you need to do is to apply it.

And remember the #1 Ranch rule: Be nice!
[ October 26, 2008: Message edited by: Bear Bibeault ]
S. Palanigounder
Ranch Hand

Joined: Apr 03, 2003
Posts: 145
Let's all remember the rule: be nice.

What I'm looking for the way to set the style inline, not in css file.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56543
    
  14

Same answer: just use the style attribute rather than a CSS file or style section.

Just be aware that that's not considered a best practice, and that you'll need to put the style individually on each element.
[ October 27, 2008: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Control the space between two bullet point lines
 
Similar Threads
A List Occupying a Single Line
Best Practice for Listing Directory Names
Tooltip : help about menu with link
Embedding Lists in XHTML
Not achieving space between div blocks containing lists