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

Friday, June 07, 2013

Review: Using CSS and SEO update

The External Style Sheet

An external style sheet is a text file that must have the extension .css

eg) "mystylesheet.css"

The HTML page using the style sheet must link to the style sheet with a link written

between <head>and </head>

<link rel="stylesheet" type="text/css" href="mystylesheet.css" />

where href is the path to the style sheet. So, if you put the style sheet in the folder css

the path is href="css/mystylesheet.css" 

 

The Embedded Style Sheet

CSS can also be embedded on the same page as the html
The styles must be between <head> and </head> 
and between
<style type= "txt/css" >
</style>

In-line styles

CSS can also be written "in-line" in between the <body> and </body>

<div style=" width:960px; height:100px; background-color:silver;">

CSS Priority ---The Order of Interpretation

#1 Priority is the Browser's default value... 
#2 The External Style sheet
#3 The embedded Style Sheet
#4 The in-line styles

Remember, you can style ANY html element

selector {property: value;}

Where:

The selector is:
*, Universal, applies to all elements
Any element
A class
An ID
An html5 semantic


Updated the links to W3C's Validation services

Tidy

If you need to convert a page to Xhtml/html5 or you are having trouble getting the page to look the way you want, Tidy may help you solve your problems

Tidy, well cleans up and fixes (if it can) your your markup. The validation and tidy services listed below are built into or linked to from most web editors

There are some older on-line services, like Tidy On-line, or Page Valet, might be useful to you...

Validate

The Basics - what you should run on all your web pages

The SEO page has also been updated


Thursday, May 16, 2013

Backgrounds and Transparency

Backgrounds

Seemless backgrounds are easy to implement and they load fast! Click on the backgrounds…

Back 5Back 2Star bak 

I made these along time ago… using my Amiga and a program called ImageFX… They tile without visible edges. The first one is "embossed", a nice watermark effect!

If you use the .gif file format you can animate your background (animation is one of the capabilities of the .gif file format…) I found this twinkle star pattern on the web and use it for my home portal page, yep who can resist twinkling stars!

Starsglow1

You can find many "free" and "Royalty Free" seamless backgrounds on the web.

Just search using the following key words free seamless web page backgrounds

You use CSS to place the backgrounds (Yes you can have more than one background on a page!)

with a declaration in the body selector …  you can also put backgrounds in divs, paragraphs, etc.,

body { background-image: url("images/darkpattern.png"); } 
div { background-image: url("images/foo.png"), url("images/bar.png"); } 
p { background-image: none; }

Full Page Backgrounds

In The "Wrapper"

On my Astronomy Class Portal Page I placed a "full" image in the background in the div "wrapper" I wanted to use an image that would fire up your imagination, but to "see" the image the aside and section content areas  had to be transparent…

Astro bak

#wrapper {
position: relative;
background-image: url(images/wrap-bak3.jpg);
margin: 10px auto 0 auto;
width: 1024px;
height: 768px;
}

aside {
 color: #000;
 background-color: #fff;

/* for IE */
filter:alpha(opacity=60);
/* CSS3 standard */
opacity:0.6;
}

section {
color: #000;
 background-color: #FFF;
margin: 0 30px 0 5px;
/* for IE */
filter:alpha(opacity=60);
/* CSS3 standard */
opacity:0.6;
}

Straight forward stuff. There is a usability issue here… this concepts works as long as the text is readable!

Image Backgrounds Beyond the Wrapper…

For the first revision of my Curling website way back when (5-6 Years ago) I made a  background that looked like this

I made it 1650 x 1050 pixels 

Bg2

In a browser it looked like this… sorta I don't have the old css for the <header> easily accessible, but you get the idea…

Layout002

To position the graphic I used a background-position declaration for the background image…

body {
color: black;
background-image: url(/images_global/bg2.jpg);
background-repeat: repeat-y;
background-position: center top;
font-family: Tahoma, Arial, sans-serif;
margin: 0px;
padding: 0px;
}

Other Background Image uses

I first saw this concept at a Science Fiction movie/tv review website and used the concept for my curling website

http://www.mania.com/science-fiction-television-anime_category_67.html

The Winnipeg Free Press is putting advertising in the background… Now that's going beyond the edge!

Layout003Layout004

Wednesday, May 09, 2012

Welcome to How To Build a Website!

Our Objective

  • To build a web site consisting of at least 3 web pages.
  • Acquire a domain name
  • Sign up with a HOST

How?

Discussion
Domain Names and registration
Signing up with a host

Domains and Hosts

What's the most important "THING" on a web page? What are the main parts of a web page?

Can you List them?

Write THEN CHECK OUT THIS LIST...

How do you put a web page together?

  1. The Content First
    • Create it with a text editor
    • Later we will mark it up with xhtml/html5 in your web editor
  2. The Layout
    • Will be Created with CSS3 in your web editor
  3. The Style
    • Will be Created with CSS3 in your web editor

Web Page Creation: The Preparation

You'll need 2 folders on YOUR flash drive and/or Home computer

  1. Make a "Master" website folder
      1. Name it with "Your name" something like "Garry-MasterWebsite"
        1. This folder only contains the files that makes your website work.
      2. And Make A "Webstuff" folder.
        1. This folder will contain the parts you collect to make your website...
          1. Things like, IDEAS, Text files, widgets, lists of links, graphics, pictures, videos... etc...

    Web browsers

    Here's a list that links you to web browser publishing sites Download all the browsers! Install them!

    The Web Editors

    If you already have a Web Editor, by all means, use it! The following is a link to a web page that discusses the various kinds of web editors and give you some choices. The goal here is to find a web editor that you like, and that will help you build your web site. The Web Editors

    Homework:  Write the most important part of your web pages

    The Content
    Always write the content first as plain text with no formatting.

    You'll find some ideas at this web page that will help you "layout" your web page. Lesson 1: Penciling it out!

     

    Most of all have fun! Get stuck, send an e-mail…

    Navigation Links

    • Week 1 (That's this page on my web site at the bottom of the page you'll see an RSS News feed that displays links to the last 5 articles on the class website blog)
    • Home   (Class Portal page)
    • Lesson 1 (Interesting stuff)
    • Domains and Hosts Resources 
    • Contact

    Vocabulary 

    URL
    ---Uniform Resource Locator
    HTML & CSS
    --- HTML, Hyper Text Markup Language, creates the content of a web page.
    --- CSS, Cascading Style Sheets, Creates the Styling for a web page.
    Provider
    --- Physically links your computer to the Internet.
    Host
    --- Provides the Computers (servers) to store and host your web site on the internet.
    Domain Name (Server) (DNS)
    --- makes a recognizable name for the actual numerical Internet address.
    Got a question? 'Holler!

Monday, October 31, 2011

Drop Caps --Add some flair to your web pages

The web page below is located here

Thursday, October 27, 2011

Border TRouBLe, a CSS shorthand tip!

TRouBLe is a mnemonic, a learning aid... for CSS values for border, padding and margins

Instead of writing:

  • border-top-width: 2px;
  • border-right-width: 3px;
  • border-bottom-width:4px;
  • border-left-width:3px;

 

 

 

 

You can just write border-width: 2px 4px 6px 8px;

The order is Top, Right, Bottom, Left easily remembered with the word TRouBLe!

Also if you don't want the right side to have a  value at all, instead of writing 0px, don't add the unit, just write 0

For example:

border-width: 2px 0 6px 8px;

 

Thursday, October 20, 2011

Week 3 Review -The Box Model and Basic CSS

Week 3 Outline



CLASS #3 Notes:
“People don't read web pages,
they scan them!" --anon

 

The Box Model. Div's and CSS

Subjects
  1. The Box Model
  2. Div's
  3. CSS, some simple rules
  4. How to Make a Banner/Header

 

Objective

To build a web site consisting of at least 3 web pages.

This week

  • How to use the <div></div> element. The Box Model
  • Styling with CSS

How! Web Page Creation Preparation for Week 3

Resources for this week -- go to these URL's

The Box Model
http://uofgts.com/BasicWD/BoxModel.html

Basic CSS Rules
http://uofgts.com/BasicWD/CSSRules.html


Homework

Work through the Banner Tutorials


Navigation Here

 


On-Line and desktop References for html and CSS

CSS at Sitepoint.com

HTML at Sitepoint.com

Sitepoint also offers a "plug-in called Code Burner, it's a quick interface that resides on your desktop or in your FireFox Browser. It is linked to the sitepoint on-line references for CSS and HTML. Check out Code Burner!


Graphically Challenged?

The Cool Text web site will help you design a logo. The Cool Text Wizard

Thursday, April 29, 2010

Create A Web Site - Week 3 Making a Banner

Making a Banner
I put together a 7 step tutorial that takes you through the steps of making a styled banner
starting with text, then xhtml markup, then adding the CSS styling (embedded).

Files needed...
1. A background gradient or image
2. A logo...

You'll find page 1 here

On pages 2 - 7

on the left hand side of the page is what the markup looks like in a text editor
On the right hand side is what the markup looks like in a web editor...

Got a question? 'Holler as usual...

Wednesday, April 28, 2010

Finding Web Page Editing Nirvana

Is there an easier way to make and edit web pages???

I think the WYSIWYG (What You See, Is What You Get) Open Source Web Editor Komposer is a great place to start making web pages, especially if you are just starting out. It's available for PC, Mac and more... There are better alternatives but they are NOT all free or open source like Kompozer. The best part is that Kompozer is currently being updated.

Several many years ago (once upon a time?) there were only a few solid web editors. Today there are many more choices and the competition is growing...

The combination that I use on my Mac are
Smultron, Komodo Edit, Kompozer Coda and Dreamweaver
For the specific task of making photo web galleries I have used iWeb, Lightroom and JAlbum.
In the past I tried Shutterbug (Mac) and Picasa (pc).

JAlbum is free, it's available for PC and Mac. It's a great web album utility and time saver, you can check it out and download it from here...
http://jalbum.net/

Here's a sample JAlbum Gallery

The reason I like the following programs is that I have existing web pages to edit, some of the web editors out there cannot load and edit straight html pages!
These 'Graphical" editors use an intermediate step... between html text editors and wysiwyg editors... they save the Web pages/projects in their own format... Then, when you upload to the web these programs convert their graphical formatted versions to html!

These editors can load and edit HTML pages
Komodo Edit (an HTML ope source and free editor) for PC and Mac
For PC's
The CoffeeCup HTML Editor 2010 ----is 2 Editors in 1 !
http://www.coffeecup.com/html-editor/

TopStyle (this is one terrific CSS/HTML textstyle editor a lot like Coda on the Mac)http://www.blogger.com/img/blank.gif
http://www.newsgator.com/Individuals/TopStyle/Default.aspx

MicroSoft's Web Expression 3 ---The price has come way down...It's now $149.00
http://www.microsoft.com/expression/products/overview.aspx?key=web
(it's a real long download)

Adobe's Dreamweaver CS 5
http://tryit.adobe.com/us/cs4/dreamweaver/index.html?sdid=DOPEY

These Graphical Editors are fun to use but Can not edit existing web sites

A free Graphical Web Editor called WebDwarf (PC Only)
http://www.virtualmechanics.com/products/dwarf/

Kinda fun to use, especially if you are artistically inclined...

it's big brother/sisters are SiteSpinner and SitesSpinnerPro
http://www.virtualmechanics.com/webhelp/sitespinner.html

For Photoshop Users there is a plugin called SiteGrinder
http://www.medialab.com/sitegrinder/

On the Mac there several graphical oriented editors
RapidWeaver
http://www.realmacsoftware.com/rapidweaver/

and
Freeway - Freeway Pro
http://www.softpress.com/products/index.php

And, there are others, but the ones mentioned have caught my attention so far
Oh, so many choices, so little time...

My current main working environment is Coda on the Mac

and I love it!

What you say?

--
Mo Eb , Garry
http://uofgts.com


o "It's the reason we came from the mud, don't you know/'Cause we wanted to climb to the stars." --- David Crosby