Connecting Tech Pros Worldwide Help | Site Map

What is the name of this hack?

  #1  
Old November 18th, 2008, 03:15 AM
howa
Guest
 
Posts: n/a

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

  #2  
Old November 18th, 2008, 03:35 AM
dorayme
Guest
 
Posts: n/a

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
  #3  
Old November 18th, 2008, 06:55 AM
howa
Guest
 
Posts: n/a

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.
  #4  
Old November 18th, 2008, 01:45 PM
Bergamot
Guest
 
Posts: n/a

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
  #5  
Old November 18th, 2008, 07:25 PM
dorayme
Guest
 
Posts: n/a

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
  #6  
Old November 18th, 2008, 08:55 PM
Roy A.
Guest
 
Posts: n/a

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
  #7  
Old November 19th, 2008, 03:45 AM
howa
Guest
 
Posts: n/a

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.
  #8  
Old November 19th, 2008, 03:45 AM
howa
Guest
 
Posts: n/a

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.
  #9  
Old November 19th, 2008, 03:45 AM
Nik Coughlin
Guest
 
Posts: n/a

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]-->

  #10  
Old November 19th, 2008, 03:55 AM
dorayme
Guest
 
Posts: n/a

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
  #11  
Old November 19th, 2008, 04:55 AM
Bergamot
Guest
 
Posts: n/a

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
  #12  
Old November 20th, 2008, 09:35 AM
Bart Lateur
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting the name of a variable which was used as a functionparameter. Ravi Kotecha answers 3 July 21st, 2008 10:45 PM
how do you get the name of a dictionary? jojoba answers 70 September 9th, 2006 07:05 AM
Microsoft Patents Saving The Name Of A Game theodp answers 138 July 20th, 2005 07:19 PM
how to get name of function from within function? Christopher J. Bottaro answers 12 July 19th, 2005 02:55 AM