Results 1 to 6 of 6

Thread: what is the meaning of this coding

  1. #1
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default what is the meaning of this coding

    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...

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I've never seen such a thing - might I ask where you've seen this?
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  4. #4
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    Quote Originally Posted by Nile View Post
    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

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •