iris lines designs

802 257 7391
info@irislines.com

JoomlaSolutions - and other discoveries

A place to keep track of and share CMS and CSS solutions
Tags >> css
Apr 10
2013

Love Fireworks CS6 preparation of CSS code snippets, but....

Posted by barb in gradients , Fireworks , css

the code for gradients is not correct!

When I observed that my gradients were going right to left instead of top to bottom, I went in and changed rotation  -90deg to 180deg and things looked fine in Firefox --- but I wasn't REALLY understanding the problem --  Doing that made the gradients misbehave in Safari, which my client was using -- He thought I'd gone batty putting a gradient band on the right side of  some home page widgets.

This morning I found this article:

Dec 17
2012

IE Compatibility Mode triggered by :first-line selector.

Posted by barb in Joomla , IE , css

A certain page on a website was causing IE8 to switch into "compatibility" mode -- and to display as if it weren't paying attention to any media queries, which it otherwise could handle.

I found a meta tag to add to force it to stay out of compatibility mode -- and then it would just display NOTHING!  View source,  the content was all there,  but just a big white screen!

Other pages with similar elements were displaying OK.   A few pesky validation errors could not be eliminated, but they weren't breaking other pages.

Mar 09
2012

absolute positioning when you don't declare both offsets....

Posted by barb in css , absolute positioning

As if absolute positioning isn't complicated enough....  I think I always assumed that an object would move to position 0,0  as soon as position:absolute was declared.

But in fact,  all my tests of browsers today seemed to leave the element where it was and only adjust the position - relative to it's positioned containing block -- if the offset is specifically declared.   (This is not very clear in the w3c specs.)

Thus, in two different students' work, I observed absolutely positioned elements remain where they normally would have been in one dimension while being positioned in the other dimension with the declared offset.     Declaring the other offset as zero  (top:0;  or left:0;)  caused the element to adjust to the viewport as no other positioned elements had been defined.

Jan 16
2012

Could you be more specific, please?

Posted by barb in css

I'm preparing notes for the html / css class I teach at the Marlboro College Graduate School and at the same time helping a colleague troubleshoot a ready-made Joomla! template.  

Needing to override a styling rule, there are many possible ways to make a rule more specific without using !important!

Firebug (Firefox extension) and CSSEdit (part of Espresso package from MacRabbit) are two tools that will help you identify the style rules currently  in play.   Of course, you could just edit the stylesheet and make changes to the rule directly,  but sometimes you want to keep all of your custom styles separate, in which case you may need to increase the specificity of the selector.

Sep 11
2011

What's wrong with this?

Posted by barb in css

The following rule was in the stylesheet for a Joomla component I use: 


    div.thumbs_div a:hover, a:active, a:focus{
    background-color: transparent !important;
    }

Do you spot the syntax error which caused me no end of grief?

I finally did!

 

Jun 23
2010

JCE editor styles - and re-visit editor background color problem...

Posted by barb in Joomla , editor , css


This topic came up at Joomla! Day New England -- how to get template styles to show up in jce styles dropdown and to affect the content in the editor window.

For some time now I have been installing the JCE editor for my clients to use on their Joomla sites.   And each time I have to make a decision about how to configure the editor, because this can be done in different ways and "It Depends..."  is always the right answer.

Here are a few possible issues:

Apr 08
2010

Making your template flexible with conditional statements and variables

Posted by barb in template , php , Joomla , css

Using conditional statements you can control whether your template creates a div and module position for a left or right sidebar depending on whether a module exists for any given page.   But this does not cause the content to stretch to fill that available space when no sidebar modules are present.

It IS possible to use conditional statements in the opening php block of your template to set values of variables which are then used in the template to create divs with different classes depending on the modules present.

For this example I'm using a liquid design with a left column width of 20%, and a right column width of 30%.   Left and center columns are floated left, right column is floated right. Two background images are used to create the faux columns. The content area will be either 50%, 70%, 80% or 100% depending on the presence of modules for the left or right columns.




I add these 4 lines to the opening php block:
if($this->countModules('left + right') > 0) $layout="50";
if($this->countModules('right') <= 0) $layout="80";
if($this->countModules('left') <= 0) $layout="70";
if($this->countModules('left + right') <= 0) $layout="100";

and in my html I reference that variable wherever needed like this:


Then I can write css rules: .content-50 {width:50%;}
.content-70 {width:70%;}
.content-80 {width:80%;}
.content-100 {width:100%;}
Remember to remove any width setting on #content.  You’ll also need to add the $layout suffix to the divs that load the faux column images so you’ll be able to rule when the background images load.

 

Jul 01
2009

horizontal menus… and ie7 zoom

Posted by barb in menus , css

Yes, it does matter how you style your nav bars!

In ie7,  when you zoom the page, the text of the links all jumble together if you styled the <li>s with “display:inline;”.

The problem goes away if you style <li>s with “float:left”.

Jun 24
2009

Separator between links in horiz. nav bar.

Posted by barb in menus , css

Here’s a way to avoid the border on the first item in a nav bar.

div.cp_tags span.cp_tag+span.cp_tag{ border-left : 1px solid silver; }

Jun 14
2009

Transparent png for IE6

Posted by barb in IE6 , css

I needed to use a transparent png on sarisoldiers.com home page.
Just to cover the possible IE6 users out there I googled for a png transparency fix for ie6 and found

http://www.howtocreate.co.uk/alpha.html

I used the version of his solution that puts the filter in the stylesheet (actually in the head of my google template) and simply wraps the image in a span. It worked!  Code shows how you can use one rule for many images in site, with a span id for each.   Image name is specified in the html and the conditional commands.  Image size and span size must match.


irislines.com ©2010 photo by Rich Kaszeta