Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 01-13-2008, 07:45 PM <!--[if IE]> problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
I am using min-width and min-height for one div. It is working perfectly in IE7 and FF but not in IE6. Is there some way to define height for all old IE browser? I am typing:

Code:
<!--[if IE]>
<style type="text/css">
.something {
height : 300px;
}
</style>
<![endif]-->
but this is not give me any result. And one more question. How I can insert this part of code if is css separate from html (out of document).

Thanks,
Shivaji
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
 
Register now for full access!
Old 01-13-2008, 07:50 PM Re: <!--[if IE]> problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
IE6 does not support min/max width or height, you'll have to define an actual height and width for IE6 and fix it using conditional comments and a separate css file.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-13-2008, 09:07 PM Re: <!--[if IE]> problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Quote:
IE6 does not support min/max width or height
I know that that is reason for this question.
Quote:
conditional comments
Can you give me one example.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 01-14-2008, 12:26 AM Re: <!--[if IE]> problem
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You can try something like this

<!--[if IE6]>
<link rel="stylesheet" href="ie-style.css" />
<![endif]-->

and then in the external ie-style.css

.something {
height:300px
}


IE6 interprets height and as a min height.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-14-2008, 06:53 AM Re: <!--[if IE]> problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Thanks gogh but I don't know why is not working. Grrrrrrrrrrrrrrrrrrrrrrrrrrr!
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 01-14-2008, 05:08 PM Re: <!--[if IE]> problem
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Is the page online somewhere so we can take a look?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-15-2008, 06:00 AM Re: <!--[if IE]> problem
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
No the site is not online jet. Thanks a lot. I am solving problem with other solution. It is working fine in IE and FF.

Code:
something{
  min-height:500px;
  height:auto !important;
  height:500px;
}
Shivaji
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 01-15-2008, 08:40 PM Re: <!--[if IE]> problem
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Why did you define height twice in your code above? You can't have both auto and 500px. It has to be one or the other.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to <!--[if IE]> problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33036 seconds with 12 queries