Skip to main content

[SOLVED] Leading * for some css-Tags

14 years 3 weeks ago - 14 years 3 weeks ago #69261 by mike
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:
Code:
.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:
Code:
/*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: 14 years 3 weeks ago by mike.

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

14 years 3 weeks ago #69281 by Xavier
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.

14 years 3 weeks ago - 14 years 3 weeks ago #69425 by mike
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: 14 years 3 weeks ago by mike.

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

14 years 3 weeks ago #69450 by nicolas
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.

14 years 3 weeks ago #69467 by Xavier
The following user(s) said Thank You: mike

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

14 years 3 weeks ago #69492 by mike
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.059 seconds
Powered by Kunena Forum