HighDots Forums  

What is the name of this hack?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What is the name of this hack? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
howa
 
Posts: n/a

Default What is the name of this hack? - 11-17-2008 , 10:05 PM







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


Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: What is the name of this hack? - 11-17-2008 , 10:25 PM






In article
<622fc4e6-1fb7-4003-860c-a81f8ba201d9 (AT) a3g2000prm (DOT) googlegroups.com>,
howa <howachen (AT) gmail (DOT) com> wrote:

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


Reply With Quote
  #3  
Old   
howa
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 01:48 AM



Hi,

dorayme wrote:
Quote:
star (html) hack

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.


Reply With Quote
  #4  
Old   
Bergamot
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 08:39 AM




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

--
Berg


Reply With Quote
  #5  
Old   
dorayme
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 02:18 PM



In article
<ab323553-8f8b-49a6-b04c-622f6e298a59 (AT) d10g2000pra (DOT) googlegroups.com>,
howa <howachen (AT) gmail (DOT) com> wrote:

Quote:
Hi,

dorayme wrote:
star (html) hack

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


Reply With Quote
  #6  
Old   
Roy A.
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 03:50 PM



On 18 Nov, 04:05, howa <howac... (AT) gmail (DOT) com> wrote:
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


Reply With Quote
  #7  
Old   
howa
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 10:37 PM



On Nov 19, 4:50*am, "Roy A." <royarnes... (AT) gmail (DOT) com> wrote:
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.


Reply With Quote
  #8  
Old   
howa
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 10:38 PM



On Nov 18, 9:39*pm, Bergamot <berga... (AT) visi (DOT) com> wrote:
Quote:
howa wrote:

*width:200px;
1. What is the name of this hack?

http://centricle.com/ref/css/filters/

Thanks.

This is what I want.


Reply With Quote
  #9  
Old   
Nik Coughlin
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 10:44 PM



Quote:
"howa" <howachen (AT) gmail (DOT) com> wrote in message
news:b3c4e8c5-2c57-4a50-aeda-050edf9c89a8 (AT) a26g2000prf (DOT) googlegroups.com...
On Nov 19, 4:50 am, "Roy A." <royarnes... (AT) gmail (DOT) com> wrote:
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]-->



Reply With Quote
  #10  
Old   
dorayme
 
Posts: n/a

Default Re: What is the name of this hack? - 11-18-2008 , 10:52 PM



In article
<b3c4e8c5-2c57-4a50-aeda-050edf9c89a8 (AT) a26g2000prf (DOT) googlegroups.com>,
howa <howachen (AT) gmail (DOT) com> wrote:

Quote:
On Nov 19, 4:50*am, "Roy A." <royarnes... (AT) gmail (DOT) com> wrote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.