View Full Version : css disappears when previewed in browser
01-18-2008, 02:15 AM
i've successfully used css before, but for a new site, i used the spry menubar, which is working. then for the rest of the page, i added internal css styles. in dreamweaver, the styles look correct, theyre just blocks for different information, placed wherei want them. but when i preview in browser (i tried internet explorer and firefox), the internal css styles have no effect.
i then moved the internal style to external, so it was added to the spry menubar style sheet, and it still looks the same in dreamweaver, but has no effect when previewed in browser. the menubar styles work correctly, but the additional styles have no effect. any advice?
01-18-2008, 02:26 AM
This has to be a path problem...
Could you explain your workflow a little more? Exactly how do you go about viewing your site in FireFox?
When your seeing it work in Dreamweaver, I assume your using the Design Window?
Does DreamWeavers preview button work?
01-18-2008, 03:12 AM
well i shouldnt have even asked my question. after i asked, i thought i may have read something about using letters to name divs, or styles, or whatever. i had div#1, div#2, div#3, div#4 that werent working correctly. i changed the numbers to letters, so now its div#a, div#b, div#c, div#d, and now it works just fine. im not sure why that fixed the problem...but it fixed it alright
01-18-2008, 03:59 AM
i changed the numbers to letters, so now its div#a, div#b, div#c, div#d, and now it works just fine. im not sure why that fixed the problem...but it fixed it alright
This from the W3C.org (http://www.w3.org/TR/REC-CSS2/syndata.html#q4):
4.1.3 Characters and case
The following rules always hold:
All CSS style sheets are case-insensitive, except for parts that are not under the control of CSS. For example, the case-sensitivity of values of the HTML attributes "id" and "class", of font names, and of URIs lies outside the scope of this specification. Note in particular that element names are case-insensitive in HTML, but case-sensitive in XML.
In CSS2, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-); they cannot start with a hyphen or a digit. They can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F".
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.