Click here to Skip to main content
15,887,341 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this code i use for my website:

<?php if ($slide1 != null ) : ?><li><img src="<?php echo $this->baseurl ?>
/<?
php echo htmlspecialchars($slide1); ?>" /><p class="caption">
<a href="/algemene-informatie"><?php echo ($slidedesc1); ?>Meer info</a></p></li>


The code isn't seperated as in the example. For some reason I doesn't display otherwise in this editor

Right now the entire thing is displayed as a button with the class "caption". I only want class "caption" to be aplied on "Meer info" and not to "$slidedesc1". How would I do that? Do I change the position of class?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900