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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS not appearing

    Hello,

    I am in the initial, very initial stages of creating coding for a website, but for some reason the CSS for my page will not link with the html page. It works fine in dreamweaver, and in the source code for the index.html the link to the stylesheet goes to the right directory.

    The website:
    http://www.enterpriseappraisal.com/test/index.html

    The CSS stylesheet:
    http://www.enterpriseappraisal.com/test/style.css

    I am assuming the host is fine because the old website on the same host links a stylesheet fine.
    Thank you for any help or insights.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,826 Times in 1,810 Posts
    Hello BrianMc,
    A typo in your CSS invalidates it.
    See the links about validation in my signature line.

    Error highlighted in red -
    Code:
    .style {body {  
        margin:0px; padding:0px;  
        background-color:#01436d;  
    }
    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 to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you that was driving me crazy, I ran the html page through the validator but not the css. Thank you once again.


  •  

    Posting Permissions

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