Content Block and CSS
PermalinkI have a custom template with very precise CSS to get things where I want them to be.
When I inert a content block it breaks my design, I was hoping I could assign a CSS class to the block. Is this doable?
But it shouldn't override template styles.
I don't want to change how it works, I just want to
force a certain width. That's all, should be easy right.
Otherwise C5 doesn't fit the template, the template has
to fit C5 or not at all?
As @SuperNova mentions below, it would be really helpful to see the code you're referring to.
Thanks man! Your addon, and I didn't realize it was yours until just recently, worked a charm! Problem was default content block added a div wrapper and used it's own css; I had two options. One, change the CSS as mentioned by Supernova, or two create my own block with designer content addon.
I went with option two. Created a wysiwyg content block with no wrapper. Now I my layout seems to be fixed and I can edit it as desired!! wooo!
Now to test it to ensure it really is fixed. :0)
It would be easier if we could have a look at your site.
I'm not always the best with my words, or writing them :P
I guess I'm not describing what my problem is.
As suggested it is best to see it.
here you go:
*removed to prevent harvesting and caching before it's ready*
Prior to adding the code for a block the layout was
solid, I could add paragraphs, breaks, headings etc and
they wouldn't break the layout so easily.
I wasn't sure how to add a block without adding it via the code.
That's another topic I might open later on. I'll stick to the issue here.
If you're willing to have a look and advise me on how to best proceed I'd be grateful.
I'm online currently and checking the forum often.
I can at any time remove the block to show you the desired result.
I can then add the block to show you how it breaks.
Thank you
If you can send me a link to the page where this is happening, I can take a look. PM me or email me at concrete@jordanlev.com
If, on the other hand, you want to get extremely granular with which portions of content go inside which kind of tag, then you'll have better luck crafting your own custom block with the free Designer Content addon:
http://concrete5.org/marketplace/addons/designer-content...
Best of luck!
-Jordan