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
Auto complete with linked CSS files
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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;
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
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
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
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
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
I hope that makes sense.
thanks,
Will
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
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

ignoring anything with a second word in the declaration might do it.
.faq {} = use.
.faq .foo {} = ignore
.faq h2 {} = ignore
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
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
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
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...notuo wrote:Agree.
.foo .bar {}
.foo h2 {}
h3.foo {}
These had to be shown also
.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.

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