How to break a line inside a link in CakePHP

0

I know it's not right but I have a situation where I needed to do a line break within the link as attached image.

IwouldliketoworkwiththeCakepatternbutIhadtodothelinebreakthroughHTML.

HowdoIdothisforCake?

<navclass="columns" id="actions-sidebar">
    <ul class="side-nav">
        <li><a href="#DadosPrincipais">> Dados Básicos<br>
            > Telefones<br>
            > Qualificação<br>
            > Residência<br>
            > Cônjuge</a></li>
        <li><a href="#TrabalhoRendimento">> Trabalho<br>
        > Rendimentos</a></li>
        <li><?= $this->Html->link('> '.'Referências','#Referencia', ['style' => $matriculaButton]) ?></li>
        <li><?= $this->Html->link('> '.'Comprovantes','#Comprovante', ['style' => $matriculaButton]) ?></li>
    </ul>
</nav>
    
asked by anonymous 04.12.2017 / 14:34

2 answers

0

It worked by putting 'scape' = > false. That way the Cake link will accept the html.

<li><?= $this->Html->link('> Dados Básicos  <br> > Telefones <br> > Qualificação <br> > Residência <br> > Cônjuge', '#DadosPrincipais', ['escape'=>false,  'style' => $matriculaButton]); ?></li>
    
06.12.2017 / 16:08
0

I do not work with cake.

But I believe you can put a class in the link. ex: class="link-block".

If yes, you do this and put it as a block.

.link-block { display: block } .

In your css.

    
05.12.2017 / 02:54