CSS Styling has no effect in externally referenced file

Discussion in 'Web Design and Development' started by sbryan, Apr 2, 2009.

  1. sbryan macrumors member

    Joined:
    Jun 6, 2007
    #1
    Resolved.

    I'm running into a weird problem:

    When I style `<li>, <ul>, and <a>` elements within my PHP document, everything appears as it should. When I externally reference them, things go haywire.

    All other elements in the external file work, so the file is linked correctly.

    Any ideas?
     
  2. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #2
    Do you have a link or code so we can see exactly what is happening?
     
  3. sbryan thread starter macrumors member

    Joined:
    Jun 6, 2007
    #3
    See the bugger here

    Notice the link states and the ignored formatting rules for the `<li>` items
     
  4. Poirot818 macrumors regular

    Joined:
    Oct 26, 2008
    #4
  5. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #5
    They're defined as a class. And since he is using <span> tags with that class and not <ul> or <li> tags ...

    I don't see why it isn't working. :stumped:
     
  6. Poirot818 macrumors regular

    Joined:
    Oct 26, 2008
    #6
    Look at the "upcomingacts" div in the source code. There's an unordered list in there and I think that's what he's talking about. There are also no styles for that id either.
     
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    If I add,
    Code:
    #upcomingacts li {
     font-size: 2em;
    }
    to the CSS it certainly works. Are you sure you uploaded the CSS file after making changes? Otherwise you'll need to elaborate on what specifically is not working and what you're expecting.
     
  8. sbryan thread starter macrumors member

    Joined:
    Jun 6, 2007
    #8
    It was actually a server issue. For whatever reason, that CSS file wasn't being replaced with all of the other files.

    Thanks,
    Sean
     

Share This Page