DMXzone LESS CSS Compiler Support Product Page

Not a problem

LESS CSS Compiler generates incorrect CSS

Reported 23 Apr 2013 12:01:12
1
has this problem
23 Apr 2013 12:01:12 Robert Grimes posted:
LESS CSS Compiler generates incorrect CSS for the following

	background-image: URL("../logos/skipperLivebg.png");


and

h2  {
	    font-size: 24px;
	    margin: 10px 0pc 0px 10px;
            .centre {
                text-align: centre;
            }
	}


With the 1st the brackets are dropped and with the second a space is inserted between h2 and .centre.

Replies

Replied 23 Apr 2013 13:01:44
23 Apr 2013 13:01:44 Teodor Kuduschiev replied:
Hello,

The problem is not actually in the LESS CSS Compiler.
For the first case, please use "url" instead of "URL".
Your second rule is not right, it should be:

    h2  {  
            font-size: 24px;  
            margin: 10px 0pc 0px 10px;  
                &.centre {  
                    text-align: centre;  
                }  
        }  

Replied 23 Apr 2013 13:25:00
23 Apr 2013 13:25:00 Robert Grimes replied:
Sorry, just being stupid.
Replied 10 Aug 2023 09:15:35
10 Aug 2023 09:15:35 User  replied:
I adore that you informed me about this article since I think it's amazing. That is exactly what I was hoping to discover, and I sincerely hope you will continue to share such excellent stuff in the years to come. trap the cat

Reply to this topic