Ph.Creative is a full service design and communications agency specialising in web design, SEO, internet marketing and branding.

Liverpool

London

Manchester

New York

Call us on +44(0)151 708 2280 or liverpool@ph-creative.com

Call us on +44(0)20 3301 4503 or london@ph-creative.com

Call us on +44(0)161 880 0122 or manchester@ph-creative.com

Call us on (001) 646 340 1025 or newyork@ph-creative.com

5 Favourite CSS Tips

by Jim Taylor 25 September 2009 at 11:05

Center A Web Page Layout

One of the most common layout questions asked about when building a website has to be how to create a fixed width layout, with the container floating in the middle of the page. Add the following code to the CSS:

#container
{
width: 700px;
margin: 0 auto;
}

Then add <div id=”container”></div> in the body of your HTML to give an automatic margin on both its left and right, ensuring that it's always placed in the centre of the screen.

To quickly see if your container is there simply add:

#container
{
width: 700px;
margin: 0 auto;
height: 200px;
background: red;
}

If a red box appears in the middle of your page, you know the container is sitting in the correct place.
You can then remove the height and background from the CSS for this ID.

Font Shorthand

When styling fonts with CSS you may be doing this:

font-size: 110%;
line-height: 140%;
font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-family: arial,serif;

You can use this CSS shorthand property instead:

font: 110%/140% bold italic small-caps arial,serif

Please Note - This CSS shorthand version will only work if you're specifying both the font-size and the font-family. Also, if you don't specify the font-weight, font-style, or font-variant then these values will automatically default to a value of normal.

Content Selection Colour

When selecting content on a web page by holding down the left mouse button, your browser makes the selected the content background colour blue and text white. This can be styled but unfortunately doesn’t work in IE, but it's still a nice touch. Add the following to your style sheet and view your site in Firefox.

*::selection
{
background: black;
color: yellow;
}

*::-moz-selection
{
background: black;
color: yellow;
}

Using Two Classes Together

Usually attributes are assigned in just one class, but this doesn't mean that that's all you're allowed. You can assign as many classes as you like!
For example: <p class="left dark”>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the rules assigned to both ‘left’ and ‘dark’. If any rules overlap between the two classes then the class which is below the other in the CSS document will take precedence.

Image Replacement

It's always advisable to use regular HTML mark-up to display text, as opposed to an image. Doing so allows for a faster download speed and has accessibility benefits. However, if you've got your heart set on using a certain font and your site visitors are unlikely to have that font on their computers, then really you've got no choice but to use an image.

For example, you wanted the top heading of each page to be ‘SEO Tips’, as you're an SEO Blogger and you'd like to be found for this phrase in the search engines. You're pretty set on it being an obscure font so you need to use an image: <img src="seo-tips.gif" alt="SEO Tips" />

This is OK but there's strong evidence to suggest that search engines don't assign as much importance to alt text as they do real text (because so many webmasters use the alt text to cram in keywords). So, an alternative would be: <div id=”logo”><h1>SEO Tips</h1></div>

Now, this obviously won't use your obscure font. To fix this problem place these commands in your CSS document:

#logo
{
background: url(seo-tips.gif) no-repeat left top;
width: 200px;
height: 50px;
}

#logo h1
{
text-indent: -9999px;
}

The image, with your fancy font, will now display and the regular text will be safely out of the way, positioned 9999px to the left of the screen thanks to our CSS rule.

It’s also worth making your H1 a hyperlink: <div id=”logo”><h1><a href="#">SEO Tips</a></h1></div> and adding the following to your CSS:

#logo h1 a
{
display: block;
width: 200px;
height: 50px;
cursor: pointer;
}

Currently rated 4.8 by 4 people

  • Currently 4.75/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

css | development

Top SEO Hints and Tips

by Ryan Lester 22 September 2009 at 10:03

I am about to tell you some very useful and proven techniques to guarantee you and your website SEO success. These are the best ways to make sure your website is found among the other competing websites in search engines, such as Google or Bing.

  • Before you do anything, you need to find out who your target audience is for you business/website. When you find out who they are, you need to optimize your site for your target audience so it is more likely to be found. To do this, you need to find out the most relevant keywords for your target audience and input them into your website.
  • Google Adwords is an extremely good tool to find the best keywords for your business/website. This is so when you want to put keywords into your website, you know the best ones to go for that many people search for.
  • When selecting the domain name for your website, try to include the keywords that you are trying compete for. This is an excellent way to rank high in a search engine for the keywords that you select. However try not to use too many hyphens in your domain because this may not look professional. A good example would be (www.keyword-keyword.co.uk)
  • Content is key! A very useful technique would be to create as much content for each page as you possibly can with keywords written in it. This will help search engines find your website easier if they type in a phrase or keyword that happens to be written in you content, and more content gives you more of a chance of being found!
  • The title for each page that is created in your site should be optimized with the keywords that you have selected for your website. This is a very useful method because the keywords in your title tag are partly how they rank websites in their ranking system.
  • Headings play an important role in organizing information on a webpage. So when you are creating the page template, try to include at least H1-H3 for your headings. Headings make it easier for search engines to locate information which increases your potential to be higher up in the search engine.
  • Another good tip for SEO success is to re-name all images and media with the keywords that you have chosen for your particular website. Such as (keyword-keyword-01.jpg). This helps because a search engine like Google will see your webpage more relevant than others because it will have more keywords in more places.
  • And finally, another way to climb the search engines ranks is to link build! Link building can be done in a number of ways, from article submissions to website directories. These methods are extremely useful and there are a number of other link building techniques that will help you with achieving SEO success!

Thank you for reading my blog about how to make your website successful by using Search Engine Optimization. Now you are ready to take on the World Wide Web!

Currently rated 4.5 by 12 people

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Google | Search | Search Engine Optimisation | Yahoo

Paul Ward wages Germ Warfare

by Matt Hoey 4 September 2009 at 15:14

Germ Warfare have been working extremely hard over the past few months. After their debut on Dragon's Den they've reinforced their already successful product range into THE number 1 must-have products for the prevention of Swine Flu. With a driving force of exposure as powerful as millionaire Dragon investors wanting a piece of Paul's company, it's no wonder he is receiving massive orders from banks, airports and other organisations for Germ Warfare Stock.

Paul, who trained for six years at night school to become a chemist after he left his career as an Army medic, said the special formula in Germ Warfare kills superbugs like C-diff, MRSA and salmonella, and recent tests revealed that products such as the firm’s liquid soap kill swine flu virus.

However, the extra business has come with it's consequences as employees are working 12 hour shifts to meet demand and the surge of enquiries has forced the company to take on extra staff. 

Paul said:

“So far we’ve sold 500,000 units across the product range and we’ve supplied some large banks and one worldwide bank.

“After this we’re looking to market sheets that contain bug-killing chemicals to hospitals.

“Those years at college definitely paid off.”

As well as a successful website, Germwarfare also run a successful Swine Flu Prevention Facebook Page whcih you can become a fan of here.

Currently rated 4.0 by 5 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,


 

Search

Recent Comments

Comment RSS

© Copyright Ph.Creative 2009. All rights reserved. Terms & Conditions | Privacy Policy | Sitemap (XML) | Log in

Website design by Ph.Creative

^