SA-MP Forums Archive
[Off] HTML support - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Off] HTML support (/showthread.php?tid=638484)



[Off] HTML support - BrianFaria - 01.08.2017

Hello, I have a doubt, as center all the text with the complete logo? I can not, just focus the text.
Код HTML:
<p class="paragraph1"> Comprar <span class="glyphicon glyphicon-heart"></span></</center> </p>



Re: [Off] HTML support - Vince - 01.08.2017

Styling should be done with CSS exclusively. Also the <center> tag has been deprecated since forever. If you want to center the text within the element you use the text-align property. If you want to center the element itself then you use the "margin 0 auto" trick.


Re: [Off] HTML support - Xeon™ - 01.08.2017

You should use <style> tag for this. and text-align @Vince, but it only work with h1-h3 elements

just like this

PHP код:
<h3 class="paragraph1" style="text-align: center"Comprar <span class="glyphicon glyphicon-heart"></span> </h3



Re: [Off] HTML support - Dance94 - 01.08.2017

la etiqueta center no esta obsoleta, si estuviera obsoleta ya la hubieran removido, no necesariamente tienes que centrar algo con css para que funcione, tambiйn puede hacerse con la etiqueta <center> aunque no es recomendable, como han comentado anteriormente, puede ser con text-align.
PHP код:
text-aligncenter
Creo que tu idioma nativo es espaсol asi que te contesto en este idioma, si esta prohibido alguien me lo podrнa hacer saber.