Previous Message
Next Message

#idname.classname - IE Support

Sent by Tony Crockford on 1 December 2005 16:04


Kevin Cannon wrote:
> Hi,
> 
> Is it possible ot use a rule with an ID and a class name in IE.  e.g. like so:
> 
> 	<div id="tabs" class="ski">...</div>
> 
> 	#tabs.ski {
> 		background-color: green;
> 	}

this sounds a bit strange but why are you doing #tabs.ski  which means 
id=tabs.ski  when you ought to be doing:
<style type="text/css">
	#tabs {
		padding: 2em 1em;
		border: 2px dotted black;		
	}
	
	.ski {
		background-color: green;
	}
	
	.home {
		background-color: blue;
	}

</style>

which works.

is #tabs.ski a syntax that *should* work?  if so have you a reference?

FWIW
<style type="text/css">
	div#tabs {
		padding: 2em 1em;
		border: 2px dotted black;		
	}
	
	div.ski {
		background-color: green;
	}
	
	div.home {
		background-color: blue;
	}

</style>

also works....


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: