SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Apr 2004
    Location
    New York
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Body {Strange behavior} ?

    Hi,

    I'm suddenly experience strange behavior with my css file. Everything was going along fine, when suddenly my Body styles began dropping.

    I've tried building the file from scratch and everything is fine until I reach about line 60 and then the Body styles are no longer picked up.

    Any ideas?

    I'm using php/apache on windows.

    Thanks,

    Michael

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ummm....example/link?
    Aaron Brazell
    Technosailor



  3. #3
    SitePoint Member
    Join Date
    Apr 2004
    Location
    New York
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sketch
    Ummm....example/link?
    Here's the code. If I add another line to this I loose the Body style. - Thanks.

    body {
    font-family:Verdana, Arial,Helvetica;margin:0 0 0;
    scrollbar-3d-light-color:#c0c0c0;
    scrollbar-arrow-color:#c0c0c0;
    scrollbar-base-color:#c0c0c0;
    scrollbar-dark-shadow-color:#c0c0c0;
    scrollbar-face-color:#908373;
    scrollbar-highlight-color:#c0c0c0;
    scrollbar-shadow-color:#c0c0c0;
    }
    td {font-family:Arial, Verdana, Helvetica;font-size:12px;font-weight:normal;color:#000000;}
    .b {font-family:Arial, Verdana, Helvetica;font-size:12px;font-weight:bold;color:#000000;}
    .w {font-family:Arial, Verdana, Helvetica;font-size:12px;font-weight:normal;color:#ffffff;}
    .bw {font-family:Arial, Verdana, Helvetica;font-size:12px;font-weight:bold;color:#ffffff;}
    .s {font-family:Arial, Verdana, Helvetica;font-size:10px;font-weight:normal;color:#000000;}
    .red {font-family:Verdana, Arial, Helvetica;font-size:12px;font-weight:normal;color:#a20000;}
    .mn {font-family:Verdana, Helvetica;color:#000000;font-size:9px;font-weight:normal;text-decoration:none;}
    .unread_msg {font-weight : bold;}
    -- link --
    a:link, a:visited {color:#000000;text-decoration:none;}
    a:active {color:#000000;text-decoration:none;}
    a:hover {color:#000000;text-decoration:underline;}

    a.w:link, a.w:visited {color:#FFFFFF;text-decoration:none;}
    a.w:active {color:#FFFFFF;text-decoration:none;}
    a.w:hover {color:#FFFFFF;text-decoration:underline;}

    a.n:link, a.n:visited {color:#000000;font-weight:normal;text-decoration:none;}
    a.n:active {color:#000000;font-weight:normal;text-decoration:none;}
    a.n:hover {color:#333333;font-weight:normal;text-decoration:underline;}

    a.m:link, a.m:visited {font-family:Verdana, Helvetica;color:#000000;font-size:9px;font-weight:normal;text-decoration:none;}
    a.m:active {font-family:Verdana, Helvetica;color:#000000;font-size:9px;font-weight:normal;text-decoration:none;}
    a.m:hover {font-family:Verdana, Helvetica;color:#333333;font-size:9px;font-weight:normal;text-decoration:underline;}

    a.b:link, a.b:visited {color:#336699; font-family:Arial,Verdana,Helvetica;font-size:11px;font-weight:bold;text-decoration:none;}
    a.b:active {color:#336699;font-family:Arial,Verdana,Helvetica;font-size:11px;font-weight:bold;text-decoration:none;}
    a.b:hover {color:#2FACB0;font-family:Arial,Verdana,Helvetica;font-size:11px;font-weight:bold;text-decoration:underline;}

    a.paging:link, a.paging:visited {color:#000000; font-family:Arial,Verdana,Helvetica;font-size:10px;font-weight:normal;text-decoration:none;border:1px solid #ff6347;}
    a.paging:active {color:#000000;font-family:Arial,Verdana,Helvetica;font-size:10px;font-weight:normal;text-decoration:none;border:1px solid #ff6347;}
    a.paging:hover {color:#dcdcdc;font-family:Arial,Verdana,Helvetica;font-size:10px;font-weight:normal;text-decoration:none;background-color:#908373;border:1px solid #908373;}
    .pagingNav {color:#908373;font-family:Arial,Verdana,Helvetica;font-size:10px;font-weight:normal;text-decoration:none;border:1px solid #908373;}

    a.hgltLinks:link, a.hgltLinks:visited {color:#908373; font-family:Arial,Verdana,Helvetica;font-size:12px;font-weight:bold;text-decoration:none;}
    a.hgltLinks:active {color:#908373;font-family:Arial,Verdana,Helvetica;font-size:12px;font-weight:bold;text-decoration:none;}
    a.hgltLinks:hover {color:#dcdcdc;font-family:Arial,Verdana,Helvetica;font-size:12px;font-weight:bold;text-decoration:none;background-color:#908373;}




    -- form --
    input.text {font-family:Arial, Verdana, Helvetica;font-size:12px;font-weight:normal;color:#000000;}
    .profiles {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10pt;color: #AE1600;}

    .trs { background-color: #0FAFFC; }
    .trth { background-color: #A0DFFE; }
    .trtc { background-color: #EAF9FF; }
    .ptext { color: #57C7FD; }


    input, textarea, select{border:none; font: normal 10px Verdana, Arial, Helvetica, sans-serif;background-color:#dcdcdc;border:1px solid #eeeeee;}

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Could be anything from a typo to a missing closing div tag etc.

    If you can post an example/link as requested by Sketch then you are more likely to get a solution.

    Run your code through the w3c validator anyway to make sure there are no typos or missing tags first.

    Paul

  5. #5
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by equaltemp
    -- link --
    These lines may be an issue, should be /* link */

    Just looking for things which are odd witht he last one (as ones placed after it give you problems), I noticed that you have "select{border:" witout a space between the t and the {. That could be something else to eliminate too. I really can't see a problem as it stands with the CSS though.

    Douglas
    Last edited by DougBTX; May 28, 2004 at 13:32.
    Hello World

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    As doug pointed out above there should only be css in your file (or css comments) as shown above. This may cause browsers to choke.

    Running your css through the w3c css validator will pick this (and any other errors) and should be everybodies first port of call when something unexpected goes wrong

    Paul


Bookmarks

Posting Permissions

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