I like to make a text label with a 1 pt border. No problem now there's no space between the txt and the border. Something like: |here starts the text. I want it to be like: | here starts the text
So I changed the margin but that doesn't help because then the margin is applied to the border as well.
I know I can make a empty grapcial rectangle and use it as a border but that's not what I want.
Anybode any idea if it's possible with just a text label?
it doesn't work for me. I can the margin for a text label and then the text area is smaller than the label size. So far so good.
Now when I apply a border I want it to be at the outside of the original text label. So there's a margin between border and text. That doesn't work because it sets the margin to the border as well so theborder is still next to the text.
Finally I understood your problem... You aren't using a text label (as you wrote in the picture above) but a graphical label... Try to use a text label instead.
When I make a text label the border option is greyed out. Only when I give the label a background colour the border option is active and the it works like you said.
Why is the border option not available when the label has a transparent background?
The explanation is quite simple; in order to make the border I used a table because it was the most compatible method, a table with a background color equal to the border color with cellspacing 1 and with the cell/s background color equal to the background color of the object. Using a style "border:1px color solid" was not compatible and actually doesn't work in the same manner with every browser. So there aren't other methods except this :-(