I need help trying to convert this LESS nested CSS to standard CSS. Can anybody help?
.leftNav {
a.TopLevel {
float:none;
}
ul#topnav {
Check Convert Less to CSS with Simpless
SimpLESS is your easy-to-use LESS CSS compiler.
Hopefully it will help you a lot..
you can also use lessphp or less.js.
Pekka is right. If you have a LESS style(s) (*.less file), it is also thought that you have a LESS-parser (original ruby gem or one of the PHP-Classes or even the less.js JavaScript lib) and its primary purpose is to parse (convert) LESS to CSS.
UPDATE
There're many other tools...for Mac, for Win and Multi
This is the easiest way to use Less:
In index.php link to those file:
<link rel="stylesheet" href="style.css">
<link rel="stylesheet/less" type="text/css" href="style.less">
Notice that to link to less you should end the rel=""
with /less
:
rel="stylesheet/less".
download http://winless.org/
using firebug, in the CSS tab, you can see what is the generated result in css using LESS.
You could use LessJS Converter
The whole point of LESS is that you write the LESS-style CSS, and the LESS interpreter converts it to normal CSS.
So just run your LESS code through LESS, and you'll get the equivalent normal CSS.
Simple.