Hi there
I'm having a really strange problem with Dreamweaver CS5.5
I'm currently in the process of building a CMS for a client and I am experience slow down in Dreamwever when opening and closing certain pages, it also causes slow down/hanging when opening and minimising Dreamweaver itself if these certain pages are open at the time. Which starts to get very annoying when you're swapping between Photoshop and Dreamweaver all the time...
I narrowed it down to a CSS file causing the slow down/hanging. This being the main stylesheet for the CMS... admin.css
When I comment out the CSS file Dreamweaver minimises and maximises quickly, and the page in question opens fast.
The stylesheet is about 900 lines long at the moment, but I've got php and javascript files (and also other CSS files) which are much longer and none of them cause slow down/hanging.
I've looked myself but from what I can see all of the CSS is valid.
Any ideas guys?
Thanks in advance ![]()
Hi Jon
https://docs.google.com/open?id=0B41CeVoQms8AWTd3NmdpdE4wUm8
There you go.
I'm sorry about how messy it is, was trying an experiment to combine the HTML5 Boilerplate and the 960 Design system.
I do plan to do some housekeeping on the stylesheet fairly soon... haha
Wow, there is a lot going on in there. I'll see if I can see anything weird, but so far, it's acting the way it should here.
Out of curiosity, have you tried replacing the file with a new copy to rule out file corruption?
Copying everything and pasting it into a new .css file (admin2.css) then deleting admin.css and renaming admin2.css to admin.css will get rid of any corruption that could be in your local file.
I know, it's quite a mess.
I was work with a designer (me being the developer) who really likes using the 960 system, whereas I just like using the HTML boilerplate and making my own styles etc. We tried combining the two and by the look of it we may have caused ourselves a lot more grief...
I'll try making a new file now...
I'm not seeing any issue anywhere that throws up the big red flag for me.
I'm not sure if it will make a difference, but have you tried removing all empty and/or unused references from the css?
Maybe DW is getting hung up on trying to figure out where all of it goes, even though it's not using it and shouldn't care.
I can't explain this at all, but I've solved it.
I changed the style below:
@media only screen and (min-width: 35em) {
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
/* Clear Floated Elements + Fix */
.clear {clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0;}
.clearfix:before,.clearfix:after{content: '.'; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0;}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;}
/*END DONT CHANGE*/
}
To this:
@media only screen and (min-width: 35em) {
}
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
/* Clear Floated Elements + Fix */
.clear {clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0;}
.clearfix:before,.clearfix:after{content: '.'; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0;}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;}
/*END DONT CHANGE*/
Moved it outside of the media query. It was put there by mistake by the looks of it.
Weird, I forgot to even mention the CSS validator here: http://jigsaw.w3.org/css-validator/
You do have a couple other little errors in there that may cause issues for you down the road.
North America
Europe, Middle East and Africa
Asia Pacific