twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
169.86k stars 78.72k forks source link

Oddities under ASP.NET VS2010 project #2934

Closed donjakobo closed 12 years ago

donjakobo commented 12 years ago

I'm just starting out development in .NET C# using VS2010 (so bear with me, this may be some kind of noobie mistake). However i've discovered issues with Chrome / Firefox rendered btn's.

Here is an example: Example Modal Box

Notice the buttons are stripped of their gradient, they become 1 single color, also some buttons get a left most edge which becomes missing, or broken.

Style Inspector view: Style view

I have NO other styles on the buttons, my best guess is that .NET is compiling to 'best suit' Chrome in some way that disables gradients? I'm really confused on this one, cannot find any attributes (using the chrome inspector) that would 'damage' the btn's.

Also notice from the screenshots, that the background gradient is showing as 'invalid property' (bottom of 2nd screenshot)

Ideas? Not sure what is going on here.. I have no other style sheets overlapping the buttons.

ghost commented 12 years ago

I know you said you don't have other styles on the buttons, but have you made any modifications to anything else, specifically in the LESS files? If so, have you tried downloading a fresh copy of a compiled Bootstrap to test?

As for the 'Invalid Property Value' listed in the inspector, those are unsupported, or vendor specific, styles. So there's nothing wrong with that part.

donjakobo commented 12 years ago

I'm not using LESS files, just included the CSS bootstrap, jQuery & js files (popover, modal, etc) I can try re-downloading the bootstrap css files, but I know for a fact I haven't touched them, just included them into the master page.

ghost commented 12 years ago

Interesting, I don't know anything about ASP.NET, but I don't see why it would strip out any CSS.

add1ct3dd commented 12 years ago

It shouldn't do and appears to be a problem your end!

I'm using bootstrap in two .net projects, one mvc and one normal, and neither have had any problems!

Do you have any additional style(sheet)s being loaded anywhere?

donjakobo commented 12 years ago

Its odd, I ended up pulling the bootstrap.min.css from a fresh download. C&P'ing into my original bootstrap folder, overwriting, (SVN didn't find a diff between the two). But now everything is working, I guess I will chalk that up to my inadequacies with .NET at present time. It really is strange, but closing.