# HTML Style Sheet weirdness ?

**URL:** <https://boards.straightdope.com/t/html-style-sheet-weirdness/578131>\
**Category:** Factual Questions\
**Created:** [April 12, 2011, 6:54pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131 "2011-04-12T18:54:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [April 12, 2011, 6:54pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/1 "2011-04-12T18:54:51Z")

</div>

Wouldn’t believe it if it wasn’t right in front of me.

I have a .css file that controls a default webpage. Everything works… Except the settings for input.

\<link rel=“Stylesheet” href=“Scripts/MainBlue1.css” type=“text/css” /\>  
input{  
text-transform: uppercase;  
font-size: 14px;  
}

Well, not exactly. If I browse using [http://localhost/test](http://localhost/test) it works. If I use [http://MACHINENAME/test](http://MACHINENAME/test) it does not. Even doing it from the localmacine itself. The font-size defaults down to about 8px. Everything else in the style sheet works as expected using either localhost or MACHINENAME.

Just the font-size for the input is weird.

The font is not set anywhere else but the input style above.

Any ideas?

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [April 12, 2011, 7:08pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/2 "2011-04-12T19:08:43Z")

</div>

Could your browser have an override? Is it a PHP site that calls another CSS file from hidden code using an absolute link?

Can you PM me the URL? Or if not, try “inspect element” using Chrome, which should tell you everything that’s affecting the field.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [April 12, 2011, 7:22pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/3 "2011-04-12T19:22:03Z")

</div>

It could be something as simple as your browser caching the old version of the stylesheet. What happens if you clear your cache or hold the shift key while reloading the page?

---

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [April 12, 2011, 7:37pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/4 "2011-04-12T19:37:50Z")

</div>

> [@jjimm](#):
>
> Could your browser have an override? Is it a PHP site that calls another CSS file from hidden code using an absolute link?
> 
> Can you PM me the URL? Or if not, try “inspect element” using Chrome, which should tell you everything that’s affecting the field.

It’s not PHP. It’s all [VB.net](http://VB.net) and jscript. There are not other .css files being called.

I’ve never used Chrome, the inspect element sounds interesting. I’ll try it, thanks  
Can’t give you the URL. This is all for internal use at the moment and is in our DMZ.

---

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [April 12, 2011, 7:39pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/5 "2011-04-12T19:39:14Z")

</div>

> [@friedo](#):
>
> It could be something as simple as your browser caching the old version of the stylesheet. What happens if you clear your cache or hold the shift key while reloading the page?

First thing I did. Same response. Works fine with localhost but not with MACHINENAME.

---

<div class="post-metadata">

**Author:** ![enipla](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@enipla](https://boards.straightdope.com/u/enipla)\
**Post date:** [April 12, 2011, 7:54pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/6 "2011-04-12T19:54:51Z")

</div>

Well now it’s working. Don’t know what did it though. I accessed it in both Chrome and Firefox and it was fine. Then tried IE and it’s OK now.

Really really strange. My boss tried it and it’s working on his machine now too. Both localhost and machinename. He didn’t clear his cache or anything. IE must have got scared when I loaded up Chrome 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [April 12, 2011, 7:58pm UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/7 "2011-04-12T19:58:05Z")

</div>

Sloooooooooow caching probably.

I have this problem with my ISS/SharePoint setup - 45 minutes to update non-standard elements some times, when everything else updates immediately, leaving a lot of the content in an inconsistent state. Really pisses me off but nothing I can do about it.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [April 14, 2011, 6:48am UTC](https://boards.straightdope.com/t/html-style-sheet-weirdness/578131/8 "2011-04-14T06:48:10Z")

</div>

I’ve had problems with Firefox not clearing the CSS cache unless I manually cleared everything. It turned out that cache was somewhat corrupted.
