[SOLVED] Leading * for some css-Tags

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #69261

Hello there

I have a question for the style_red.css you provide in your store.

Some CSS-Tags has a leading * like e.g. in the following code the "padding"-Tag:

.hikashop_cart_input_button{
	background-color:#2f2c2c;
	margin-top:10px;
	margin-bottom:10px;
	padding:3px 5px;
	color:#fff;
	cursor:pointer;
	font-weight:bold;
	*padding:0px;}

Or this one here:
/*Special code IE7*/
.hikashop_option_name{
	*margin-left:20px;}

Is this star (*) correct before e.g. margin-left or padding? Or maybe it's a bug? I'm asking since NetBeans 7.2 as CSS Editor say's "Unexpected character(s) "*" found!".

Best regards
Mike

Last edit: 12 years 1 month ago by mike.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #69281

Hi mike,

This property is for the compatibility with IE7, you can remove it if you want but IE7 will maybe not use this property.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #69425

Okay, a star (*) before a CSS-Tag is especially for IE7?
That the whole CSS-Directive ".hikashop_option_name" is for IE7, that is clear (the comment says that anyway).

Last edit: 12 years 1 month ago by mike.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 1 month ago #69450

Yes.

There are lots of tricks in CSS to target specific browsers. Here is a small list:
css-tricks.com/snippets/css/browser-specific-hacks/

The following user(s) said Thank You: mike

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #69467
The following user(s) said Thank You: mike

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 4
  • Hikashop Business
12 years 1 month ago #69492

Thank you! That explains it! Some "magic" for me :laugh:

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum