NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
This CSS statement gets flagged as 'unexpected character'


Joined: 10 Feb 2007
Posts: 48
Reply with quote
PhpED is handy when it comes to cleaning up errors on 3rd party stylesheets, but found one statement that consistently generates an error.

This line generates gets flagged as 'unexpected character'. Maybe I'm missing something, but can't see anything wrong with the line. Also it reports 'screen' with 'unexpected identifier, expecting {'.

@media only screen and (min-width:480px) and (max-width:767px)

Here's the whole statement:

@media only screen and (min-width:480px) and (max-width:767px) {
.tp-button { padding:4px 8px 3px; line-height:25px !important; font-size:11px !important;font-weight:normal; }
a.tp-button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; }
}
View user's profileFind all posts by StorymanSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Is your project parser set to CSS 3.0?
View user's profileFind all posts by plugnplaySend private message


Joined: 10 Feb 2007
Posts: 48
Reply with quote
You're right. Code parser was set to CSS 2.1. Thanks.
View user's profileFind all posts by StorymanSend private message


Joined: 27 Mar 2013
Posts: 3
Reply with quote
I am getting the same thing and my parser is set to CSS 3.0.

The code:
<script >

.btn
{
color:red;
}
input[type=button]
{
color:red;
}

</script>

The dot in ".btn" is red-flagged as unexpected ".". Obviously the CSS is not applied.
<script type="text/css"> does not help,

Thanks.
View user's profileFind all posts by sys1jalSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
then it's not css file at all. What file associations do you have and what extension file has?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
This CSS statement gets flagged as 'unexpected character'
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic