When I use the validator, it says that
the align attribute on the div element is obsolete. Use CSS instead
What do I do to resolve this?
When I use the validator, it says that
the align attribute on the div element is obsolete. Use CSS instead
What do I do to resolve this?
Use style attribute. For example:
<div style="text-align:center"></div>
Do not use
<div align='left'>lefty</div>
Use
<div style='text-align:left'>lefty</div>
Add a text-align
declaration to a style block for .abcd
:
.abcd { text-align: left; }
or set the style of the div
itself locally:
<div class="abcd" style="text-align: left;">
Don't
1] <div align='left'></div>
Do
1] <div style="text-align:left"></div>
OR
2] .divClass { text-align: left; }
<div class="divClass"></div>
text-align ... is align of a text
align="center" all goes to the center..
so How can i put a div on center with css