I want to delete the first word from my <li>
only if the text overflows from it.
Any ideas?
Here is my code.
<div class="box-heading box-sections box-block">
<div class="nav">
<ul id="menu">
<?php foreach ($products as $product){ ?>
<li><a href="#Section<?php echo $product['product_id']; ?>"><?php echo $product['name']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
I want my <li>
to show ANIMALS, CARS, CITYSCAPE and delete "CUSTOM" from it.