When I use the validator, it says that
the align attribute on the div element is obsolete. Use CSS instead
What should I do to solve this problem?
Use a style attribute. For instance:
<div style="text-align:center"></div>
Add an ad text-alignto the style block for .abcd:
text-align
.abcd
.abcd { text-align: left; }
or locally set the style div:
div
<div class="abcd" style="text-align: left;">
Do not use
<div align='left'>lefty</div>
Using
<div style='text-align:left'>lefty</div>
Not
1] <div align='left'></div>
Do
1] <div style="text-align:left"></div>
OR
2] .divClass { text-align: left; } <div class="divClass"></div>
Source: https://habr.com/ru/post/1749155/More articles:git and local modifications - gitВ клиенте WCF Как добавить утверждение SAML 2.0 в заголовок SOAP? - soapincluding tk.h and tcl.h in the c program - cHow can I debug a Perl program that suddenly exits? - debuggingremoving a comma from a string array - javaSetting a custom url scheme in appengine using app.yaml? - pythonNetbeans: copy word where cursor / cursor is - netbeansWhy do I have a gwt dependency? - javaФормула популярности? (на основе "нравится", "комментарии", "мнения" ) - algorithmChange the position of a tree scroll down through PowerScript - powerbuilderAll Articles