Tag Archives: css

What's the clojure equivalent of Nokogiri (for xml parsing with xpath and css selectors)

Questions: I’m looking for a Clojure equivalent of Nokogiri in Ruby. Specifically, I want to be able to traverse XML using CSS and XPath selectors. Answers: First a word of caution: currently, no native Clojure lib deals correctly with XML namespaces. To traverse and transform HTML and XML using CSS-like selectors there’s is Enlive (tutorial).… Read More »

Css, image and js not working in .htaccess file

Questions: my code is below , and my code is not able to fetch all css, js and images which is located in diffrent folders RewriteEngine On RewriteBase / RewriteCond ${REQUEST_URI} ^.+$ RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [NC] [OR] RewriteCond %{THE_REQUEST} \s/+product\.php\.css\?id=([^\s&]+) [NC] RewriteRule ^ product/%1? [R=301,L] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ -… Read More »

Problems importing To Excel a HTML file With Multiple Css Classes On Elements

Questions: Excel looks that it does not understand the HTML attribute ‘class’ if several CSS classes are pointed for HTML element. For example if “class=’A B’” pointed to tag ‘TD’ Excel will use empty style for the tag. I have these html code: <style type=”text/css”> TABLE.t1_table{ background-color:#828a3c; border:solid 1px #3A6EA5; padding-left:2px; padding-top:2px; padding-right:2px; padding-bottom:2px; font-style:italic;… Read More »

php-fpm apache2 403 error on .css .js files

Questions: I’m trying to setup an apache2 server on debian jessie with multiple vhosts. I want each one of them to have a different FastCgiExternalServer. I’m using the php version from php5-fpm package on jessie with default /etc/php5/fpm configuration files. Basic apache configuration is working fine : <VirtualHost *:80> ServerName lalala.org DocumentRoot “/path/to/app/www” <Directory “/path/to/app/www”>… Read More »

Css, image and js not working in .htaccess file

Questions: my code is below , and my code is not able to fetch all css, js and images which is located in diffrent folders RewriteEngine On RewriteBase / RewriteCond ${REQUEST_URI} ^.+$ RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [NC] [OR] RewriteCond %{THE_REQUEST} \s/+product\.php\.css\?id=([^\s&]+) [NC] RewriteRule ^ product/%1? [R=301,L] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ -… Read More »

Problems importing To Excel a HTML file With Multiple Css Classes On Elements

Questions: Excel looks that it does not understand the HTML attribute ‘class’ if several CSS classes are pointed for HTML element. For example if “class=’A B’” pointed to tag ‘TD’ Excel will use empty style for the tag. I have these html code: <style type=”text/css”> TABLE.t1_table{ background-color:#828a3c; border:solid 1px #3A6EA5; padding-left:2px; padding-top:2px; padding-right:2px; padding-bottom:2px; font-style:italic;… Read More »