Website Babble Webmaster Forums  
     Click to Download a Free, 3 Column CSS Web Template | Watch Instructional Video
  #1 (permalink)  
Old 04-19-2008, 07:20 AM
Regular Babbler
 
Join Date: Apr 2008
Posts: 50
Default Wanting to transition to total css

Does anyone know much about transitioning from straight html to css? As I write I am in the process of doing such.

Which is the best procedure and what is the correct method of laying out a css stylesheet?

Last edited by bigtunafan; 04-19-2008 at 10:53 AM.
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 12:51 PM
James's Avatar
Master Babbler
 
Join Date: Dec 2007
Posts: 314
Default Transition

One excellent way to get going is to go through the css tutorial on w3schools.com.

SitePoint has a terrific book, Build Your Own Web Site The Right Way Using HTML & CSS (buy a lot cheaper on Amazon).
__________________
Good Success!

James
Douglas County Master Gardeners
"We don't always get what we want, but we always get what we expect."
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 02:03 PM
Regular Babbler
 
Join Date: Apr 2008
Posts: 50
Default

Thanks for the kind reply. I have (to the best of my thinking) hopefully done everything right on one of my test pages. However I can't get my footer to center. Could someone more advanced than me take a look and tell me what I have done wrong? Here is the test page Test Page
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 03:40 PM
James's Avatar
Master Babbler
 
Join Date: Dec 2007
Posts: 314
Default Centering footer

With CSS you would insert a "class" in the html (or sometimes an "id") and place instructions to style it in the css style sheet. Looking at your html I see you have made some classes in the footer tags but have no corresponding markup in the css where you would use "text-align."

.footer {
text-align: center;
}

In addition I see some more general issues I would look at in trying to change to css. First, in dealing with the footer itself, you have made separate classes for each of the three lines (links, etc.). That multiplies the work. Better to enclose the whole in a "div" with one class, like "footer" and style it as in the above markup.

More important, however, is that if you want to go with css, and I suggest it is the only way to go, you need to drop the whole table construction. You lose most of what you gain with css by trying to use css to style table content. Tables should be used only for tabular data when you have a need for that.

With css, you can place each paragraph, each div, or whatever just where you want it and style it as you wish. If everything is in a a table cell you have lots of problems to deal with.

Again, try reading through the html and css instructions at w3schools.com. I think you will find it helps a lot.
__________________
Good Success!

James
Douglas County Master Gardeners
"We don't always get what we want, but we always get what we expect."
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 07:43 PM
TechieGuy's Avatar
Supreme Babbler
 
Join Date: Jul 2007
Location: Canada
Posts: 605
Default

You also have to be careful with CSS and DIVs. I still have many visitors using IE6, which has a problem rendering CSS and DIVs. If you don't do it right, your sidebars could wind up at the bottom of the page.

Make sure you verify your site in multiple browsers and versions. Whatever you do don't mention to your visitors that your site looks better in a certain version of a browser.
Reply With Quote
  #6 (permalink)  
Old 04-25-2008, 03:03 AM
Regular Babbler
 
Join Date: Apr 2008
Posts: 50
Default

Ok I went table less and purchased the book directly from Site point. I want to thank each of you for your contribution to my cause.
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 On



All times are GMT -6. The time now is 05:10 PM.



WB Sponsors

Profit Lance Review

WEB MARKETING



 Subscribe to the Website Babble Feeds

The place where beginners learn how to create a website.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0