-
AuthorPosts
-
brookesy_au Friend
brookesy_au
- Join date:
- January 2012
- Posts:
- 17
- Downloads:
- 86
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 19, 2012 at 12:24 am #175149Hi Guys,
Personally, I’d prefer if IE didn’t exist at all, however for the purposes of the greater viewing audience can anyone please tell me of the general process of adding IE conditional comments?
Therefore, the equivalence of adding, for example:<!–>
<link rel=”stylesheet” type=”text/css” href=”/mydomain.com/css/ie8.css” media=”screen” />
<!–>There is an IE7 style sheet already including with the JA-Nex template I am modifying (within Joomla 2.5) which is overriding and detecting my changes just fine for IE7, however I would like to add alternative styles for IE6, 8, and 9.
More so to the point, there is no conditional comment I could see in the header source, and I’m not sure how the existing template-ie7.css file is being targeted etc.
Any advice and/or suggestions much appreciated.
Regards,
RobLinux & Open Source: FREEDOM!
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 19, 2012 at 12:48 pm #444518Hi Rob,
you can add IE specific css files within your templates layout. Go to the template manager and open the layout you’re using (e.g. Default). At the top you’ll see something like this:
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
just add this for the various IE versions and create the files in you templates folder /css
<!--Extra css load for this layout-->
<stylesheets>
<file condition="ie">css/template-ie.css</file>
<file condition="ie 7">css/template-ie7.css</file>
<file condition="ie 8">css/template-ie8.css</file>
<file condition="ie 9">css/template-ie9.css</file>
</stylesheets>
Cheers
Frank
1 user says Thank You to pixelzombie for this useful post
brookesy_au Friendbrookesy_au
- Join date:
- January 2012
- Posts:
- 17
- Downloads:
- 86
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 19, 2012 at 8:41 pm #444613Many thanks for that, Frank. Cheers!
Linux & Open Source: FREEDOM!
laz18345 Friendlaz18345
- Join date:
- November 2010
- Posts:
- 21
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
March 16, 2013 at 10:44 am #486689<em>@pixelzombie 308606 wrote:</em><blockquote>Hi Rob,
you can add IE specific css files within your templates layout. Go to the template manager and open the layout you’re using (e.g. Default). At the top you’ll see something like this:
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
just add this for the various IE versions and create the files in you templates folder /css
<!--Extra css load for this layout-->
<stylesheets>
<file condition="ie">css/template-ie.css</file>
<file condition="ie 7">css/template-ie7.css</file>
<file condition="ie 8">css/template-ie8.css</file>
<file condition="ie 9">css/template-ie9.css</file>
</stylesheets>
Cheers
Frank</blockquote>
Do you know why this does not work for ja-puresite 2.5 ?
I insert the bellow in the head.php and worked but not for the all menus see http://odysseus-shipmodels.gr/bullet/index.php?option=com_content&view=article&id=172&Itemid=712&lang=en<!–>
<link rel=”stylesheet” href=”<?php echo $this->baseurl; ?>/templates/ja_puresite/css/template-ie9.css” type=”text/css” />
<!–>Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 18, 2013 at 4:02 am #486784Hi,
When I open your site in IE9, I see that this: /templates/ja_puresite/css/template-ie9.css file is loaded. And it looks the same in IE9 and Chrome, let me know how you want to achieve.
-
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by Saguaros 11 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum