Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick Collings 6 posts 26 karma points
    Apr 12, 2010 @ 15:25
    Nick Collings
    0

    Markup Validation of Contour forms

    Hi,

    Ive been adding Contour forms in both the Richtext editor and the template and both are causing markup validation errors. The problem is the default stylesheet for the form is included in the embed as follows:

    <link href="/umbraco/plugins/umbracoContour/css/defaultform.css" rel="stylesheet" type="text/css" />

    Since the embed is always going to be in the <body> tag and you can't have <link> tags anywhere else except within the <head> tag this will always be invalid. I've been checking it using the W3C Validator (http://validator.w3.org/) and the markup is XHTML 1.0 Strict.

    Does anyone know if I can fix this?

    Thanks, Nick

    Umbraco 4.0.3, Contour 1.0.7, ASP.NET 3.5, Windows XP SP3, IIS 5.1

  • Comment author was deleted

    Apr 12, 2010 @ 21:32

    Hi Nick,

    If you add a runat="server" to your head then it will be aded there.

    Or you can disable the stylesheet from being added automaticly (form properties) and add it yourself

  • Nick Collings 6 posts 26 karma points
    Apr 13, 2010 @ 14:23
    Nick Collings
    0

    Perfect thanks Tim,

    runat="server" in the <head> worked a treat.

Please Sign in or register to post replies

Write your reply to:

Draft