Archive

Archive for the ‘CSS’ Category

Using none web standard fonts with Google Font API

May 20th, 2010 Flashnutz No comments

Google has launched Google Font API and Google Font Directory Beta.

A developer will be able to link and use a range of fonts legally without the need of them being installed on your machine or web directory, through a single line of code.

The Google Font Directory currently has 18 licensed fonts available like the font I'm using in this article and will offer more as time goes by.

Below is an example of how to use Google Directory.

For example if you want to use the font used in this article Droid Sans you would copy the code below and put it as the first element in the <head> of your document.

 
<link
href='http://fonts.googleapis.com/css?family=Droid+Sans'
rel='stylesheet'
type='text/css'>

The API will generate the necessary CSS specific to the user's browser so you can use the font on your page. Simply use the font Droid Sans in your CSS font stack like any other font, for example:

h1 { font-family: 'Droid Sans', arial, serif; }

And that's it. To easy!

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Remove dotted lines from links

February 18th, 2009 Flashnutz 3 comments

The dotted lines that appear around links is an accessibility feature for people who can't use a mouse and are forced to use a keyboard to navigate. It works well when you use the tab key but it still shows when you are using a mouse.

If your working on government sites that need w3c compliance then I would not recommend removing this feature, otherwise use the CSS code below.

a {
      /* Mozilla */
	outline:none;
 
	/* IE */
	-moz-outline-style: none;
   }

You could get fancy and use the dotted line to your advantage. With CSS you can change the dotted line type to solid or change its colour to suit the design.

Good Luck!

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Categories: CSS Tags: ,

IE6 link problem – links are not clickable in some areas of the page

January 13th, 2009 Flashnutz 2 comments

IE6 does not recognize links when placed over an absolute positioned background .png image.The solution is simple. Simply add "position: relative" to you links.

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Categories: CSS Tags: , ,

How to remove yellow background from Google Autofill in your web form

January 13th, 2009 Flashnutz No comments

The best way is using CSS (Cascading Style Sheets) by adding background colour for your form field with !important.

For example:

input {background-color: #FFF !important;}

Post to Twitter Post to Plurk Plurk This Post Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

Categories: CSS Tags: ,
SEO Powered by Platinum SEO from Techblissonline