Jump to content


IPB Stylesheets


1 reply to this topic

#1 Bradlc

    Young Padawan

  • Members
  • Pip
  • 21 posts
  • Gender:Male

Posted 28 May 2007 - 11:29 AM

Hey :biggrin:

I am trying to make my own IPB skin. So far it looks perfect in Firefox, but it looks awful in IE.
So what I am trying to do is use a different stylesheet according to the user's browser.

So I made two CSS files: 'css_ie.css' and 'css_other.css'
This is what I have tried in: All Global HTML > css_external:

<style type="text/css" media="all">

<if="$this->ipsclass->browser['browser'] == ie">

<if="$this->ipsclass->vars['board_url'] != '' AND $this->ipsclass->vars['board_url'] != '.'">
@import url({$this->ipsclass->vars['board_url']}/style_images/css_ie.css);
<else />
@import url(style_images/css_ie.css);
</if>

</if>
<else />

<if="$this->ipsclass->vars['board_url'] != '' AND $this->ipsclass->vars['board_url'] != '.'">
@import url({$this->ipsclass->vars['board_url']}/style_images/css_other.css);
<else />
@import url(style_images/css_other.css);
</if>

</style>

But with that it acts like there is no stylesheet (as the attachment shows).

So does anyone know what I am doing wrong here?
Any help is appreciated.

Thanks,
Brad.

Attached Files

  • Attached File  skin.jpg   171.56K   38 downloads


#2 Bradlc

    Young Padawan

  • Members
  • Pip
  • 21 posts
  • Gender:Male

Posted 28 May 2007 - 12:42 PM

Thanks alot Adam! It worked perfectly. And thanks for the speedy reply. :biggrin:

Brad.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users