conditional formatting for IE7- CSS issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MSK

    conditional formatting for IE7- CSS issue

    Hi,

    I am a newbie to CSS , I have an issue in my project
    its java based web app, all the pages are looking fine
    IE6,Firebox...b ut the problem is appearing in IE7

    basically some div class heights are not showing the object properly

    how to fix... If I increase the height parameter then the page is not
    appearing properly in IE6

    can we have some conditional parameter in the css ..something like
    this

    mainblock:
    {
    margin: 0em 0em 0em 0em
    height:36%
    /* I think the following will overwrite the height for IE 7
    only ..Isn' it?*/
    <!--[if IE7]>
    height:50%
    <![endif]-->
    }

    but its not working fine, I think the syntax is wrong... how to achive
    this ? I dont want to have multiple css file for each and having the
    reference (rel) in all the documents..

    Thanks

    MSK.

  • Andy Dingley

    #2
    Re: conditional formatting for IE7- CSS issue

    On 3 May, 12:54, MSK <mannaikart...@ yahoo.comwrote:
    its java based web app, all the pages are looking fine
    IE6,Firebox...b ut the problem is appearing in IE7
    Post a URL. How else can we see the problem?

    It's a HTML problem and nothing to do with Java. JSP just makes plain
    old HTML, it doesn't make magic Java-HTML. If you can't show us an
    intranet Java webapp, then copy the resultant HTML and upload it
    somewhere we can see it.

    I doubt very much if you need to tweak anything for IE7 specifically.

    Comment

    • MSK

      #3
      Re: conditional formatting for IE7- CSS issue

      Thanks for your response, sorry in this time I am not able to give
      much about the project (url or screen shots.)

      bascially I want to use a single css file for all the browsers
      (including IE7), my current CSS is working fine for IE6 ,lower
      versions of IE and firefox but some minor issue in IE7 , I want to fix
      the issue for IE7
      so I want to change the CSS file , I dont want to change JSP or JAVA
      files...how to change ?

      please give me some idea

      Thanks
      MSK

      Comment

      • Jonathan N. Little

        #4
        Re: conditional formatting for IE7- CSS issue

        MSK wrote:
        Thanks for your response, sorry in this time I am not able to give
        much about the project (url or screen shots.)
        >
        bascially I want to use a single css file for all the browsers
        (including IE7), my current CSS is working fine for IE6 ,lower
        versions of IE and firefox but some minor issue in IE7 , I want to fix
        the issue for IE7
        so I want to change the CSS file , I dont want to change JSP or JAVA
        files...how to change ?
        >
        please give me some idea
        You do not seem to understand without *seeing* what you have how could
        we possibly advise you? It's like playing "I spy with my little eye..."

        --
        Take care,

        Jonathan
        -------------------
        LITTLE WORKS STUDIO

        Comment

        • Gus Richter

          #5
          Re: conditional formatting for IE7- CSS issue

          MSK wrote:
          >
          mainblock:
          {
          margin: 0em 0em 0em 0em
          height:36%
          /* I think the following will overwrite the height for IE 7
          only ..Isn' it?*/
          <!--[if IE7]>
          height:50%
          <![endif]-->
          }
          >
          but its not working fine, I think the syntax is wrong...
          >
          Multiple declarations must be separated by the use of semicolons (;).

          --
          Gus

          Comment

          • BootNic

            #6
            Re: conditional formatting for IE7- CSS issue

            MSK <mannaikarthik@ yahoo.comwrote:
            news: 1178193245.3210 99.13970@y80g20 00...legro ups.com
            Hi,
            >
            I am a newbie to CSS , I have an issue in my project
            its java based web app, all the pages are looking fine
            IE6,Firebox...b ut the problem is appearing in IE7
            [snip]
            mainblock:
            {
            margin: 0em 0em 0em 0em
            height:36%
            /* I think the following will overwrite the height for IE 7
            only ..Isn' it?*/
            <!--[if IE7]>
            height:50%
            <![endif]-->
            }
            [snip]

            <!-- Style for everyone -->
            <style type="text/css">

            </style>

            <!-- Style for IE 7 -->
            <!--[if IE 7]>
            <style type="text/css">

            </style>
            <![endif]-->

            <!-- Style for IE 6 -->
            <!--[if IE 6]>
            <style type="text/css">

            </style>
            <![endif]-->

            --
            BootNic Friday, May 04, 2007 12:02 AM

            You can turn painful situations around through laughter. If you can
            find humor in anything - even poverty - you can survive it.
            *Bill Cosby*

            Comment

            Working...