Nested div styles

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
dcleal
New Member
New Member
Posts: 9
Joined: Sat Apr 07, 2007 5:10 pm

Nested div styles

Post by dcleal »

I'm trying to convert an existing site to be a CMS template.

Each of the headings in the existing site is done like this:

Heading text

But, as far as I can see, editors using WYSIWYG can only assign one wrapping div to a line of text in the editor.

My current workaround is to assign the content block to a variable at the top of the template and execute some php with a regexp replace to add in the extra div where it's required. But the editors don't get an accurate WYSIWYG presentation, plus this seems a little heavyweight. Is there another way to do this?

- Dave

PS. Why two divs? The outer one puts a boundary the full width of the container, and the inner one puts a coloured and bordered box around just the heading text.
eddie67
Forum Members
Forum Members
Posts: 40
Joined: Tue Feb 05, 2008 6:31 am

Re: Nested div styles

Post by eddie67 »

A liitle bit difficult to answer without being able to see the layout I think.

But if the outer is the full width then all the {content} should be in the full width, no?

In that case the outer can be put in the template itself


{content}


.. and the other you can use in the wysiwyg to get your box..

Maybe.

Eddie.
Post Reply

Return to “Layout and Design (CSS & HTML)”