there is no attribute "align"

  • mrcountry
  • Novice
  • Novice
  • mrcountry
  • Posts: 19

Post 3+ Months Ago

Please someone help me with this issue

Line 64, Column 13: there is no attribute "align".
<p align="left" class="style3">Thank you for your interest in Country

Line 95, Column 12: there is no attribute "align".
<div align="center" class="style3">We are equipped to handle all phases of

I have searched and searched google and just cant find a fix
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

You need to put the "aling" in the CSS. ALIGN is not a valid way to do HTML...
  • mrcountry
  • Novice
  • Novice
  • mrcountry
  • Posts: 19

Post 3+ Months Ago

Im sorry but i dont understand
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6254
  • Loc: Seattle, WA

Post 3+ Months Ago

It depends on what DOCTYPE you're validating against, but "align" is a deprecated attribute in HTML, that is, it is no longer used.

You can achieve the same effect using CSS. Add the following to your style3 class:

Code: [ Select ]
align: left;


Alternatively, you can place the alignment style inline like so:

Code: [ Select ]
<div style="align:left;">blah blah blah</div>
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Switch from a strict, to a transitional DOCTYPE.

HTML Code: [ Select ]
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
  1. <!DOCTYPE html
  2.   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  4. >


HTML Code: [ Select ]
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
  1. <!DOCTYPE html
  2.   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
  4. >



align is a valid attribute in the transitional DOCTYPE.

HTML Code: [ Select ]
<!ENTITY % TextAlign "align (left|center|right|justify) #IMPLIED">
 
<!ELEMENT div %Flow;>  <!-- generic language/style container -->
<!ATTLIST div
  %attrs;
  %TextAlign;
  >
 
<!ELEMENT p %Inline;>
<!ATTLIST p
  %attrs;
  %TextAlign;
  >
  1. <!ENTITY % TextAlign "align (left|center|right|justify) #IMPLIED">
  2.  
  3. <!ELEMENT div %Flow;>  <!-- generic language/style container -->
  4. <!ATTLIST div
  5.   %attrs;
  6.   %TextAlign;
  7.   >
  8.  
  9. <!ELEMENT p %Inline;>
  10. <!ATTLIST p
  11.   %attrs;
  12.   %TextAlign;
  13.   >
  • dyfrin
  • Expert
  • Expert
  • User avatar
  • Posts: 503
  • Loc: WI

Post 3+ Months Ago

If you need to align=middle for a table instead of
<table align="center"> do <table style="margin: 0 auto;">

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 19 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.