Jump to content
Sign in to follow this  
kaseytraeger

Can't Seem To Fix This Css Validation Error

Recommended Posts

I'm receiving a funny error when I try to validate the CSS of my blog. Here's the error:

Errors

URI : http://www.doggydiaries.pudgypuppy.com/

 

    * Line: 80

 

      Property align doesn't exist : center

    * Line: 81

 

      Property align doesn't exist : center

 

I've scoured my code, and I can't see any place where I've used the "align" attribute. There are places where I've used text-align in a linked stylesheet, but those validate correctly.

 

I have a default MovableType calendar that is made from a table. Thinking it was the align="center" from the table that was causing problems, I completely removed the table from the code. I didn't just comment it out, I completely erased it, cleared my cache, resaved my file, rebuilt the file, and tested it again. I still get the same two errors.

 

I can't seem to find the problem anywhere.

 

Would someone please take a look at it for me to see if you can see anything where I might be going wrong? The page is located at http://www.doggydiaries.pudgypuppy.com/. On the left hand side, as you scroll down, I have coded a link to validate the CSS. That link is under the heading of "Extras"in the line that says "XHTML :: CSS :: 508 :: RSS"

 

Also, does anyone know if there's a "verbose" CSS validator out there that will tell you a little bit more about the error than just the error message? I know they are available for XHTML validation because I just got done validating my XHTML using a verbose validator.

 

Any help or insight is greatly appreciated. My eyes are getting googly on me!

 

P.S. -- Because I received the same error whether or not the calendar (and its associated table) were included in the page, I went ahead and put the calendar back into the page.

Share this post


Link to post
Share on other sites

REPLACE

><img src="http://www.pudgypuppy.com/doggydiaries/i/2004/06/jihadkids1.jpg" alt="Muslim children pretending to behead another child." style="align: center; border: 1px solid #000;" />
<br /><br /><br />
<img src="http://www.pudgypuppy.com/doggydiaries/i/2004/06/jihadkids2.jpg" alt="Muslim children playing at beheading another child." style="align: center; border: 1px solid #000;" />

 

WITH

><img src="http://www.pudgypuppy.com/doggydiaries/i/2004/06/jihadkids1.jpg" alt="Muslim children pretending to behead another child." style=" background-position:center; border:1px solid #000;" />
<br /><br /><br />
<img src="http://www.pudgypuppy.com/doggydiaries/i/2004/06/jihadkids2.jpg" alt="Muslim children playing at beheading another child." style=" background-position:center; border:1px solid #000;" />

Share this post


Link to post
Share on other sites

Or if you don't want to make the images background images, you can also remove the "align: center" from your "style" attribute and use <p align="center"> for the respective <p> tags.

 

Also...you might want to consider changing the validation links to open in a new browser window so that your site stays open.

 

Nice looking site!

Share this post


Link to post
Share on other sites

Thanks for catching that for me! I would have been looking for days to find that since I didn't remember using inline CSS in any of my posts.

 

Good eyes! :dance:

Share this post


Link to post
Share on other sites
Also...you might want to consider changing the validation links to open in a new browser window so that your site stays open.

 

Nice looking site!

Thanks for the compliment.

 

As for opening the CSS validation results in another page, I've often wondered about doing that. I know there's an ongoing debate about whether you should open links in the same window or a new window. I've heard it referred to as "breaking the 'back' button" if you open links in a new window.

 

Also, XHTML won't validate if you use <a href=" ... " target=" ... "> because 'target' is not an allowed property in XHTML.

Share this post


Link to post
Share on other sites

I see. Part of me agrees with you about the back button, however, I've gotten so used to closing windows that I almost always automatically go to hit the close box. Guess it doesn't matter since it won't work for you anyway!! :dance:

Share this post


Link to post
Share on other sites

The only "broken" back buttons I don't like is when I go from page to page to page and then land on another page, in my main browser, and the back button just leads me back to the same page. There is a trail and I can hit the arrow on the back button and see my trail of webs but they are trapping the back button.

 

New windows with fresh info are more in the "I appreciate it" realm because I don't have to navigate back to where I was when I'm done reading it.

 

... For what it's worth.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...