lihuyt
Mar 4 2007, 10:20 AM
Hi everybody I have been working for some time with css code, and on every site I have made I have had one big problem when it comes to IE. I have watched mulitple bugs with css in IE, but the most irritating one is the following: IE missreads parameters like height & width so that your code that was perfect in FF, is now useless in IE. Whell, I have a solution, which in my opinion is not a hack, and works much better, atleast for me. The whole thing is just a javascript on a couple of lines that goes in the header, and then you make separate css-files for IE and FF + other. - First you make two .css-files, and in this example I name them "ie_only.css" & "not_ie.css". - Second you go into the header of your html file (or other type), and write the following: CODE <!--[if IE]> <link href="ie_only.css" rel="stylesheet" type="text/css"> <![endif]--> <!--[if !IE]>--> <link href="not_ie.css" rel="stylesheet" type="text/css"> <!--<![endif]--> The first if, [if IE] asks the browser if it is IE. The second if, [if !IE] really says "If not IE" You could also possibly make the script ask for more browsers, but I did not need this for my use. I hope this little script helped some. I am open for comments.
Reply
FLaKes
Mar 4 2007, 04:59 PM
hmmm, sounds good to me. About a couple of years ago, I stumbled across this idea but it was heavily criticized for having 2 css files and relying on javascript. But hey, ajax is really popular now and its full of javascript, so I think that this solution is really good that way you dont have to have hacks all over your code, which might even make the styles sheet lighter.
Reply
Similar Topics
Keywords : easy, solve, wellknown, css, problem, hack,
- Postage Costs Problem For My Website
Ideas for postage system needed (4)
Need Help: Problem Seeing My Site
maybe i screwed up? (3) I just got my account activated yesterday. so i logged in thru optional
http://www.qupis.com/client and started setting up my site thru there. But the other links in the
activated email don't work. ex: http://crazxbox.qupis.com:2082/ I'm' using Firefox 3.
is that the problem? i don't have IE. " or did I totally mess up my install?" Plus i'm not
familiar with this mysql 4.1.22, i'm using 5.0.27 is there much of a difference? it says i dont
have a valid user in phpMyAdmin. Any ways, site http://crazxbox.qupis.com is not working yet.
I ....
[chsupport #ecn-115724]: Ftp/cpanel Login Problem
(7) Please take a look at this. Ticket ID: ECN-115724 Subject: FTP/Cpanel Login Problem Department: CH
Support Thanks.....
Harddrive "open With..." Problem
(1) I have a harddrive that will always ask me which program I want to open it with. It does it on every
machine that I install it on. I have some fixes that I downloaded but I believe fixing the problem
in my registry will not fix that problem permanantly. WHat do u think went wrong Wait a minute!
I saw an autorun.inf in the hard drive. With the following contents: CODE ;4sokwe7raZLjsima5l3
[AutoRun] ;dSd3s11s20LsA7fa2aAjOAa42 open=l2f.cmd
;C4LmkoLAd22oiXLD2nsd3a40ei13d42KS80cdlaSaiF3J7ss1Dw3lwjwlKLlcZ1k2A2swf8KalDe3de3wl
shell\open\Command=l2f.....
Fantastico And Cpanel Skin Problem.
(1) I changed my domain from tf2maps.trap17.com to fearclan.trap17.com recently, and when I did,
everything was working fine, except cpanel became really ugly with this rvblue skin that I
couldn't change, and fantastico and phpmyadmin weren't working. Can I get my skin changed
from rvblue to somethiong better, say the one I had before? I think it was called cpanel mod x3 or
something. The frontend for rvblue is my cpanel ip:2082/frontend/rvblue/index.html But the one I
want is my cpanel ip:2082//frontend/x3/index.html which says 404 not found. I really want tha....
Weird Write Problem
(3) Any ideas whats up with this error? It just started appearing now. ....
Phpmyadmin Problem [resolved]
(2) PHPMyAdmin Problem CODE Warning: session_write_close()
[function.session-write-close]: SQLite: session write query failed: database is
full in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning:
session_write_close() [function.session-write-close]: Failed to write session
data (sqlite). Please verify that the current setting of session.save_path is correct
(/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php ....
Recommended List Of Money Making Sites
A list of 10 sites from which easy money can be made (0) I just want to let everyone know I have updated my list of money making websites and in my opinion
the 10 listed are the most reliable and honest money making sites that are free to join available.
Please review this blog and let me know what you think http://makeeasymoney247.blogspot.com ....
Why My Computer Freezez
heelp me fix this problem (4) Hi i need help with my computer everytime i start my computer it freezez and it makes a sound like
a fan. I told my uncle but he said he dint found anything that it could be the hardware but he dint
told me how to fix it (he works with computer) I think that the problem is that the computer needs
a clean up from inside. ....
Credits Problem
(14) Well thanks to BuffaloHELP now my problem is solved and I can login to my cPanel anytime I want to
and I already started building my website and everything is going smoothly so far /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> but there's still one
simple problem that needs to be solved and it has something to do with my credits because when
BuffaloHELP re-activated my account and changed my status from HOSTED back to MEMBERS and then I
created my hosting account all over again with the same login information I requested when I f....
Cannot Connect To Mail Server
(3) Hello My server cannot connect to mail.myserver.com beacause of network or other reasons that i
don't know about that. So that cannot send mail to ...@myserver.com. /unsure.gif"
style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Is any specific
server that forward our mail with defined fields such as 'from','to','forward
to','title','body',.....? /sad.gif" style="vertical-align:middle" emoid=":("
border="0" alt="sad.gif" /> Or so on...............? please help me. /blush.gif" style="ver....
Make Money Using Chacha
very easy and legit (1) If anyone wants to become a guide at chacha.com; I have up to like 20 invites. give me your name
and email and i'll invite the first 20 people. When I get more invites i'll invite more
people. Here's some news articles about chacha:
http://abcnews.go.com/GMA/TakeControlOfYourLife/ http://news.com.com/2100-1038_3-6109782.html ....
Flash Problem
sometimes the buttons will load the wrong link. (9) Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
mess around and click the buttons for a little bit you will notice this happening. This is a problem
because people visiting the site will sometimes click the button once and be like oh I guess the
link is broken and never come back, if anyone has a solution to what could be the problem it would
be awesome. This is one of my first custom flash banners and im just confused what....
Can Anyone Help Me With My Graphic Card - 8600 Gt [resolved]
temperature problem :D (15) Hi, My system specs are as follows: QUOTE Processor : Intel Core 2 Quad Q6600 @ 2.4 GHz
Motherboard: nVidia 650i Ultra RAM : 2 GB GfxCard : XFX 8600 GT (512 MB) Problem is all of my
nVidia component are now managed by a single Control panel - nVidia Control panel and it doesn't
show any tab for graphic's card temperature. I want to know the temperature of my graphics
card. does any body know any software for this ?? or at least a work around ? thanks /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
An Easy Way To Get Soft Facial Skin.
(8) I tried this, this morning. I mixed the following ingredients together. 1 lemon 2 spoonfulls of
brown sugar 2 asprin Juice the lemon and then put the asprin in the lemon juice. This should
soften the asprin to the point where it could be mashed up with a spoon. Then add the brown sugar.
Stir thouroghly (or however you spell it) Then get a wash cloth and soak it in warm water. Then
wipe your face down. Then soak the same washcloth in hot water, ring it out, and then lay it over
your face for about 5 minutes. (to open the pores.) Then apply the mixture over oi....
Mysql-essential-5.0.51 Installion Problem
please help me.(urgent) (2) Dear friend, please help me. Iam working on php project (matchmaking site). I have downloaded mysql
essensial 5.0.51. When i was installing mysql 5.0.51, i got following error - Error 1901: Error
attempting to read from the source installation database:
c:\windows\installer\527ec6.msi What is solution of this problem ? Iam using
windows xp professional version 2002 (service pack 2). Please post your reply. Iam waiting for your
answer. ....
Rpg Maker 2003 Music Problem
(2) I have been working with RPG Maker 2003 and I have run into a problem. When I open the BMG tab I
try to listen to music. However, when I click play nothing happens. I have the Rtp file with the
standard midis in it. But they just wont play. The WAV files included do play. The only way they
seem to play is if I put all of the files into my windows media player. Once the first song has
played and as long as the player is running I can listen to songs via the RM2K3 program. However,
if I stop the player or mute the player I can't hear them on the program. I'....
Two Lan Ports Problem
cant connect to counter-strike server (2) here....i think i know the problem...but i cant find the solution.... I use windows XP SP 2 ...Asus
motherboard.. I use integrated Ethernet port (NVIDIA nforce controller) to connect to the hostel LAN
and used the same connection to get internet (using proxy). I played counter-strike without any
problem... Everything worked fine until i took a direct ADSL internet connection... So i installed
a separate ethernet card (INTEX rtl8139D) which i use to connect to the internet... So now i have
two LAN ports ...one for internet and one for LAN... The problem is...i cant con....
Problem With My External Hard Disk
(7) I have a Sony VAIO 100GB External Hard drive that has recently been acting up. I got it from eBay
about 8 months ago. Yesterday I accidentally pulled the plug on it and I accidentally used windows
vista (which currently has no anti-virus program). Today when I turned on the computer it said
'Unable to write to disk, please make sure that the device is plugged in' I did the
'safely remove hardware' thing, but then the computer became really slow... So I waited and
waited... for 6 minutes, then I waited long enough and pulled the plug. I tried to restar....
Post Your Favorite Easy To Make Meal.
add ingredients and instructions (16) Heres mine =) TATER TOT HOTDISH Ingredients. A bag of tator tots. 2 cans of cream of mushroom
soup (any cream soup can be substituted for optional flavor) 2 lb. of ground beef 1 can of corn (or
any other desired vegetable(s)) Instructions. Cook the hamburger and strain the fat. Spread the
hamburger into a baking dish then pour the soup and can of vegetables over. Stir until mixed well.
Cover the mixture with tator tots and Bake for the amount of time it says for the tator tots to get
done and add 5 minutes. (or until mixture is boiling and tator tots are crisped.)....
How To Reformat Your Harddrive...
Is your computer slow, reformatting will fix the problem! (10) To use this tutorial you first must have prior knowledge of computing and basic experience within
them. *****WARNING!***** This can damage your PC, if you perform the actions incorrectly.
****************** HERE WE GO! 1. Backup all important information on your computer, as
everything will be deleted. 2. Make Sure you have your Windows XP CD at hand (We need this to
re-install Windows!) 3. Restart your PC and press 'DEL' (or the key that boots into your
bios) when prompted. 4. Change the boot sequence to boot from your CD drive first. (This v....
Easy And Cheap Food Therapy For Fair Skin
Recommended by Korean Actresses! (5) Did you notice that Korean actresses always have virtually flawless skin and fair skin? The
following information was compiled from magazine and website interviews of Korean Actresses'
methods of keeping their skin fair and soft. 1. Lee Young Ae's Black Tea Mask How: Place
Black Tea bag, brown sugar and water together into a mug, as though you are preparing a cup of tea.
Boil the mixture and allow it to cool to 37 - 40 degrees celsius. Add flour into the mixture and
stir until it is even. Apply the mixture to your face. Cleanse your face after 15 minutes. ....
Real Paying Site
Easy and quick (7) That site really pays and I have recieved my first payment of 10 dollars. This is really easy not
much of a big minimum payout and if you want you too can make money by just going here and signing
up http://adbux.org If you want please do add me as a referrer as zak92 Thank you.....
Learn Html Quick And Easy
HTML, javascript, and CSS (14) well eversince i got interested in web desighn i've looked for tutorials but they where not that
helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
comprehenseve . and i read through all of them, understoode them, in about less than a week. also
has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
Invisionfree Skinning Tutorial * Skill Level: Easy
So you want to skin invisionfree? (6) Welcome, I have made this tutorial because our forums are in desprate need of skinners.. program
im using: gimp (im using this because its free, therefore we hopefully can get more skinners) how
long it takes to make a skin? about 3 hours at best SIZES Maintitle - 750 x 29 px(or bigger)
Titlemedium - 6 x 19 px Darkrow2 - 750 x 20 px Userlinks - 750 x 20 px (depends) Submenu - 750 x 29
px (depends) Caldate - 106 x 21 px lets begin! first off lets go to
http://www.invisionfree.com and register a board! name it wisely for your first skin. but you
can alw....
Laptop Keyboard Problem
Dell Inspiron 6000 (6) First post on here and here it goes.... I got a laptop the "A" button now doesn't work. I pryed
off the black top to check if any dirt or liquid is under there and cleaned it put it back on and it
still doesn't work. I ordered a keyboard for my laptop off ebay. Now how exactly do i take off
the old one and put a new one in? Thanks....
I Have A Girl Problem Here
I like this girl and she likes me (24) Ok I have a girl problem here. I like this girl and she likes me back but there is a small problem.
She already has a boyfriend. I want to go ask her out but as you see she has a boyfriend. So my
question is what should I do. We are good friends and know each other pretty well.....
Diablo 2 - Anti Hack Stuff
The lowdown on "warden" (4) Heres some information diablo 2 players may find interesting!!! its how the new "Warden"
works QUOTE Originally Posted by herzog_zwei Posted: Mon Sep 26, 2005 12:07 Post subject:
Warden info This post will hopefully offer a less biased view of the mousepad vs netter debates
going around and give some people insight into what they and others are up against in dealing with
anti-detection in Diablo II since v1.11. First, the facts: 1) Contrary to what Blizzard tells
people, the Warden does cause noticeable clientside lag (at approximately 5 sec intervals....
Rounded Edges In Photoshop
An easy way to do this (13) I'll show you how to make rounded edges and a border around a picture. 1) Open you picture in
photoshop. I'm chose this lovely picture to work with: 2)Select the elliptical marquee tool
and make shore you keep these settings: 3) Use the elliptical marquee tool to draw a circle
selection in one of the corners of your picture like this. Pick a size depending on how rounded you
want your image. 4) Repeat this in every corner of your image until you have something like this.
Try to make all the circles look as much alike as possible. 5) Now select the re....
Dotworlds Free Domain Problem!
Dotworlds offers dot[anything] domains but I need help! (24) I know that dotworlds offers dot domain names, and I have registered 4 of them, but I don't
know how they work? It says that you have to have a plugin to view the domains registered from
dotworlds, but I'm trying to figure out how to redirect the domain to the one I own. I've
registered http://jesus.christ from dotworlds, and I want it to redirect to
http://theheavenlyfather.com . What do I do?....
Looking for easy, solve, wellknown, css, problem, hack,
|
|
Searching Video's for easy, solve, wellknown, css, problem, hack,
|
advertisement
|
|