Home Download Buy Blog Forum Support

Multiple Selectors Issue

Multiple Selectors Issue

Postby harshsingh on Sat Aug 24, 2013 11:13 am

Hello there,
I have installed a fresh copy of sublime text 2 and i also installed emmet for sublime text 2.
when i expand

div.class

it gives

<div class="class"></div>

which is correct

but when i try to use multiple selectors or selectors alone it gives the following result

.class #id remains as it is

expected output <div class="class"></div><div id="id"></div>

div.class#id gives

div.<class id="id"></class>

Please suggest a way so that i can fix this problem
harshsingh
 
Posts: 2
Joined: Sat Aug 24, 2013 11:06 am

Re: Multiple Selectors Issue

Postby iamntz on Sat Aug 24, 2013 11:20 am

Id's have higher precedence (just like on CSS). So foo#id.class should work.
iamntz
 
Posts: 918
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Multiple Selectors Issue

Postby harshsingh on Sat Aug 24, 2013 11:38 am

figured it out, i installed it with package control and its working now
harshsingh
 
Posts: 2
Joined: Sat Aug 24, 2013 11:06 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 22 guests