Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    css disappears when previewed in browser

    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?

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello ratareina,
    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?
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    problem solved (too easy)

    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

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by ratareina View Post
    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
    Good catch!
    This from the W3C.org:
    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".
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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