XHTML Strict Support and CSS

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default XHTML Strict Support and CSS

    We are just starting to implement Contribute. Created a template with
    Dreamweaver with XHTML strict code as this is required for Contribute to close
    non closing tags like the <br />. I have an embedded .css for all the styles
    in the template. Doing this changed all my styles to which I had to redo so
    that the fonts would display properly. (the sizing is in ems) Now my problem
    is that the drop down styles being used in Contribute do not show properly.
    When we view the drop down styles the fonts show one size larger than what will
    be output to Contribute and the headings don't even show at all. H1, H2 etc.
    all show the same. It is almost like Contribute wants to manage its own style
    sizing. We would like the styles to view the same as what the client will
    output. The odd thing is that when I changed my template to be XHTML
    compliant, all my fonts got smaller which is why I had to redo the entire CSS
    file, and now Contribute shows the fonts like they would be if the document was
    not XHTML compliant.

    Any suggestions? This is the code in my template which was automatically
    generatead by Dreamweaver.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
    xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin
    template="/Templates/pchXhtml_e.dwt.cfm" codeOutsideHTMLIsLocked="false" -->

    kits Guest

  2. Similar Questions and Discussions

    1. Tables in strict XHTML
      Is it me, or... 1. Dreamweaver (I'm using ver. 8 trial) does not appear to generate table code that conforms to strict xhtml, even where I've...
    2. Problem with XHTML Strict
      I am building a website in XHTML and having problems with spacing. Firefox is rendering my paragraphs with greater line-height than I need. I messed...
    3. Will DW write XHTML Strict code?
      I would like to configure DW to write XHTML Strict code rather than transitional, is that possible?
    4. XHTML Strict support?
      Contribute 3 creates XHTML compliant element code, but Contribute has trouble creating character entities that are XHTML compliant. For example...
    5. Using strict references
      Hi, I am trying to write all of my code using strict to improve my code. However, the correct use of references for the following problem...
  3. #2

    Default Re: XHTML Strict Support and CSS

    >> Created a template with Dreamweaver with XHTML strict code as this is
    required for Contribute to close non closing tags like the <br />.

    Actually, strict is not required for Contribute to close tags. You can use
    XHTML transitional if you prefer. XHTML -itself- requires that all tags be
    closed. Using strict just means that you can not use any deprecated elements
    like <u> and expect it to still validate.
    >> I have an embedded .css for all the styles in the template. Doing this
    changed all my styles to which I had to redo so that the fonts would display
    properly. (the sizing is in ems)

    Not sure you mean by this, but using ems can cause problems if not handled
    with care, since they are relative to whatever size the browsers default is set
    to, and they are also relative to whatever size the parent element they are in
    as well.
    >> Now my problem is that the drop down styles being used in Contribute do not
    show properly. When we view the drop down styles the fonts show one size larger
    than what will be output to Contribute and the headings don't even show at all.
    H1, H2 etc. all show the same.

    How are you coding your CSS? Can we see some code or better yet, a URL? Are
    the headers showing up at all? If not, then you have them set to not be visible
    in the administration panel.
    >> We would like the styles to view the same as what the client will output.
    The odd thing is that when I changed my template to be XHTML compliant, all my
    fonts got smaller which is why I had to redo the entire CSS file

    Try changing your doctype to transitional and see if that helps at all. I've
    noticed that the styles menu will often display styles slightly larger than
    they appear in the edit view area but alas, it was never any reason for me to
    lose any sleep.

    mzanime.com Guest

  4. #3

    Default Re: XHTML Strict Support and CSS

    Hi kits,

    you are right, the Contribute style menu displays the different styles in a
    bit strange way. So does the respective menu in Dreamweaver. But as mzanime
    points out: I don't lose any sleep because of that.

    Of course I'd be happier with the menu not trying to display any style at all
    or with the complete styling including paddings, etc.

    Chefpraktikant Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139