there is no attribute "align"

  • mrcountry
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 24, 2008
  • Posts: 14
  • Status: Offline

Post March 16th, 2008, 8:03 pm

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 16th, 2008, 8:03 pm

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post March 16th, 2008, 8:07 pm

You need to put the "aling" in the CSS. ALIGN is not a valid way to do HTML...
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • mrcountry
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 24, 2008
  • Posts: 14
  • Status: Offline

Post March 16th, 2008, 8:11 pm

Im sorry but i dont understand
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post March 16th, 2008, 8:15 pm

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>
The Beer Monocle. Classy.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post March 16th, 2008, 10:06 pm

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.   >
Strong with this one, the sudo is.
  • dyfrin
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 10, 2006
  • Posts: 499
  • Loc: WI
  • Status: Offline

Post March 19th, 2008, 6:39 am

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

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 106 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.