Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1102709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:13:41+00:00 2026-05-17T01:13:41+00:00

From a blog: The basic idea with CSS expressions is that you will have

  • 0

From a blog:

The basic idea with CSS expressions is
that you will have calculation and
dynamic values for properties in the
CSS code, something that people have
found very useful. A simple example
can be implementing max-width behavior
in IE 6:

width: expression(document.body.clientWidth > 1100)? "1100px" : "auto";

This is the first time I read about them. It seems IE used to support CSS expressions but dropped them in IE8. What other browsers still use them and are they generally a good or bad thing?

The blog post I got this from says the alternative is Javascript, but I thought CSS was more supported and therefore better than Javascript.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:13:41+00:00Added an answer on May 17, 2026 at 1:13 am

    AFAIK, it was only ever IE6/7 (maybe) 5.

    I never thought they were a good thing. May as well just use JavaScript directly.

    They are in fact implemented in JavaScript, and I’m pretty sure disabling JS disables these expressions.

    The sample you posted…

    width: expression(document.body.clientWidth >  1100)? "1100px" : "auto";
    

    …is just a ternary operator that says If the width is larger than 1100px, set it 1100px, otherwise set property to auto.

    To finish, no scripting language on the web is more widely supported than JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is a blog post from Kirk Munro that explains how a script can
I picked up this code from a msdn blog : #include <windows.h> #include <stdio.h>
I have some content (some from an external source, some specially written) that is
Here's some code from Richard Jones' Blog : with gui.vertical: text = gui.label('hello!') items
This is the basic example from hbm-style nhibernate. http://ayende.com/blog/2327/multi-table-entities-in-nhibernate public class Person { public
I'm creating a basic blog app with rails/mongoid backend and an iOS client that
I tried this flex example from blog.flexexamples.com . This is a basic timer example.
I am building a basic blog module that allows the user to rate the
I am learning how to make a basic Blog in Symfony2 and have come
I'm following this basic example how to create a system driver: http://sriramk.com/blog/2007/09/world-windows-driver-from-scratch.html When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.