By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

Quick Question regarding error

P: 5
For some reason, the text and images on my website are not showing up correctly. My web designer is unavailable until next week, but I need to get this fixed today. I am sure its an easy fix, but I need a little guidance. I know a little about web design, so if you make a suggestion, I can make the neccesary changes.

I have provided the website address below, rather than copying the code within this post.

http://www.thurberhistoricalassociation.com

Thanks!
Mar 29 '07 #1
Share this Question
Share on Google+
5 Replies


P: 5
The problem doesnt occur in Firefox, but it does in Internet Explorer.
Mar 29 '07 #2

P: 5
When I try to validate the XHTML, I am provided with this information. Do you think this is the reason my website looks the way it does?

www.thurberhistoricalassociation.com
__________________________________________________ __
This page is not Valid XHTML 1.1!
Below are the results of checking this document for XML well-formedness and validity.

Error Line 36 column 14: there is no attribute "align".
<div align="center">You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.



Error Line 54 column 139: required attribute "alt" not specified.
...="special1" style="padding-top:5px;"/> There have been reams of paper writtenThe attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
__________________________________________________ __
Mar 29 '07 #3

KevinADC
Expert 2.5K+
P: 4,059
The problem appears to be the syle sheet. But I don't know what specifically. The site is usable with IE so hopefully when the designer gets back he can fix the alignment issues. Site looks good by the way.
Mar 29 '07 #4

KevinADC
Expert 2.5K+
P: 4,059
I would recommend using "text-align: justify" for the main content div, it would make the site look even cleaner visually. Pass that along to the designer.
Mar 29 '07 #5

Expert 100+
P: 1,892
When I try to validate the XHTML, I am provided with this information. Do you think this is the reason my website looks the way it does?

www.thurberhistoricalassociation.com
__________________________________________________ __
This page is not Valid XHTML 1.1!
Below are the results of checking this document for XML well-formedness and validity.

Error Line 36 column 14: there is no attribute "align".
<div align="center">You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.



Error Line 54 column 139: required attribute "alt" not specified.
...="special1" style="padding-top:5px;"/> There have been reams of paper writtenThe attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
__________________________________________________ __
Div align="center" isn't valid try <div style="text-align: center" to center things in the div if you are trying to align the div itself wrap another div around it or add margin-left: auto;margin-right: auto that should center everything.
Mar 30 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.