Jump to content


Photo
- - - - -
Resolved

IE8 hacks

IE8 hacks

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 06 October 2012 - 06:33 AM

I normally can put a \9 after a CSS command to make a IE8 hack. Unlucky it is stripped in the preprocessor of custom code. So that does not work out. I can remove the hacks and distribute them to style.css but that is a dirty fix.

Can you fix the problem or is there a proper work-around?

Example:
.fbox {padding: 15px 30px\9 15px 10px\9 !important; } becomes:
.fbox {padding: 15px 30px9 15px 10px9 !important; }

Adding an extra space 30px \9 results in a compile error!

#2 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 06 October 2012 - 06:40 AM

I already mentioned that an extra space does not help.

#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 06 October 2012 - 03:59 PM

I will forward this to our developers, but our NavBar is already set for IE8. What did you intend to hack?

#4 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 06 October 2012 - 05:01 PM

Indeed I had a problem in IE8 with the navbar displaying both the navigation and the text displayed whenever it was used on mobile.
Also I did use other margins/paddings for my boxes and sometimes use different fonts (not all are rendering nice).

#5 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 06 October 2012 - 05:19 PM

The custom CSS box runs the code through the less compiler which checks for valid CSS. Your 'hack' is not valid CSS ;) add it to customise plugin style.css

#6 hansinke

hansinke

    Member

  • Members
  • 13 posts

Posted 07 October 2012 - 06:23 PM

That is a very clever idea! It also helps with the custom taxonomies!

#7 Danny

Danny

    Is Awesome!

  • Moderators
  • 17139 posts

Posted 10 October 2012 - 10:03 AM

The topic was marked as resolved.