|
|
|
|
![]() ![]() |
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;}?
|
|
|
|
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 |
|
|
|
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: [MODERATOR] Posts: 4,083 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
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 |
|
|
|
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. This post has been edited by jlhaslip: Nov 13 2005, 02:17 AM |
|
|
|
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. |
|
|
|
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
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 01:05 PM |