Auto complete with linked CSS files

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
kybos
Posts: 21
Joined: Fri Jun 01, 2007 10:12 pm

Auto complete with linked CSS files

Post by kybos »

Hi,

in the new version of the tools there is the possibility to get auto complete for linked CSS files in HTML documents.
I have two linked CSS files in the header but only the objects from the first one appear in the auto complete window.
Is this meant to work this way or an error?

Thanks, Kybos
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I have no idea if I do not have the files.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

This is verified locally. I'm still using 2006 but with the demo I downloaded to help people here troubleshoot I have the same problem as the original poster. (8.0.0.71)

Create a new html doc with two linked external CSS files. Only IDs from the first css file show up. If the the first is a link to an empty or non-existing file, nothing comes up in the ID auto-complete box.


Will
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I'm also seeing something else a little weird. I use a lot of descendant selectors (like .faq h3) in my css so that I don't need to class and ID everything in my html. when I type class="" in the html, webuilder offers me those selectors as well but they're not really classes that you would attach to anything in the html.

I hope that makes sense.

thanks,
Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

The second is not very important but I will look into the first one.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

no, not important at all. just a little odd and in the way since they can't be used. I'm not sure how most people write css. I think most people write a class/id for each thing. I tend to use descendant selectors because I favor clean html and dirty css. :)

ignoring anything with a second word in the declaration might do it.

.faq {} = use.
.faq .foo {} = ignore
.faq h2 {} = ignore
kybos
Posts: 21
Joined: Fri Jun 01, 2007 10:12 pm

Post by kybos »

Hi Will,

I think this is a matter of taste.
I personally would like to see all available selectors in the input help, even if it's clear that some can't be used for all elements. Better more than less ;-) .

I use similar constructs as well and I don't think it would be a good idea to exclude everything except simple .class and #id (and element) selectors.

Cheers,
Kybos
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

Agree.

.foo .bar {}
.foo h2 {}
h3.foo {}

These had to be shown also
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

notuo wrote:Agree.

.foo .bar {}
.foo h2 {}
h3.foo {}

These had to be shown also
notuo, kybos - I see your points. This is all only for the sake of discussion as karlis wont be changing it any time soon if ever but in my perfect world...

.foo .bar would only come up as .bar because .bar is the declaration - .foo .bar is only specifying what should happen to .bar when contained within .foo

.foo h2 wouldn't come up at all. the whole reason to use this sort of descendant selector is so you don't have to add it as a class in the html. making an h2 within .foo is all that's needed. plus, it can not apply to anything else you could possibly make in your html.

h3.foo would come up as only .foo. In my crazy perfect world, it would only come up after I typed in class=" on h3 elements. 8)

the .foo h2 is the only one that actually matters to me. I use so many descendant selectors that the help list is full of stuff I can't use.

Will
Post Reply