Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorn00ge
    • CommentTimeJan 11th 2006
     permalink
    I'm working on a project and am having a tough time getting a webpage to render correctly in Dreamweaver MX. I am forced to use this version because of the client we are working with. It's a XHTML+CSS site and renders fine in IE, Opera, Firefox, and Safari, but looks like crap in Dreamweaver MX. I have templates set up for the client to edit the pages, but because of the way it renders, it is tough for them to do any edits. Is there a way, either through html, CSS, or some sort of special commenting to hide certain areas from the display in Dreamweaver MX? This is really important as I'm nearing the end of the project and need to show the client how to manage the site.
    • CommentAuthordhjapan
    • CommentTimeJan 11th 2006
     permalink
    Hello,
    I don't know about some css hack for dreamweaver but maybe you could use some php or asp includes so that your client will only see the editable part of the page when he'll need to.
  1.  permalink
    Dreamweaver MX is horrible when it comes to rendering CSS in their preview pane. Encourage your client to preview edits in a browser and close the preview panel.
  2.  permalink
    There are no CSS or HTML "hacks" that will fix the rendering engine in Dreamweaver.

    I suppose you could teach them the basis or create a CMS for them.
    • CommentAuthorn00ge
    • CommentTimeJan 11th 2006
     permalink
    I wish I could have the client upgrade, however, it's a college. It would be tough for them to upgrade the entire campus.

    Also, I'm not looking for hacks to fix the rendering. I would prefer to just set certain elements to "display:none" just for Dreamweaver.
    • CommentAuthoradmin
    • CommentTimeJan 11th 2006
     permalink
    Dreamweaver has something called "design time" where you can attach a stylesheet to a page when in editing mode (preview).

    Look it up.
    • CommentAuthorn00ge
    • CommentTimeJan 11th 2006
     permalink
    Ok, I've done some testing and I have finally found a way to hack CSS for Dreamweaver. By using @import url("dmx_hacks.css"); in a 'media="screen"' css file, you can put css hacks for dreamweaver in the "dmx_hacks.css" file. The main css file takes precedance over the dmx_hacks.css file in browsers. In Dreamweaver, the dmx_hacks.css file takes precedance. Just to be safe, I have included the star hack for IE, and the Mac-IE backslash hack. That way, even if some other browser renders like Dreamweaver, it won't have the applied styles because of the * html hack.

    I'm still working on some minor adjustments before I post, so it isn't live yet. But it will be soon, if anybody is interested in viewing the code.

    Also, it seems that DMX in NO WAY can hide elements through display:none or visibility:hidden; That kind of sucks, so I just adjusted height and width properties and used position:absolute to throw the elements off to the side of the screen.
    • CommentAuthorn00ge
    • CommentTimeJan 11th 2006
     permalink
    Actually, for whoever is interested, here is an even better hack for Dreamweaver MX:

    /* commented backslash hack v2 \*/
    * html div>div { }
    /* end hack */
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 12th 2006 edited
     permalink
    This is horrible. Tell your client to preview in the browser, not use WYSIWYG. A dreamweaver extension that replaces the design view with a browser like TopStyle does would be nice. If you find one, let us know.
    • CommentAuthorArun
    • CommentTimeJan 13th 2006
     permalink
    U can use Microsoft Front page for your purpose. Or adobe Golive.
    here u can view code and get result in the same tool..
  3.  permalink
    Arun - I think you're referring to the preview panel which Dreamweaver has... the discussion revolves around the fact that Dreamweaver's preview pane renders CSS similarly to IE 4.

    If anyone if considering buying a WYSIWYG HTML editor avoid MS Frontpage like the plague. The code it generates is atrocious. I haven't used Adobe GoLive for quite some time, but that wasn't creating very clean code either.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 13th 2006
     permalink
Add your comments
    Username Password
  • Format comments as (Help)