Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Margin and border
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

T00N
Super User

573 Posts

Posted - 12 Jul 2007 :  12:54:22  Show Profile  Visit T00N's Homepage  Reply with Quote
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?




s.dav
Site Admin

Italy
3364 Posts

Posted - 12 Jul 2007 :  15:43:52  Show Profile  Visit s.dav's Homepage  Reply with Quote
Just tested and for me it works ok, I set the border to 1 and the margin to 15.
It works exactly as you want

Regards, Davide
Go to Top of Page

T00N
Super User

573 Posts

Posted - 12 Jul 2007 :  16:43:13  Show Profile  Visit T00N's Homepage  Reply with Quote
Hmm,

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.

I'll make a screenshot to show what I mean.
Go to Top of Page

T00N
Super User

573 Posts

Posted - 12 Jul 2007 :  16:55:24  Show Profile  Visit T00N's Homepage  Reply with Quote
Here's the screenshot:

[img]http://www.madebytoon.nl/border.jpg[/img]

Edited by - T00N on 12 Jul 2007 16:57:03
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 13 Jul 2007 :  08:58:07  Show Profile  Visit s.dav's Homepage  Reply with Quote
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.

Regards, Davide
Go to Top of Page

T00N
Super User

573 Posts

Posted - 13 Jul 2007 :  11:34:26  Show Profile  Visit T00N's Homepage  Reply with Quote
I got it...

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?

thanks anyway
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 13 Jul 2007 :  14:10:48  Show Profile  Visit s.dav's Homepage  Reply with Quote
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 :-(

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000