Results 1 to 2 of 2

Thread: CSS Class Works On Deve Machine, But Not On Server

  1. #1
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 09
    Location
    USA
    Posts
    3,823

    CSS Class Works On Deve Machine, But Not On Server

    I have a menu that has a menu CSS class.

    Code:
    <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false"
                        IncludeStyleBlock="false" Orientation="Horizontal">
    CSS Code:
    1. div.menu
    2. {
    3.     padding: 4px 0px 4px 8px;
    4. }
    5.  
    6. div.menu ul
    7. {
    8.     list-style: none;
    9.     margin: 0px;
    10.     padding: 0px;
    11.     width: auto;
    12. }
    13.  
    14. div.menu ul li a, div.menu ul li a:visited
    15. {
    16.     background-color: #0f243e;
    17.     border: 1px #4e667d solid;
    18.     color: #dde4ec;
    19.     display: block;
    20.     line-height: 1.35em;
    21.     padding: 4px 20px;
    22.     text-decoration: none;
    23.     white-space: nowrap;
    24. }
    25.  
    26. div.menu ul li a:hover
    27. {
    28.     background-color: #000000;
    29.     color: #ffffff;
    30.     text-decoration: none;
    31. }
    32.  
    33. div.menu ul li a:active
    34. {
    35.     background-color: #465c71;
    36.     color: #cfdbe6;
    37.     text-decoration: none;
    38. }

    On my development machine, I have no problems. It works great. But when I publish to my server, the CSS for only this class stops working. I have the same CSS for two sites and they've both stopped working.

    So this makes me think it's something wrong with the server. I've reset IIS and cleared the IIS temp logs. I went back and made sure that the published files' markup was all good.

    Anyone have any ideas?
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  2. #2
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,729

    Re: CSS Class Works On Deve Machine, But Not On Server

    Hello,

    Can you verify that you have also cleared out the Temporary Internet Files on the client as well. i.e. that you don't have some cached version of the CSS file being used.

    Gary

Posting Permissions

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