Joomla - Template: Making Basic Template

1.http://beautyindesign.com/archived-joomla-templates-from-the-old-site


Joomla Template Conversion (1.0.x)

The Template Migration for Joomla Series will show you how to take an existing, static template and convert it for use with Joomla. This highly requested series covers every aspect of template conversion: Organizing the file structure for Joomla, insertion of the Joomla PHP tags, matching and re-naming CSS conventions for compatibility with JOOMLA, and more! By the completion of this series you will gain all the know-how necessary to migrate your template for Joomla.


Read more!

CSS Browser detection using jQuery instead of hacks

Browser sniffing is messy. There are a million ways to do it but none of them are particularly clean and most involve conditional statements such as "<!--[if condition]> HTML <![endif]-->" for IE and various other CSS selector hacks for other browsers.

I've done a fair amount of browser sniffing with jQuery recently and it's really easy, useful for when you need to detect the browser and version number in your javascript. It occurred to me that it would be easy to detect the browser and then put something in the DOM that your CSS could use for conditional formatting. So I wrote a quick script in JavaScript/jQuery.

How it works:

 
All you have to do is include the JavaScript file in the head of the page and it'll attach 2 classes to your body tag to say what browser and what version is being used so you've got 2 levels of granularity. Possible values are...

.browserIE
.browserIE6
.browserIE7
.browserIE8
.browserChrome
.browserChrome1
.browserSafari
.browserSafari1
.browserSafari2
.browserSafari3
.browserMozilla
.browserFirefox
.browserFirefox1
.browserFirefox2
.browserFirefox3
.browserOpera

If you need to detect any other browsers then it would be easy to modify the script.

All that happens automatically.

Usage example:

 
All you have to do is write your CSS selectors to use those classes where necessary, so let's say for example that you had an input textbox which looks correct in every browser except safari (quite common in my experience) and you want to position it 2 pixels lower in safari, all you have to do is set up the following 2 styles.

#myInput {background:black;} .browserSafari #myInput{background:black; position:relative; top:2px;} 
Pretty neat compared to other solutions. The script is < 1k minified and the browser detection only needs to be done once on page load, from that point on it's CSS selectors all the way.



Get the code:

 
download files  browserDetect.js (2k)
download files  browserDetect-min.js (0.9k)
Read more!

Improve your jQuery - 25 excellent tips

http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx



Query is awesome. I've been using it for about a year now and although I was impressed to begin with I'm liking it more and more the longer I use it and the more I find out about it's inner workings.

I'm no jQuery expert. I don't claim to be, so if there are mistakes in this article then feel free to correct me or make suggestions for improvements.

I'd call myself an "intermediate" jQuery user and I thought some others out there could benefit from all the little tips, tricks and techniques I've learned over the past year. The article also ended up being a lot longer than I thought it was going to be so I'll start with a table of contents so you can skip to the bits you're interested in.

Table of Contents



Read more!

Styling the Button Element in IE

If you've ever attempted to style a button inside IE, you know that it can be a huge pain. On most of our projects, we've now started using the button element in place of traditional input buttons due to the ease of styling and consistency across browsers. One of the first things you might notice when you bring your nicely styled buttons up in IE is that, for reasons unknown to me, IE decides to stack the padding depending on the width of the content inside the element.

image

After spending some time adding a lot of extraneous CSS to the IE specific style sheets, I realized that two simple lines of code fixes the problem.

  button {   width: auto;   overflow: visible; }

Those two lines of code will save you countless hours. Go give your button elements some extra love.

UPDATE: July 16, 2008 - Please note that this fix DOES NOT work for buttons contained inside table elements.

Read more!

Pulling Your Flickr Feed with jQuery

http://www.viget.com/inspire/pulling-your-flickr-feed-with-jquery/

Pulling Your Flickr Feed with jQuery


Read more!

Static, relative, absolute, fixed, float. What the hell is all this!




beattle2b.gif

CSS positioning is quite easy. I guess no-one explained it plain and simple before.
I want to be crystal clear about the subject so I decided to separate the post into two parts.

The first part (this post) will focus on the four types of CSS positioning: static, relative, absolute and fixed.

The second part will focus on the float property that is obviously related to an element's position in our site.

Let's get started.

http://thecssblog.com/tutorials/stopping-the-css-positioning-panic-part-1/

Read more!

introduction to accessibility

An introduction to web accessibility from Paul Boag on Vimeo.




And here is the rest of it.

Read more!