开发者

CSS rule mysteriously vanishes [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 9 years ago.

Improve this question

In this page, I have the following rule in ui.css:

.cfl #home-columns .col li:last-child {
    position: absolute;
    bottom: 0px;
}

It's supposed to move the "more" link at the bottom of each of the four columns to the bottom of the shared container.

The problem is that the rule is being discarded by browsers. If you look at the live CSS through Firebug (or Chrome's dev tools, or IE's, or Opera's Dragonfly), the rule just isn't there. Yet if I enter the exact same rule directly in Firebug, it works fine.

I ran the CSS file through the W3C validator (results) and with the exception of a bunch of vendor-prefixed properties, everything checks out.

Color me puzzled. What am I missing?

EDIT:

At @Jason Gennaro's suggestion, I tried putting it in a different CSS file and loading that. It works fine when I put it in another CSS file. There's just something weird going on with ui.css. So, I could fix my problem by adding yet another stylesheet. I'd really rather avoid that, though, since the site already has fourteen CSS files, which is moderately ridiculous.

EDIT 2:

CSS rule mysteriously vanishes [closed]

Here's a screenshot of the various states, showing the file as viewed directly in a browser, the CSS as shown in Chrome's live developer tools view, and the file as downloaded via wget from an off-site (non-web-server) linux box.

EDIT 3:

The problem was that a load balancer had a cached copy of the stylesheet for HTTPS only. So the fix is to get the stupid load balancer fixed.开发者_StackOverflow中文版


I don't see ui.css loaded anywhere. Are you sure you're loading the file?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜