Connecting Tech Pros Worldwide Forums | Help | Site Map

What is the name of this hack?

howa
Guest
 
Posts: n/a
#1: Nov 18 '08

...
width:202px;
*width:200px;
...

The setting with * only can be read by IE, but I want to know...

1. What is the name of this hack?
2. Is all attribute can be combined with a star so only IE will know?

Thanks.


dorayme
Guest
 
Posts: n/a
#2: Nov 18 '08

re: What is the name of this hack?


In article
<622fc4e6-1fb7-4003-860c-a81f8ba201d9@a3g2000prm.googlegroups.com>,
howa <howachen@gmail.comwrote:
Quote:
..
width:202px;
*width:200px;
..
>
The setting with * only can be read by IE, but I want to know...
>
1. What is the name of this hack?
star (html) hack
Quote:
2. Is all attribute can be combined with a star so only IE will know?
>
* html body {margin: 200px;}

is seen by IE 6 but not by other browsers. All that IE would recognise
normally (without the star hack) is recognised by IE with the star hack,
it is just that other browsers won't see it.

--
dorayme
howa
Guest
 
Posts: n/a
#3: Nov 18 '08

re: What is the name of this hack?


Hi,

dorayme wrote:
Quote:
star (html) hack
>
Quote:
2. Is all attribute can be combined with a star so only IE will know?
>
I am referring to the attributes, not the selector, are they the same?

Thanks.
Bergamot
Guest
 
Posts: n/a
#4: Nov 18 '08

re: What is the name of this hack?



howa wrote:
Quote:
>
*width:200px;
1. What is the name of this hack?
http://centricle.com/ref/css/filters/

--
Berg
dorayme
Guest
 
Posts: n/a
#5: Nov 18 '08

re: What is the name of this hack?


In article
<ab323553-8f8b-49a6-b04c-622f6e298a59@d10g2000pra.googlegroups.com>,
howa <howachen@gmail.comwrote:
Quote:
Hi,
>
dorayme wrote:
Quote:
star (html) hack
Quote:
2. Is all attribute can be combined with a star so only IE will know?
>
>
I am referring to the attributes, not the selector, are they the same?
>
Thanks.
First things first. How did I go on answering your number 1 question?
Did I go OK in your eyes? Do I get a pass on that one? If I was
surrounded by a gang of thugs and you were passing by, would you
remember my answer to Number 1 and tell the thugs not to beat me too
severely?

As for your second question, why don't you rewrite it in a proper
grammatical sentence.

--
dorayme
Roy A.
Guest
 
Posts: n/a
#6: Nov 18 '08

re: What is the name of this hack?


On 18 Nov, 04:05, howa <howac...@gmail.comwrote:
Quote:
..
width:202px;
*width:200px;
..
>
The setting with * only can be read by IE, but I want to know...
>
1. What is the name of this hack?
Parsing error.
Quote:
2. Is all attribute can be combined with a star so only IE will know?
Microsoft recommends conditional comments.
http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx
howa
Guest
 
Posts: n/a
#7: Nov 19 '08

re: What is the name of this hack?


On Nov 19, 4:50*am, "Roy A." <royarnes...@gmail.comwrote:
Quote:
Microsoft recommends conditional comments.http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx
This is also what I want.

But it only work as if defined in the HTML page, not in the css file.

So I am looking at some hacks.

Thanks anyway.
howa
Guest
 
Posts: n/a
#8: Nov 19 '08

re: What is the name of this hack?


On Nov 18, 9:39*pm, Bergamot <berga...@visi.comwrote:
Quote:
howa wrote:
>
Quote:
*width:200px;
1. What is the name of this hack?
>
http://centricle.com/ref/css/filters/
>
Thanks.

This is what I want.
Nik Coughlin
Guest
 
Posts: n/a
#9: Nov 19 '08

re: What is the name of this hack?


"howa" <howachen@gmail.comwrote in message
Quote:
news:b3c4e8c5-2c57-4a50-aeda-050edf9c89a8@a26g2000prf.googlegroups.com...
On Nov 19, 4:50 am, "Roy A." <royarnes...@gmail.comwrote:
Quote:
Microsoft recommends conditional
comments.http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx
>
This is also what I want.
>
But it only work as if defined in the HTML page, not in the css file.
>
So I am looking at some hacks.
>
Thanks anyway.
Don't use hacks.

Split your IE fixes out into a separate CSS file and do this in a the HTML:
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

dorayme
Guest
 
Posts: n/a
#10: Nov 19 '08

re: What is the name of this hack?


In article
<b3c4e8c5-2c57-4a50-aeda-050edf9c89a8@a26g2000prf.googlegroups.com>,
howa <howachen@gmail.comwrote:
Quote:
On Nov 19, 4:50*am, "Roy A." <royarnes...@gmail.comwrote:
Quote:
Microsoft recommends conditional
comments.http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx
>
This is also what I want.
>
But it only work as if defined in the HTML page, not in the css file.
>
But the effect can be to let IE only see some CSS, namely by getting IE
to go to a particular special CSS file.

<!--[if IE]>
* <style type="text/css"/>
* ... your IE rules here ...
* </style>');
<![endif]-->

or

<!--[if IE]>
* <link rel="stylesheet" type="text/css" href="ie.css">
<![endif]-->

Quote:
So I am looking at some hacks.
>
--
dorayme
Bergamot
Guest
 
Posts: n/a
#11: Nov 19 '08

re: What is the name of this hack?



howa wrote:
Quote:
On Nov 18, 9:39 pm, Bergamot <berga...@visi.comwrote:
Quote:
>howa wrote:
>>
Quote:
>>*width:200px;
>>1. What is the name of this hack?
>http://centricle.com/ref/css/filters/
>
This is what I want.
I should mention that knowing about such a list is not an endorsement of anything on it. The only one I ever use myself is *html, and then very sparingly.

Best not to use any at all, if possible. Including conditional comments.

--
Berg
Bart Lateur
Guest
 
Posts: n/a
#12: Nov 20 '08

re: What is the name of this hack?


Bergamot wrote:
Quote:
>howa wrote:
Quote:
>>
>*width:200px;
>1. What is the name of this hack?
>
>http://centricle.com/ref/css/filters/
Is it just me? Most links on that page (click on one of the brown items
in the leftmost columns, for example) are dead.

--
Bart.
Closed Thread