I have written a content of a page. It has a couple of <P>s and <DIV>s.
Now I want the whole written content pack in one DIV with a special class - to give a background, or to change the width, position, font, font-color etc.
What happens? Each <P>, <DIV> takes the class.
Is there a way - other than make this only manually in source code - to do it only by highliting the content and assign a class to the highlighted content?
I wnat to use it with onepage plugin so that each page would have the same height and an individual background scrolling always the whole screen.
With a simple HTML template file (without cmsimple scripting) it works.
Code: Select all
<div class="content">
<div class="page-1">
CONTENT 1
</div>
<div class="page-2">
CONTENT 2
</div>
<div class="page-3">
CONTENT 3
</div>
<div class="page-4">
CONTENT 4
</div>
</div>
Code: Select all
<div class="content">
<?php echo onepage_content();?>
</div>