What is the name of this hack? 
November 18th, 2008, 03:15 AM
| | | |
...
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. | 
November 18th, 2008, 03:35 AM
| | | | 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 | 
November 18th, 2008, 06:55 AM
| | | | 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. | 
November 18th, 2008, 07:25 PM
| | | | 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 | 
November 18th, 2008, 08:55 PM
| | | | 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 | 
November 19th, 2008, 03:45 AM
| | | | re: What is the name of this hack?
On Nov 19, 4:50*am, "Roy A." <royarnes...@gmail.comwrote: 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. | 
November 19th, 2008, 03:45 AM
| | | | re: What is the name of this hack?
On Nov 18, 9:39*pm, Bergamot <berga...@visi.comwrote: Thanks.
This is what I want. | 
November 19th, 2008, 03:45 AM
| | | | 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:>
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]--> | 
November 19th, 2008, 03:55 AM
| | | | 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:>
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 | 
November 19th, 2008, 04:55 AM
| | | | re: What is the name of this hack?
howa wrote: Quote:
On Nov 18, 9:39 pm, Bergamot <berga...@visi.comwrote:>
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 | 
November 20th, 2008, 09:35 AM
| | | | re: What is the name of this hack?
Bergamot wrote: 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. |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|