Blogging

Blogging resources and information for virtual assistants and their clients.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 03-25-2008
Brianna Young's Avatar
Junior Member
Small Business Design Blog: RescueTime - Indie Business Productivity
 
Join Date: Sep 2007
Location: Oklahoma
Posts: 279
Send a message via Skype™ to Brianna Young
Default CSS and Wordpress - Part One!
The long-awaited CSS post is ready for your reading pleasure! This will be a several-part series because there is so much to learn about CSS! This first article will cover a few basic elements so you can get familiar with CSS and how it works. Future articles will cover specific elements in greater detail. This series of articles is not intended to teach you how to create CSS from scratch, but will teach you how to update and edit current style sheets that are already created.

Style Sheets come in 3 varieties: internal, external, and inline. For our purposes, this article covers items relating mostly to internal and external style sheets, as these are the most common.

What is CSS?

CSS stands for Cascading Style Sheets and is a markup language primarily used to define fonts, colors, and layout of web pages. CSS was developed as a way to separate the content of a site (written in HTML or XHTML) from the styling (written in CSS). This makes for less complex coding in web pages and more control over the layout and styling of a web document.

Why should I know CSS?

CSS is something all graphic designers should learn, for the obvious reasons. What about virtual assistants? Well, if you have a Wordpress-based website or blog, you have already seen what CSS can do! Why not get familiar with the different elements of the CSS language so you can make changes to your own website's layout and styling?

CSS Basics

Learning CSS is much like learning HTML. There are several basic items to become familiar with before we go into detail.

Syntax: Selectors, Properties, and Values

Selectors define which HTML elements in the web page you will be altering with the CSS code. The typical CSS statement looks like this:

SELECTOR { PROPERTY: VALUE }

"PROPERTY" is the CSS element you wish to alter and "VALUE" represents the value of the property that you wish to see on your web page.

For example, if you wish to define a value for your paragraphs, the statement would look like:

p { PROPERTY: VALUE } "p" for paragraph

So what does CSS do to the HTML code?

Here’s an example:

When the CSS code looks like:

Code:
p.one{ color: blue; }
p.two{ color: red; }

The HTML code looks like:

<html>
<body>
<p>This is a normal paragraph.</p>

<p class="one">This is a paragraph that uses the p.one CSS code.</p>
<p class="two">This is a paragraph that uses the p.two CSS code.</p>
It displays as:

This is a normal paragraph.

This is a paragraph that uses the p.one CSS code.

This is a paragraph that uses the p.two CSS code.

This bit of code uses what is called a “class selector,” meaning that you can define two different styles for the same HTML element. Note the "p.xxxx" This indicates paragraph one and paragraph two.

You can use this information to make changes to the style sheets applied to your own website.

For example, you may see:

Code:
html, body                 
{  
background-color: #FF9933;
font-family: tahoma, verdana, sans-serif;
font-size: 12px;
color: #663300;
line-height: 18pt;
}
These values can be changed to reflect the styling you want. Your font can be larger or smaller, the background color can be changed, and the font family can be change to something with a serif. You can even substitute other hexadecimal (web) colors to change the background color and font color to something that tickles your fancy!

In the example above, "html, body" is the selector, "background-color, font-family, font-size," etc. are the properties, and "#FF9933, 12 px," etc. are the values applied to those properties. The code is written in this format to make it more readable, but note that the properties can all go on one line within the { }.

Selectors can also be grouped. For example:

Code:
h1,h2,h3,h4,h5,h6 
{
font-family: “sans-serif”
}
This would make the headings on your site all show in a sans-serif font. Note: when the value contains two words, they must be in “ quotes“.

There is also a selector called an “ID Selector.” These are used to apply a value to exactly one element, where as class selectors can be applied to one or more elements on a page.

The CSS code would look like this:

Code:
h1#title
{font-family: “sans-serif”
}
And the HTML would look like:

Code:
<h1 id=”title”>This is a title.</h1>
This title would show on the page in a sans-serif font.


************

That does it for today’s installment of CSS and Wordpress! Study the CSS styling used on your own web pages and even change a few things if you’re feeling brave!

Feel free to post questions and I’ll answer them as soon as I can!

Stay tuned for the next installment!
...
__________________
Brianna Young, VA and Graphic Artist
www.virtualsolutionsadmin.com
"It's not the piano that makes beautiful music. It's the person sitting AT the piano!"
Reply With Quote
    #2 (permalink)  
Old 03-25-2008
Modern Marketing Support's Avatar
Resident Member
Company name: Modern Marketing Support
 
Join Date: Sep 2007
Location: Ontario, Canada
Posts: 1,249
Default Re: CSS and Wordpress - Part One!
You are too awesome. Thanks for posting this Bri!
__________________
Shari Sultana
Online Business Manager (marketing for retail ecommerce)
Reply With Quote
    #3 (permalink)  
Old 03-25-2008
Tess's Avatar
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,131
Blog Entries: 3
Default Re: CSS and Wordpress - Part One!
Wow! Very nice
What a great resource - can't wait to see the rest of your series!!
__________________
Create a welcome packet for new clients with this guide and free templates!

(Available in PDF and Kindle versions)
Reply With Quote
    #4 (permalink)  
Old 03-25-2008
Delady's Avatar
Junior Member
 
Join Date: Feb 2008
Location: Chicago, IL (USA)
Posts: 276
Default Re: CSS and Wordpress - Part One!
Excellent resource Brianna!

This handy post gets printed out and added to my resource wall...I'm staying tuned for part 2!

Thanks
__________________
Perfecting Assistance Services
www.perfectingassistance.com
Allowing you time to PERFECT your Business!
Reply With Quote
    #5 (permalink)  
Old 03-25-2008
New Member
 
Join Date: Mar 2008
Posts: 27
Default Re: CSS and Wordpress - Part One!
Thank you so much! I can not wait to try it out.
Debbie
Reply With Quote
    #6 (permalink)  
Old 03-25-2008
Codehead's Avatar
Administrator
Company name: Codehead LLP
My latest blog post: Mac Performance Benchmark App
 
Join Date: Apr 2007
Location: WA
Posts: 175
Default Re: CSS and Wordpress - Part One!
Wow! Awesome!
Great work, I rated the thread and gave it a 5 star
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote
    #7 (permalink)  
Old 03-26-2008
White Rose's Avatar
Active Member
Company name: Brevos
 
Join Date: Feb 2008
Location: Michigan
Posts: 871
Default Re: CSS and Wordpress - Part One!
Very interesting! I learned from it, thank you so much for sharing.
Reply With Quote
    #8 (permalink)  
Old 03-26-2008
New Member
 
Join Date: Mar 2008
Posts: 24
Default Re: CSS and Wordpress - Part One!
Thanks Brianna for this post; you make my day!!!

Cindy
Reply With Quote
    #9 (permalink)  
Old 03-26-2008
vainparadise's Avatar
Resident Member
Company name: A Virtual Assistant in Paradise
 
Join Date: Oct 2007
Location: Florida
Posts: 1,854
Blog Entries: 1
Send a message via Skype™ to vainparadise
Default Re: CSS and Wordpress - Part One!
Great resource Bri, thanks for sharing!
__________________
Dawn Riley
A Virtual Assistant in Paradise
Our business is about making yours better
Reply With Quote
    #10 (permalink)  
Old 03-26-2008
Brianna Young's Avatar
Junior Member
Small Business Design Blog: RescueTime - Indie Business Productivity
 
Join Date: Sep 2007
Location: Oklahoma
Posts: 279
Send a message via Skype™ to Brianna Young
Default Re: CSS and Wordpress - Part One!
I'm so glad everyone has found this so helpful! The next installment will be about specific ways to change CSS in Wordpress themes. Time to dress up our blogs!
__________________
Brianna Young, VA and Graphic Artist
www.virtualsolutionsadmin.com
"It's not the piano that makes beautiful music. It's the person sitting AT the piano!"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is SEO part of the deal? americanrose Search Engine Optimization (SEO) 14 03-08-2010 02:28 PM
Cooking with Articles...how to make your business sizzle! (1-3 of 3 part series) Modern Marketing Support General Marketing and Networking 17 02-11-2008 11:15 AM


All times are GMT -4. The time now is 05:00 PM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable WordPress Themes
Create a Professional New Client Welcome Packet
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.