How to add html class to $content -><div id="content">
i’m newbie
Thank you…
How to add html class to $content -><div id="content">
i’m newbie
Thank you…
I don’t where exactly you have that $content variable if you have Yii’s default app you already have a div#content wrapped arround you $content you can target it in you css, or you can just a add a div with div content
<div id="content">
<?php echo $content; ?>
</div>
<!-- content -->
OK, My problem
in main.php layout
<div id="content" class="span11">
<?php echo $content;?>
</div>
and it’s render to
<div id="content" class="span11">
<div id="content">
</div>
</div>
i want id="content" only one and has class="span11"
how to?
thank you.
Look in the column1.php and column2.php files - same directory as main.php.
main.php and either column1.php or column2.php are merged at runtime.