SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: CSS Site check

  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Site check

    I did the backend for a site in work over a year ago using tables and since have converted it to a css layout. I've checked the new layout in Opera 7, Moz 1.3.1, Firebird 0.6 and Opera 7 and it appears fine but would appreciate others checking. Let me know of any gliches and if you can (knowing your chosen browser) how I can fix them [img]images/smilies/smile.gif[/img]

    Thanks

    tables site - http://www2.dfpni.gov.uk/index-old.asp
    css site - http://www2.dfpni.gov.uk/
    Last edited by Daz; Oct 6, 2003 at 06:53.

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks fine in IE6. Sub-menu at the top is now centred. I assume this is part of the slight re-design.

    Completely screws up in NN4.7 (what a surprise!) but what the hell. Everything always did! Still, if you can be bothered, it should be possible to make it degrade gracefully.

    Fine in Netscape 6, BTW.

    And Lynx thinks it's great. So your text-only PDAs are covered...

  3. #3
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Greg, I forgot to mention there's a slight redesign due to the implementation of the new corporate logo. I suspected NS4.7 would not be able to cope with it so I need to serve it up a different stylesheet. What's the best method?

  4. #4
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No probs. I've never really used @import before so I couldn't tell you. I know what it does, but that's about it!

  5. #5
    Forensic SEO Consultant Webnauts's Avatar
    Join Date
    Jun 2003
    Location
    European Union
    Posts
    1,488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Daz here are some errors and other issues in your code, which may cause browser compatibility and other problems:

    Line 63: The "img" tag must be closed by adding a slash to the end of the tag (<img ... />) or by a separate end tag (</img>).

    Lines 71 and 114: The "id" or "name" attribute value "content" has already been used in this document. A tag's "id" or "name" value ("name" only for certain elements such as "a") must be unique within the document. A tag cannot have an "id" or, with certain elements, a "name" attribute value that has already been used. Note that the "id" values are not case sensitive (except when used to link to an anchor) and that "id" and some "name" attribute values share the same namespace.

    Line 95: An invalid entity was found in the value for the "href" attribute. Often this is because the ampersand character was not properly encoded as the entity "&amp;". Example 1: href="script.cgi?var1=value&var2=value" should be href="script.cgi?var1=value&amp;var2=value", example 2: alt="For him & her" should be alt="For him &amp; her". Note that the ampersand in the values was encoded as "&amp;".

    Lines 122 and 155: Found the character '>' in a '<!--' comment. Comments beginning with '<!--' must end with '-->', not '>'. If '>' indicates the end of the comment, this is an error, otherwise it is not, but it may be dangerous with some browsers to use the character '>' in a strict comment.

    I hope this info would be useful for you.

  6. #6
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daz
    I suspected NS4.7 would not be able to cope with it so I need to serve it up a different stylesheet. What's the best method?
    I find the best method to use a normal link element which gets a basic stylesheet that imports the advanced stylesheet, like this.

  7. #7
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the color choices for the links need to be rethought, immediately. They have contrasting hues that make them very hard to look at, IMO.

    Read the bottom of this page, about text and background colors
    http://www.webwhirlers.com/colors/combining.asp

    Otherwise, everything looks fine. Good job!
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  8. #8
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Color choices? You've got blank underlined text links on a white background and elsewhere the links are white on a green background which is the corporate color and cannot be changed. What colors are you finding a problem with?

    Thanks yngwin for that tip

  9. #9
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I mean the when you hover over the links in the blue bar -- red text on blue background. Doesn't that look harsh to you? I get a chrominance wobble from that...

    It's generally a no-no to use a text and background color that differ only in hue -- meaning their brigthness and chromacity are the same. This just makes them plain hard to read, not to mention impossible for those with red-blue color blindness.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  10. #10
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thanks, that was a useful link you posted too, I'll make some changes!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •