[advanced search]
18 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 05-17-2006, 08:20 AM   · #1
LeetPCUser
Account Suspended
 
LeetPCUser's Avatar
 
Name: Bryan
Location: Whitewater, WI
Trader Rating: (52)
Join Date: May 2005
Posts: 3,714
NP$: 0.00 (Donate)
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
AIDS/HIV
Good CSS Tip

I had a previous problem with the min-height attribute because it works in Firefox but not in IE. There are many solutions out there and some are quite tedious. I found a great hack, although the css won't validate this one thing, but it does save a headache.

#Name
{
min-height:300px;
_height:300px;
}

The min-height works for all browsers except IE and the _height is a hack that no other browsers read but IE respects. So if you need to use a minimum height but you are having troubles, try using the _height hack.


Please register or log-in into NamePros to hide ads
LeetPCUser is offline   Reply With Quote
Old 05-17-2006, 09:55 AM   · #2
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
If you want it to validate, you can do:

Code:
<style type="text/css"> #name { min-height: 300px; } </style> <!--[if IE]> <style type="text/css"> #name { height: 300px; } </style> <![endif]-->
Dan is offline   Reply With Quote
Old 05-17-2006, 11:57 AM   · #3
LeetPCUser
Account Suspended
 
LeetPCUser's Avatar
 
Name: Bryan
Location: Whitewater, WI
Trader Rating: (52)
Join Date: May 2005
Posts: 3,714
NP$: 0.00 (Donate)
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
AIDS/HIV
How would you put that in a css file. I don't call CSS in my document but call an actual file.
LeetPCUser is offline   Reply With Quote
Old 05-17-2006, 12:03 PM   · #4
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
Code:
<link rel="stylesheet" href="style.css" type="text/css" /> <!--[if IE]> <link rel="stylesheet" href="iestyle.css" type="text/css" /> <![endif]-->


And in iestyle.css have the IE CSS fixes like width, etc.

Or you could use link rel for normal and use the style tag for the IE stuff.
Dan is offline   Reply With Quote
Old 05-17-2006, 12:04 PM   · #5
LeetPCUser
Account Suspended
 
LeetPCUser's Avatar
 
Name: Bryan
Location: Whitewater, WI
Trader Rating: (52)
Join Date: May 2005
Posts: 3,714
NP$: 0.00 (Donate)
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
AIDS/HIV
lol way too much code. Cuz then I will have to load up two seperate files of same size. Thanks for the suggestion.
LeetPCUser is offline   Reply With Quote
Old 05-17-2006, 12:06 PM   · #6
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
No, in iestyle.css just put the IE fixes like the height (I meant height in my last post, too.. not width).

The regular stylesheet (style.css) would probably be much larger than iestyle.css
Dan is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
http://www.mobisitetrader.com/ Custom Logo Design Custom Logo Design
Advertise your business at NamePros
All times are GMT -7. The time now is 11:24 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0