Index: java/SwingComponents/src/net/oni2/swingcomponents/HTMLLinkLabel.java
===================================================================
--- java/SwingComponents/src/net/oni2/swingcomponents/HTMLLinkLabel.java	(revision 849)
+++ java/SwingComponents/src/net/oni2/swingcomponents/HTMLLinkLabel.java	(revision 880)
@@ -15,4 +15,5 @@
 import javax.swing.event.HyperlinkListener;
 import javax.swing.text.DefaultCaret;
+import javax.swing.text.html.CSS;
 import javax.swing.text.html.HTMLEditorKit;
 import javax.swing.text.html.StyleSheet;
@@ -39,9 +40,5 @@
 
 		setContentType("text/html");
-
-		HTMLEditorKit hek = (HTMLEditorKit) getEditorKit();
-		StyleSheet css = hek.getStyleSheet();
-		css.removeStyle("p");
-
+		
 		Font font = new JLabel().getFont();
 
@@ -80,4 +77,21 @@
 
 	/**
+	 * Add or reset a CSS attribute for styling the text
+	 * 
+	 * @param selector
+	 *            CSS selector
+	 * @param attribute
+	 *            CSS attribute
+	 * @param value
+	 *            Value
+	 */
+	public void setCssAttribute(String selector, CSS.Attribute attribute,
+			String value) {
+		HTMLEditorKit hek = (HTMLEditorKit) getEditorKit();
+		StyleSheet css = hek.getStyleSheet();
+		css.addRule(String.format("%s {%s: %s}", selector, attribute.toString(), value));
+	}
+
+	/**
 	 * Allow or forbid to set a non-null border
 	 * 
@@ -99,4 +113,6 @@
 	@Override
 	public void setText(String t) {
+		if (t.startsWith("<p>"))
+			t = t.replaceFirst("<p>", "<p style=\"margin-top: 0\">");
 		super.setText(prefix + t + suffix);
 	}
