Align to in HTML

1

I want to know if the way to align text of the link is as follows:

<a text-align="center" href=<%=rs("IDENTIDICACION")%> download=<%=rs("IDENTIDICACION")%>>TEST</a>

Because the word is not centered: test

    
asked by ARR 22.06.2018 в 18:30
source

4 answers

1

You can try with these styles:

a{
  text-align: center;
  display: inline-block;
  width: 100%;
}
<a href="" >TEST</a>

Or if you want them online:

<a href="" style="text-align: center; display: inline-block; width: 100%; ">TEST</a>
    
answered by 22.06.2018 / 19:06
source
0

you are using css syntax this would be the way to html:

text-align="center"//no
align="center"//si
    
answered by 22.06.2018 в 18:39
0

Try adding CSS ( text-align and margin ) as follows:

<a style="text-align:center; margin:auto;" href=<%=rs("IDENTIDICACION")%> download=<%=rs("IDENTIDICACION")%>>
     TEST
</a>
    
answered by 22.06.2018 в 19:22
0

try this way:

<p style="text-align:center;">
<a href=<%=rs("IDENTIDICACION")%> download=<%=rs("IDENTIDICACION")%>>TEST</a>
</p>
    
answered by 22.06.2018 в 19:31