By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,246 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,246 IT Pros & Developers. It's quick & easy.

conditional formatting for IE7- CSS issue

P: n/a
MSK
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...but 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.

May 3 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 3 May, 12:54, MSK <mannaikart...@yahoo.comwrote:
its java based web app, all the pages are looking fine
IE6,Firebox...but 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.

May 3 '07 #2

P: n/a
MSK
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

May 3 '07 #3

P: n/a
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
http://www.LittleWorksStudio.com
May 3 '07 #4

P: n/a
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
May 3 '07 #5

P: n/a
MSK <ma***********@yahoo.comwrote:
news: 11*********************@y80g2000hsf.googlegroups.c om
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...but 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*

May 4 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.