HighDots Forums  

colon in css definition name

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss colon in css definition name in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
etpaguia@gmail.com
 
Posts: n/a

Default colon in css definition name - 06-14-2006 , 04:59 AM







hi everybody,

Need help! Is there a way to escape the : character in a css definition
name?

#checkUsername:Messages {
padding: 10px 10px 10px 10px;
background-color:#FFFFCC;
color: #f00;
font-size: 12px;
border : 1 solid F00;
}

I encounter this ID naming convention with : char in JavaServerFaces
elements. THe elements are tightly coupled with the IDs and this is how
it is rendered to HTML.

Thanks,
Eson.


Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: colon in css definition name - 06-14-2006 , 08:18 AM






etpaguia (AT) gmail (DOT) com wrote:
Quote:
Need help! Is there a way to escape the : character in a css definition
name?
Second bullet point: http://www.w3.org/TR/CSS2/syndata.html#q4



Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: colon in css definition name - 06-14-2006 , 02:30 PM



David Dorward <dorward (AT) gmail (DOT) com> scripsit:

Quote:
etpaguia (AT) gmail (DOT) com wrote:
Need help! Is there a way to escape the : character in a css
definition name?

Second bullet point: http://www.w3.org/TR/CSS2/syndata.html#q4
Now that you taught the OP to fish, I could give a fish, mainly to help to
check that the (somewhat complex) text was understood correctly: there are
several ways to escape characters in CSS, but in cases like this, it
suffices to prefix the colon by the backslash (reverse solidus) character,
using \: instead of plain :.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.