Hack free css for IE (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


c1sissy -> Hack free css for IE (4/13/2004 7:46:40)

In my struggle to get my pages that I am playing with to work in both IE and Opera I found this link
http://www.virtuelvis.com/archives/158.html
While searching for IE hacks.

This works really good. I was so surprised that I now have a working Ie and Opera page.




Giomanach -> RE: Hack free css for IE (4/13/2004 7:49:58)

Ummmmmm

<waiting for someone to clip me round the ear 'ole>

That requires JavaScript to work[8D], I'm currently working on a CSS stylsheet for a pure CSS layout that will work in all browsers, and look the same (even tho M's prolly already done it)

</waiting for someone to clip me round the ear 'ole>

Dan




c1sissy -> RE: Hack free css for IE (4/13/2004 8:02:56)

Uhmm, sorry but guess what, it works. I have a working one on my pc right now.

No java script is in here what so ever.

If I did not test it first I would not have posted that it works. I also have a temp version of it loaded online to test it. However tripod tends to toss in their adds so the layout of the page isn't so great, but It does work.

Opera is not picking up the styles that I have written for IE, and IE is not picking up the styles that I have written for Opera. Works great!

[;)]




Giomanach -> RE: Hack free css for IE (4/13/2004 8:06:07)

<still waiting for the slap>

quote:

<!--[if IE 5.0]>

JavaScript

quote:

width: expression( document.body.contentEditable=='inherit' ? '100%' : null );

Partially JavaScript

JavaScript is merely used to detect browser type here. It's nothing serious, just means the browsers with JavaScript turned off, will use the last-to-be-loaded stylesheet

</still waiting for the slap>




c1sissy -> RE: Hack free css for IE (4/13/2004 8:13:52)

Just curious, did you read the liked page at all?




jaybee -> RE: Hack free css for IE (4/13/2004 8:16:18)

<!--[if Opera6]>
<link rel="impossible" type="garbage.css" href="notacatinhellschance.css" />
<![endif]-->

[;)]




Giomanach -> RE: Hack free css for IE (4/13/2004 8:17:10)

Yeah, the guy/gal who wrote it is using the conditional syntax of JavaScript to tell the browser which stylesheet to use for the page(s)

<edit>

quote:

<!--[if Opera6]>
<link rel="impossible" type="garbage.css" href="notacatinhellschance.css" />
<![endif]-->


[:D][:D]




c1sissy -> RE: Hack free css for IE (4/13/2004 8:29:41)

quote:

will use the last-to-be-loaded stylesheet


If you read the page, you will notice that the order of cascade has the IE page loading last anyhow. So since it is the last to load page in the cascade order......

It works.




Giomanach -> RE: Hack free css for IE (4/13/2004 8:35:38)

I should know better than to argue with a woman, espec when it's my Mom[:D], and no-one can be bothered to back me up on this. Your really stubborn, just like me[:D], guess it runs the family

<edit>
I'm still right BTW[:D]
</edit>




c1sissy -> RE: Hack free css for IE (4/13/2004 8:44:20)

quote:

Your really stubborn


Yes, this is what has gotten me so far in my learning. [;)]

As far as you being correct, not up to me to argue that part as I dont' know anything about javascript.

But I do know that this works, and i have not only seen it on the page that i have linked here, but in other forums in regards to CSS as well.[;)]




Giomanach -> RE: Hack free css for IE (4/13/2004 8:46:57)

I never said it wouldn't work, just that those who have JS turned off will only have the choice of one stylesheet.

Still uses JavaScript[:D]

Let's say we're both right, and call it even, whaddaya say?




jaybee -> RE: Hack free css for IE (4/13/2004 9:03:09)

You're both right.....

ME? Sit on the fence? Never. [:D]

By the way Maam, your storage is full so I can't tell you about a possible problem with your "you know what" via PM.




c1sissy -> RE: Hack free css for IE (4/13/2004 9:09:55)

lol I just deleted a few messages so It should be clear for the you know what [;)]

Dan, it is supposed to load last, so it works. [;)]




Giomanach -> RE: Hack free css for IE (4/13/2004 9:43:14)

OK, lemme explain in laemens terms:

Using this method you will have several stylesheets, yes?? If the user has JavaScript turned off, IE will read all of the stylesheets, but only use the last one in the list

Example

IE5.css
IE55.css
IE6.css

IE would only load IE6.css if JavaScript was turned off

Clearer now?

Dan




c1sissy -> RE: Hack free css for IE (4/13/2004 9:55:24)

Dan, all I know is it works.

And as long as it works through several people on numerous css forums, I'm fine with it. It works for me. Until I come across something that says hey this is not any good, I'm using it.[;)]

And at this point, I only have it for IE6, my css is IEbrowsers.css
meaning that I am using it for all ie at this point. And my css will validate. Using the hacks, my css wont' validate.




jaybee -> RE: Hack free css for IE (4/13/2004 10:08:40)

quote:

ORIGINAL: Giomanach

OK, lemme explain in laemens terms:



Lemmings? What have lemmings got to do with anything?




Giomanach -> RE: Hack free css for IE (4/13/2004 10:11:32)

Laemens, read it right woman!!!! Laemens = English!!!!!

Lemmings are small furry suicidle creatures




c1sissy -> RE: Hack free css for IE (4/13/2004 10:12:20)

quote:

Lemmings? What have lemmings got to do with anything?


Isnt that sort of like if you have lemmings, make lemming aide?[:D]




jaybee -> RE: Hack free css for IE (4/13/2004 10:15:57)

quote:

ORIGINAL: Giomanach

Laemens, read it right woman!!!! Laemens = English!!!!!

Lemmings are small furry suicidle creatures


English???? Really????? What dictionary are you using? Oxfurd Inglish? [:D]




Giomanach -> RE: Hack free css for IE (4/13/2004 10:17:39)

Nah, the book thingy thats all sixes and sevens, I gone all cuckoo ya see

(Perfect spelling is no longer required tp pass English GCSE[:)])




jaybee -> RE: Hack free css for IE (4/13/2004 10:20:11)

NO KIDDING! [sm=lol.gif][sm=lol.gif]




Giomanach -> RE: Hack free css for IE (4/13/2004 10:24:16)

How the hell do you think I passed?, 15 pages of spelling mistakes, and I still got a B[:D]




c1sissy -> RE: Hack free css for IE (4/13/2004 10:34:35)

quote:

Oxfurd Inglish?

ROFLOL!




Giomanach -> RE: Hack free css for IE (4/13/2004 10:35:59)

Oh and just for everyone elses safety, I will refrain from posting this weekend (See birth date in my profile[:D])




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125