IDEA css

I just opened a html file to check on Iridas new html/css support.

-> IDEA marks the href red and says it cant resolve it. What is wrong? + I never get any result when I try "Show applied styles for tag" +

are marked as duplicate ids + idea tells me about missing attribute e.g. in img tag ->]]> should somehow show me what is the name of the missing attribute (maybe you plan alt-enter support?) ;)

Bye,
M.

7 comments

Hi,

Michael Damberger wrote:

I just opened a html file to check on Iridas new html/css support.

<link rel="stylesheet" type="text/css" href="style.css">

-> IDEA marks the href red and says it cant resolve it.
What is wrong?

Idea has not found that style file.

+ I never get any result when I try "Show applied styles for tag"

This will not find anything useful if css style files do not found.

+ <div id="..."> are marked as duplicate ids

As per HTML spec:
<!ENTITY % coreattrs
"id ID #IMPLIED -- document-wide unique id --

+ idea tells me about missing attribute e.g. in img tag
-> should somehow show me what is the name of the missing attribute (maybe you plan alt-enter support?) ;)

It will be.

0

Hi,

Michael Damberger wrote:

>> I just opened a html file to check on Iridas new html/css support.
>>
>> >> >> -> IDEA marks the href red and says it cant resolve it. What is >> wrong? >>]]>

Idea has not found that style file.

I had the same problem and had to fix the file type mapping for css files. If I remember correctly, that extension was mapped to 'Text files' and I moved it to 'Cascade style sheets', which was previously empty.

0

Hi,

Yes, this issue appears for all nonfresh IDEA install.

Tim Haley wrote:
>>Hi,
>>
>>Michael Damberger wrote:
>>
>>
>>>I just opened a html file to check on Iridas new html/css support.
>>>
>>> >>> >>>-> IDEA marks the href red and says it cant resolve it. What is >>>wrong? >>> >> >>Idea has not found that style file. >>]]>


I had the same problem and had to fix the file type mapping for css files. If I remember correctly, that extension was mapped to 'Text files' and I moved it to 'Cascade style sheets', which was previously empty.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

thanks for the information.
I'm no html expert - now I know that one should keep div id's unique ;)

+ I'll test applying .css to its proper filetype and
take another look at Irida css.

Bye,
M.

0

Hi,

ID is unique across all html elements :)

Michael Damberger wrote:

thanks for the information.
I'm no html expert - now I know that one should keep div id's unique ;)

+ I'll test applying .css to its proper filetype and
take another look at Irida css.

Bye,
M.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

oh ;)

Just found out that I should use instead of

]]> when the same "id" occurs multiple times:

Use IDs when there is only one occurence per page. Use classes when there are one or more occurences per page.

taken from http://www.tizag.com/cssT/cssid.php

The html / css features of Irida are very welcome !! :)

M.

0

CSS is the new big thing. Basically, (1) either XML or stripped from
formatting XHTML + XSLT + CSS, or (2) Flash.

For example
http://www.alistapart.com/
http://www.csszengarden.com/
http://www.digital-web.com/


"Michael Damberger" <michael.damberger@t-online.de> wrote in message
news:26457836.1102607906401.JavaMail.itn@is.intellij.net...

oh ;)

>

Just found out that I should use <div >
instead of <div id="..."> when the same "id" occurs multiple times:

>

Use IDs when there is only one occurence per page. Use classes when there

are one or more occurences per page.
>

taken from http://www.tizag.com/cssT/cssid.php

>

The html / css features of Irida are very welcome !! :)



0

Please sign in to leave a comment.