Tag Archives: css

css style sheet not working when not inline

Questions: So I am trying to apply a currency format to an HTML table so that when I open it in excel it has currency formatting. Now when I do this inline, it works fine, like so: <td style=”mso-number-format:$\##\,\##\##0\.00″>=(sum(n4:n50))</td> however, I have to do this to a couple of fields, so I would like to… Read More »

By default, JSF generates unusable ids, which are incompatible with css part of web standards

Questions: Can someone who is an active JSF (or Primefaces) user explain why by default this happens why nobody is doing anything about it: <p:commandLink id=”baz” update=”:foo:boop” value=”Example” /> Which generates markup that cannot be used in JavaScript or CSS without hacks and should generally be considered invalid: <a href=”javascript:void(0);” id=”:foo:bar:baz”>Example</a> The id=”:bar:baz:foo” attribute here… Read More »

Using CSS in Laravel views?

Questions: I’ve just began learning Laravel, and can do the basics of a controller and routing. My OS is Mac OS X Lion, and it’s on a MAMP server. My code from routes.php: Route::get(‘/’, function() { return View::make(‘home.index’); }); Route::get(‘businesses’, function() { return View::make(‘businesses.index’); }); Route::get(‘testing’, function() { return View::make(‘testing.index’); }); Route::get(‘hello’, function() { return… Read More »

Yii2 disable Bootstrap Js, JQuery and CSS

Questions: Same as title, i don’t want using bootstrap.css and bootstrap.js. I try using: ‘assetManager’ => [ ‘bundles’ => [ ‘yii\bootstrap\BootstrapAsset’ => [ ‘css’ => [], ], ], ], It remove bootstrap.css but can’t remove bootstrap.js. Somebody can help me? Answers: In web.php config file add the following code into components array: ‘assetManager’ => [… Read More »

Symfony2 – Assetic – css font icons

Questions: How to include css font icon libraries istalled via composer in /vendor dir (fontawesome for example). Include: {% stylesheets filter=’cssrewrite’ ‘%kernel.root_dir%/../vendor/fortawesome/font-awesome/css/font-awesome.min.css’ %} <link href=”{{ asset_url }}” type=”text/css” rel=”stylesheet”/> {% endstylesheets %} But it does’t rewrite font files url, it stays same, and icons wont load: src: url(‘../fonts/fontawesome-webfont.eot?v=4.0.3′); I know, we can’t make urls poined… Read More »

Preventing Caching of CSS Files

Questions: I am developing a simple website using PHP. Development Configuration : WAMP Production Configuration : LAMP While testing, I changed my CSS file, but when I reload the page my browser(not sure) still uses the old cached css. I did some googling and found different solutions that I have already tried Appending a query… Read More »

How to Auto-Resize a DIV with CSS while keeping Aspect Ratio?

Questions: What I have is a standard form in HTML that allows the user to select a “Width” option and a “Height” option (each with values ranging from 1 to 10). When they send the form, it sends it to a PHP/HTML page where PHP grabs the “Width” and “Height” variables and assigns it to… Read More »