Log in

View Full Version : what is the meaning of this coding



gurmeet
01-18-2010, 01:37 PM
i never seen such codingin css file...
why to use the words in upper case in curly braces?




.buttons div.reply-icon { width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }


plz helpby giving ur replies...

Nile
01-18-2010, 11:31 PM
I've never seen such a thing - might I ask where you've seen this?

traq
01-18-2010, 11:43 PM
it might be a CMS-specific code of some sort, their version of an "include" or variable, which is parsed server-side and then replaced with the actual (numeric) value.

gurmeet
01-21-2010, 01:01 PM
I've never seen such a thing - might I ask where you've seen this?

i downloaded a site project, it was in css file

djr33
01-21-2010, 07:34 PM
Yes, as he said: it is probably parsed by a CMS (content management system) replacing those values. Is the css file not part of a bigger site with some sort of complex PHP/ASP/CGI?

simcomedia
01-22-2010, 09:57 PM
Those are variables most likely passed by making changes in some admin console form for the various settings of something like a shopping cart or portfolio site where image sizes are being left to the site owner instead of hard coded.