Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Wednesday, 1 August 2012

Changing the Mouse to a Link Pointer

While working on a collapsable vi cheat sheet over the weekend, I needed to figure out how to make the pointer look like a link when mousing over a header. Turns out it is pretty easy. Just create a style like this:



.Toggle { cursor: pointer; }



Add that to the header and it acts like a link even when it is not.

Wednesday, 20 June 2012

960px Grid Design

What is a 960px grid design? I had the same question myself. I stumbled across this concept when a co-worker wrote a post about Twitter Bootstrap. This is a HTML5 and CSS3 framework for developing web applications using 960px width and a 12 column grid. So why 960px and why a 12 column grid? Well the answer to that is a bit complicated. I found the 960 Grid site which provided a little more information.



What is a 960px Grid system?

A process for designing web sites based on classic print typography principles. The width is based on a common minimum laptop display size of 1024x768. The 960px size fits well on that screen size. In addition, 960 gives you a number of options for creating grids to lay out your page on. At least that is my understanding, I have a lot more reading to do.



Why use it?

Bottom line, you get beautiful design. If you go to the 960.gs site, they include a number of examples. It just seems to give sites a nice balance and weight to the layouts.



Site Redesigns

This perked my interest as I am in the process of redesigning my sites for HTML5 and mobile devices. It is still early days, but I have some preliminary stuff up. I have only applied the 960 grid to the Blue Sky example, I have not got to it yet on Abbey Workshop.

Anyway, as I make progress I will try to make some additional posts on the subject.

Friday, 25 May 2012

Coda and Diet Coda on Sale Today Only (5/25)

Are you a fan of HTML, CSS, Javascript, and PHP development on the Mac? If so then you are probably a fan of Coda, which is a Web Site development tool for OS X made by Panic Software.



New Version 2

Well the new version 2, is out this week. Panic is offering Coda at 50% off this week only for early purchasers Today, Friday 5/25, is the last day of the deal so if you are interested, head to the Mac app store and get code for $49.



Coda 2





Diet Coda

In addition to Coda 2, Panic is releasing a programming editor for the iPad called Diet Coda. I have always found the idea of programming on iPad type devices intriguing. So for $9.99, definitely give this app a look. It looks like it might make the whole coding thing work on a pad.



Diet Coda for the iPad.




Thursday, 1 March 2012

Awesome CSS Resource from the Mozilla Foundation

Firefox Logo

The folks over at the Mozilla foundation have created an awesome CSS resource for the Internet.







Main Page

CSS Reference

CSS Tutorial



Obviously a lot of work went into this. It has a nice UI and a lot of examples, which are often missing from a lot of CSS references. Anyway, it will be a welcome addition to my list of resources.

Wednesday, 14 December 2011

How do I un-indent an HTML list with CSS?

CSS ButtonI was looking around for the answer to this question and could not find a short answer. Thus the post.



Question: How do I un-indent an HTML list with CSS?



Answer: Set the padding for the <ol> or <ul> tags to zero.

ul { padding:0; }



That's it!

Thursday, 2 June 2011

Markdown Cheat Sheet

The best way to learn about something is to create some sort of project. So to learn about HTML5, CSS media queries, and offline web page storage I created a cheat sheet template. The first example, a Markdown syntax Cheat Sheet.



Markdown Cheat Sheet



The page uses JQuery to allow you to show or hide sections. The interface should work both with a mouse and with touch. There is a CSS style sheet for any page the size of a iPhone 4 or smaller, and a style sheet for anything larger. The page has a manifest file so it can be used offline.



I will write up the things I learned from this little project in other posts.

Sunday, 29 May 2011

iPhone Screen Dimensions, Pixel Height and Width

iPhone iPad pictureWhile working on CSS Media queries, it came to my attention that I needed to know the screen dimensions for the various versions of the iPhone. So here they are, in a simple format.










Device Dimensions (Height x Width)
iPhone 4 960x640
iPhone 2, 3, 3GS 480x320
iPhone 480x320

Monday, 31 January 2011

Using CSS to Style for Web and Mobile

CSS ButtonFound this post on bloop.co on how to style a site for desktop and mobile form factors. One set of CSS handles several different form factors. I can't say I understand all it, but I am excited to learn more. :)



So want to learn what a CSS Media Query is? Check out this tutorial on CSS Tricks.

Monday, 3 January 2011

Sites that Landed Jobs at 37 Signals

Webkit icon

The original post dates back to before Christmas, and shows some of the sites created by 37signals job applicants.. The design of these job applications and some of the reference sites deserves a look. Simple, clean, elegant, clear would be just some of the adjectives to describe the links. Definitely the sort of end product we should all strive for. Grats to 37 Signals and the new hires.


Would anyone consider a paper resume after looking at these?

Monday, 25 October 2010

Mozilla Browser Interface Design with HTML and CSS?

Firefox LogoThe Mozilla org is experimenting with defining the browser user interface with HTML, CSS and JavaScript. Technologizer has the story with links here.



This could be really cool stuff. This would provide quite a bit of flexibility in the interface.

Monday, 18 October 2010

Developing for Google Blogger

Google LogoI am looking into developing my own template for Google's blogger tool. So looking around I found a couple of resources of interest.

  • Widgets - If you want to make widgets you can find the scoop here. You can do a lot more than that if you have an interest. The documentation is all on the site.

  • Blog Templates - Base templates and documentation is on this Google group. The details are in the Pages section.

Sunday, 30 May 2010

CSS Tip: Remove Part of a Border

CSS ButtonOften when working with a box thingy, you want a border on 3 sides, but not four. Normally, you would code that with something like this:



.someBoxyThing{

border-top:1pt solid black;

border-right:1pt solid black;

border-left:1pt solid black;

}




Instead of doing this, create a complete border, then eliminate one side. For example:



.someBoxyThing{

border:1pt solid black;

border-bottom:0px;

}



Now you have a three sided box with the bottom side eliminated.  Nice. Shout out to websiteoptimization.com for the tip.

Thursday, 8 April 2010

CSS: Center an Image with CSS

CSS ButtonI have created a short write up on how to center an image using CSS. Two methods are covered, using a div and defining rules for the img tag directly. Enjoy!

Friday, 2 April 2010

New Blogger Template Designer

Google LogoThe Google Blogger site is testing a new blog designer tool. I just noticed the announcement is a little old, but its new to me. So what's new about this design tool?



First a bunch of new templates for your blog. Very cool looking templates. In addition, the new template designer gives nondevelopers a lot more control over their templates. The main caveat? The new designs will not work on IE 6. But that is not really a big deal, because it is time to move beyond IE 6.

Sunday, 7 March 2010

Convert an Unordered List into a Simple Table

CSS ButtonWorking on a page last night I decided I would like to have a different look for some lists. So I created a Thin List Table that turned out pretty good. Really easy to use and good for discussing code samples.

Symmetry Restored to How To Pages

Spent some of last nite and a lot of today fixing up the CSS on my How To pages. Check out the CSS Pages here.

Saturday, 6 March 2010

CSS Rollover Menu

CSS Button

I added a how to on creating a rollover menu with CSS. A little bit easier than I thought given the code.



After working on this, it seems like using a div as a container for special lists seems like a really good idea. That way, you can right the list the same way every time and just swap out the div class to change is styling. The HTML ends up being really simple.

Tuesday, 26 January 2010

CSS Right Aligned Form Labels

CSS Button

I have added a quick write up on how to create a HTML form with right aligned labels. Pretty simple to do really, but I wanted a reference example for my own benefit.