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
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.

May 20
2009

Kill Firefox Focus on links

Posted by barb in css

/*The next set of styles were added to solve the Firefox outlining the edges of
links in the navigation bar. */
a {
user-focus: none;
outline : none;
-moz-user-focus: none;
-moz-outline: none;
behavior: url(/includes/userfocus.htc)
}
a:focus {
user-focus: none;
outline : none;
-moz-user-focus: none;
-moz-outline: none;
behavior: url(/includes/userfocus.htc)
}
/*end of Firefox border fix.*/
May 13
2009

Adjacent selectors to hide certain Joomla! menu items

Posted by barb in menus , Joomla , css

Actually, this solution was first used to tame a “Custom Properties” Tag Cloud.

The site was for negreenhouseupdate.info and we wanted to display the topical tags but not the month and year tags. First I sorted the months and years to the end of the list by adding x or y to the tag name (The tag cloud sorts alphabetically.) Then I added a css rule to hide them:

ul.cpcloud li+li+li+li+li a {display:none;}


irislines.com ©2010 photo by Rich Kaszeta