Jul 24, 2008

Css So Only Ie Will Understand It

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

Css So Only Ie Will Understand It

moldboy
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;}?

Reply

Lozbo
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

Reply

jlhaslip
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.

Reply

moldboy
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

Reply

Tyssen
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.

Reply

Lozbo
Right, anytime pal! glad to know i could help the good people of this forum biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : css understand


    Looking for css, understand

Searching Video's for css, understand
advertisement



Css So Only Ie Will Understand It



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE