Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Css So Only Ie Will Understand It
moldboy
post Nov 12 2005, 08:55 PM
Post #1


Privileged Member
*********

Group: Members
Posts: 516
Joined: 29-April 05
From: Canada Eh?!?
Member No.: 6,408



I have a site that lloks great in FireFox, but there are a few things that need to be tweaked in IE. I've seen a bunch of sites that have done something with toeir code to make it work with IE. Is there a way I can make FireFox ignore this line {position:relative; left:3px;}?
Go to the top of the page
 
+Quote Post
Lozbo
post Nov 12 2005, 09:23 PM
Post #2


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



heres a hack that fixes ie and leavs all browsers normal (suposedly, but im having my doubts with opera):
CODE

/* Fix IE. Hide from IE Mac \*/
* html div#tools_menu {text-align:right !important;}
/* End */


* Is used to select all elements of the current level, but apparently, only Ie believes that theres an invisible element surrounding the root element (html) so the only browser that will read this as valid css is IE, and the coment lines before it work this way:

\ is used to scape a character so the browser doesnt take it as normal code but a chain of text, so its suposed to scape the * so the browser will believe that the next lines are still a comment, so this: \*/ is not actually a comment end for the current rule, its suposed to fix ie for mac, but im not totally sure i made some tests and some things work and somethings didnt, any way im not totally sure but it does work for ie 6 at least:D
Go to the top of the page
 
+Quote Post
jlhaslip
post Nov 12 2005, 10:00 PM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,083
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol



On another thread here at the trap, Tyssen warns that the presentation of html in IE is the suspect in a lot of cases.
In order to have the most widely acceptable code, he reccomends developing your site in Firefox and then inserting IE hacks. Most tutorials I have read at really good sites(ie: positioniseverything dot com, alistapart dot com) make the same point.
You are trying to go the other way around and it will be more difficult to get firefox to 'mis-behave' since it is a standards compliant browser.

This post has been edited by jlhaslip: Nov 12 2005, 10:00 PM
Go to the top of the page
 
+Quote Post
moldboy
post Nov 12 2005, 11:54 PM
Post #4


Privileged Member
*********

Group: Members
Posts: 516
Joined: 29-April 05
From: Canada Eh?!?
Member No.: 6,408



I don't know what you all mean about develop for FF and trick IE later, and then tell me that that isn't what I'm doing. Because to the best of my knowledge that is what I'm doing, cause my site works exactly how I want it to in FireFox, but there is an image that is 3 pixels to the left in IE and I simply want it to display the same in IE as it already does in FireFox. That sounds to me like I'm developing for FireFox and trying to trick IE. Anyway thanks to Lozbo I will try that and post back with the results.
*** edit --- added the following line --- edit ***
Thanks a lot Lozbo, that worked, at least for the time being.

Notice from jlhaslip:
editted as requested


This post has been edited by jlhaslip: Nov 13 2005, 02:17 AM
Go to the top of the page
 
+Quote Post
Tyssen
post Nov 13 2005, 05:19 AM
Post #5



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(moldboy @ Nov 13 2005, 09:54 AM)
but there is an image that is 3 pixels to the left in IE and I simply want it to display the same in IE as it already does in FireFox.

Sounds like IE's 3-pixel jog.
Go to the top of the page
 
+Quote Post
Lozbo
post Nov 13 2005, 06:20 AM
Post #6


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



Right, anytime pal! glad to know i could help the good people of this forum biggrin.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Apparently My Account Has Been Suspended(11)
  2. I don't understand...(3)
  3. Know(4)
  4. How To Resize/host Images!(15)
  5. Help Starting Php?(7)
  6. Unstable Emotional Life(6)
  7. Girl I Can't Understand(39)
  8. New To Trap17 Free Hosting(4)
  9. Where Can I Get Uni.cc Domain Names?(3)
  10. Mmorpgs - Is There An Easy Way To Make Them?(9)
  11. Nose Hair(9)
  12. A Question About Dinosaurs And Christians(4)
  13. Mascot Phobia(11)
  14. I Don't Understand Hosting Credits(8)
  15. I Just Want To Understand Better(2)
  1. I Dont Understand On How To Use This Forum?(4)
  2. A Little Help With My Cat?(4)
  3. Why Must We Learn Object Oriented Programming(4)
  4. Modulo Operator Confusion(1)
  5. Java Exercise Help(2)
  6. I Hate My Teacher!(11)
  7. Credits?(2)
  8. I Really Do Not Understand(6)


 



- Lo-Fi Version Time is now: 13th October 2008 - 01:05 PM