CSS Guidelines
From Fishcakes Wiki
How to accomplish specific things with CSS.
Contents |
General CSS Tutorials
- annevankesteren.nl CSS Fixed Positioning Tutorial — tutorial and code for Fixed Sidebar, Fixed Top Menu, Fixed Footer... by Anne van Kesteren.
- w3.org CSS 2 Sytax — very good definition.
- sovavsiti.cz CSS Horizontal Menus — using lists tutorial.
- shadow-fox.net 3 Column Layout — good tutorial with sample code.
Accessibility
You MUST make your site accessible to visually impaired users these days.
- Dive Into Accessibility — great tutorial.
- w3 Accessibility Guidelines
- Watchfire Accessibility Check
- Accessify — accessibility tools
Access Keys in Links
Need to add access key for all sectional links
<a href="/index.php/Main_Page" title="Visit the Main Page [z]" accesskey="z">click here</a>
Adding Scroll Bars to a DIV
- Joomla Prodigy Tutorial — DIV with a srollbar.
Cross Browser Exceptions
How to get browser to do something specific.
In the HTML Document you can use:
<!--[if IE 6]> Special instructions for IE 6 here <![endif]-->
Or, if not greater than or equal to IE 5, use:
<!--[if gte !IE 5]> Special instructions for IE 6 here <![endif]-->
- Writing Cross Browser CSS
- Browser Strategies for CSS
- Explorer Exposed — bug list with solutions for IE.
- Conditional IE Statements — if IE, then...
- IE Excludes — if not IE, then...
- Raw CSS Examples
- IE Resources — good fix guide to common IE problems.
- Quirksmode — guide to browser exceptions
- Apple Developer — css best practice.
- Box Model Hack — famous.
Scalable Images
Use CSS to Scale em values of images to comply with vision impaired accessibility guidelines. See also PixelPost Addons: Scalable Images Addon
Convert Pixels to EM
See em to px forum page discussion with calculations and EM Calculator to convert px's to em's.
- PX to EM Formula px*0.0626=em
Remember that EM is a derivative of the Font Size for the given element, so you'll need to tinker with it depending on page layout. One em is equal to the pt size of the M (the widest font element) of the current font and changes depending on the size of the font in each element.
Use the following CSS Style:
<style type="text/css"> .imageem { width: 2.2em; height: 3.5em; } </style>
Image html:
<div id="imagebox"> <img class="imageem" src="imagename.jpg" width="22" height="35"/></a> </div>
Scalable Text with CSS & Javascript
- Tutorial — code for using Javascript to add scale font buttons to a web page. Uses cookies to keep the user's settings.
- Javascript — simple script to scale text using buttons.
- Javascript — another simple script.
Three Column Flexible Layout with Header and Footer (Holy Grail)
- http://www.glish.com/css/7.asp — the holy grail.
- http://www.alistapart.com/articles/holygrail — tutorial.
pmob 3 Column CSS Tutorial
Good site with guides to achieving 3 column and other CSS layout tricks.
3 Columns
- 3 Fluid ColumnsSo you just want three fluid columns that span the full width of your container...
- http://www.pmob.co.uk/temp/3colfixedtest_explained.htm — 3 column layout with header and footer.
Border Effects
- Dashed borderThis is a very simple dashed border effect that is created by applying a background...
- Dotted bordersThis example is to defeat the 1px dotted border bug in ie where the dashes disappear...
- Side image bordersTo add full length side borders using images you simply need to nest one element inside...
Captions
- Image ClearIf you want to display a number of images from your database and then alongside them you..
Centering
- Centred FloatsIt is usually stated that you cannot centre floated elements but this is not quite true..
- Centre Multiple Divs in IEIt would be nice if we could centre multiple block elements and there is a way..
- Centred Page Horizontal and Vertical centering has always been awkward with css as vertical-align only..
- Centre - No widthCentering block level elements is easy as you simply need to use margin:auto and a..
Equal Columns
- Equal ColumnsBefore you start you should know that the only element that will base its height dependent on ...
Rollovers
- Simple Tab RolloversThere are many ways to do rollovers but as a general rule of thumb you should..
- Advanced Tab RolloversThis is about as complicated as you can make it but the effect is well worth the effort..
- Disjointed Rollovers(Plus a css image gallery). A dis-jointed rollover is when you rollover some text or an image..
- Animated RolloversAnother disjointed Rollover effect that animates a menu pointer as you scroll along..
See also http://www.tjkdesign.com/ which has good 3-column header footer layout.
Yahoo Grids
Pre-built CSS engine from Yahoo.
- developer.yahoo.com/yui/grids/ — Yahoo Grids pre-built CSS.
- developer.yahoo.com/yui/grids/builder — excellent Yahoo CSS Grid Builder helps setup css divs for pages.
Fishcakes Wiki CSS Files
These are external HTML files stored on this server for reference.
-
Fishcakes CSS Language — complete list of CSS codes — Fishcakes Wiki Reference File.
-
CSS Crib Sheet — tips and tricks from Mezzoblue — Fishcakes Wiki Reference File.
-
CSS Fixed Menu — sample and source code from Bert Bos — Fishcakes Wiki Reference File.
-
CSS Tutorial — beginners and advance tutorial from CodePunk — Fishcakes Wiki Reference File.
-
CSS Flexible Layout — simple template outlining creation of divs — Fishcakes Wiki Reference File.
-
IE Mac Oddities — one page guide to overcoming CSS problems with IE Mac — Fishcakes Wiki Reference File.
-
Onion Skin Drop Shadows — one paragraph guide to CSS layers and transparencies — Fishcakes Wiki Reference File.
-
Creating Scalable Figures — guide to CSS Scaling. Also includes HTML includes on page — Fishcakes Wiki Reference File.
-
Creating Scalable Images — guide to CSS Scaling of images with text size increase by user — Fishcakes Wiki Reference File.
-
Sliding Doors — code for creating Sliding Door scalable menu with scalable image — Fishcakes Wiki Reference File.
-
Fishcakes CSS Colours — codes for colours and greys — Fishcakes Wiki Reference File.
-
Fishcakes Colours — codes for pastel colours — Fishcakes Wiki Reference File.
CSS and HTML Resources
General Resources
- local.google.com — Google Supported Browsers, if they support them, so should you.
- opensourcetemplates.org — Open Source Templates for free css and xhtml open source template design. Not much on offer yet.
- oswd.org — Open Source Web Designs download and share free web design templates.
CSS Resources
- jigsaw.w3.org — w3's CSS validator.
- w3schools.com — w3 School's CSS Language Guide.
- css-discuss.incutio.com — CSS Discuss Wiki's excellent guide to using CSS with code examples.
- positioniseverything.net — CSS browser fixes and workarounds.
- wendypeck.com — Wendy Peck's CSS 101 Tutorial with examples.
HTML Resources
- validator.w3.org — w3 XHTML validator.
- w3.org w3's Accessibility Guidelines.
- chami.com — animated favicon generator.
- favicon.co.uk — favicon generator.
- iconlet.com — simple search engine for free icons and images. Exceedingly useful!
- webmonkey.com — WebMonkey Developer's Guide. Exhaustive reference guide for HTML, CSS, Javascript, etc.
- webmonkey.com — WebMonkey HTML Special Characters reference.
- Keywords — generate up to 100 related keywords with estimate of daily search volume.
Scripting Resources
- dhtmlgoodies.com — library of very useful DHTML and Ajax scripts.
- w3schools.com Media Mime Types — list of MIME types supported by MS Internet Information Server.
- anyexample.com — free, tested scripts for PHP, Javascript and CSS.
Templates
- freecsstemplates.org — library of open source HTML and CSS templates.
Fishcakes Wiki Reference Files
These are examples from other sites but archived here as things on the web have a tendency to disappear.
-
Creating Scalable Figures — guide to CSS Scaling. Also details HTML includes on page. Fishcakes Wiki Reference File.
-
Fishcakes CSS Colours — Fishcakes Wiki Reference File. Fishcakes Wiki Reference File.
-
Fishcakes Colours — Fishcakes Wiki Reference File. Fishcakes Wiki Reference File.

