edit blocks look like crap but after saving the output looks fine
Permalink
Firstly, I'm new to concrete5.
While creating my first theme for a custom site, I made a small area of text into a block by adding:
$a = new Area('Main Content');
$a->display($c);
Before I added the content to it the block looks fine and says "Add to Main Content" while in edit mode, but then when I added some text to it, it looks fine when I save it but when in edit mode, the block becomes about 10x bigger in height and about 4x smaller in width.
It looks fine though when I save it, I just don't think my client will like going into edit mode and seeing how big the block is.
The block is a built in content block.
Is there a way to edit the size of the edit block? Or am I doing something wrong? How does the edit block get its style properties?
I did notice that the edit block has a property called custom-style="" but it's blank. Is there a way to add to that and will that affect anything?
Thanks
While creating my first theme for a custom site, I made a small area of text into a block by adding:
$a = new Area('Main Content');
$a->display($c);
Before I added the content to it the block looks fine and says "Add to Main Content" while in edit mode, but then when I added some text to it, it looks fine when I save it but when in edit mode, the block becomes about 10x bigger in height and about 4x smaller in width.
It looks fine though when I save it, I just don't think my client will like going into edit mode and seeing how big the block is.
The block is a built in content block.
Is there a way to edit the size of the edit block? Or am I doing something wrong? How does the edit block get its style properties?
I did notice that the edit block has a property called custom-style="" but it's blank. Is there a way to add to that and will that affect anything?
Thanks