Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Issues related to previewing and publishing your web site.
Post Reply
jackhsu0104
 
 
Posts: 6
Joined: Thu Dec 13, 2018 2:30 am

Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Post by jackhsu0104 » Sun Dec 16, 2018 3:41 am

as Title ,

Insert image does not generate style "position:xxx", which is correct.

User avatar
Pablo
 
Posts: 17332
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Post by Pablo » Sun Dec 16, 2018 9:06 am

Margin seem to work correct for the shape.
Can you please provide more details?

jackhsu0104
 
 
Posts: 6
Joined: Thu Dec 13, 2018 2:30 am

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Post by jackhsu0104 » Sun Dec 16, 2018 3:08 pm

sorry, I did the test again. only negative value cannot work. If I assign margin top to -50, margin is not work.
and negate value is work for image, so I compared the generate codes for these two object. the only difference is Shape generate "position:relative" in its style property.
to fix this, I need to add custom style "position:absolute" .

User avatar
Pablo
 
Posts: 17332
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Post by Pablo » Sun Dec 16, 2018 3:41 pm

I'm sorry, negative margins are currently not supported.

jackhsu0104
 
 
Posts: 6
Joined: Thu Dec 13, 2018 2:30 am

Re: Insert SHAPE in LayerGrid grnerate style "position:relative" which makes margin not function

Post by jackhsu0104 » Tue Dec 18, 2018 12:51 am

OK,
thanks for your reply.

Post Reply