Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-27-2007, 11:44 AM   #1
Member (5 bit)
 
Join Date: Dec 2006
Posts: 26
how best to convert my HTML pages to CSS?

My apologies in advance if this went through twice ...



I have a feeling this will be a stupid question, but ..

I've spent considerable time building a content website using Frontpage. While it isn't the pillar of quality that I aspire to, as a newbie I'm mostly pleased with how it's taking shape. I hope to keep it online for a while and improve on it until I'm totally happy with it.

So-o .. I'm in the process of learning CSS and (here comes the stupid question) ... am curious whether there might be some kind of application out there that i can just "plug in" my html pages as-is and maybe somehow end up with a CSS version that i can edit.

Or ... do i have to re-write everything from scratch?
(would like to start using Dreamweaver.)


thx for not laughing too loud ...
usanyou is offline   Reply With Quote
Old 01-27-2007, 12:09 PM   #2
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Keep in mind that you *can* edit the HTML through Frontpage. If you've already coded a page through FP, use either Notepad or FP's HTML interface to add CSS as needed. Last I checked, FP does not use CSS - at least not standard CSS. You can either do it externally (make a .css file, put the code in there, and link it from your original page(s)), or put the entire CSS embeded between the head tags.

I do recommend exploring Dreamweaver, though it is on the expensive side. Dreaweaver's WYSIWYG interface is pretty good and in addition, it codes fairly clean HTML.

kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 01-28-2007, 09:51 PM   #3
Member (5 bit)
 
Join Date: Dec 2006
Posts: 26
hi kram,

thx for the reply ... altho i was actually hoping to know whether i could take my FP pages and import them into Dreamweaver and re-edit them there.

that is, if i add CSS content, will Dreamweaver automatically clean up extraneous FP code? ... or wll i have to do this myself, line for line? ....

thx again ...
usanyou is offline   Reply With Quote
Old 01-28-2007, 09:56 PM   #4
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Dreamweaver will not cleanup FP's extraneous code automatically - that, you can do by hand. In terms of using Dreamweaver, you can simply access the .htm or .html file that you created with FP. Some of the more current versions will allow you to program CSS into the .htm file in the Dreamweaver interface, though it is definately something worth learning.

kram
kram 2.0 is offline   Reply With Quote
Old 01-28-2007, 10:07 PM   #5
Member (5 bit)
 
Join Date: Dec 2006
Posts: 26
well ..... that's not what i was hoping to hear!

That's enough to take all of the fun out of it!!!

So-o-o ... all those font tags et al i have to replace one-by-one ... and re-create with CSS?
usanyou is offline   Reply With Quote
Old 01-28-2007, 10:31 PM   #6
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
You actually are removing most of the attributes that contribute to formatting your text, images, tables, etc. and cleaning it all up with CSS. It is a very much needed skill in building an always changing website, especially with dynamic content.

It make take a while to get the site looking the way you want it with CSS, having not had any experience with it before, but it will, in the end, reduce the amount of HTML you need to type out.

In regards to there being a program that does CSS for you, I have never heard of such a thing and I doubt one would be very accurate.
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom!
rspassey is offline   Reply With Quote
Old 02-01-2007, 03:36 PM   #7
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
I can't remember if DW still ships with Homesite. You could do it pretty easily in Homesite. Just use replace. So in the HTML, you would first do a replace for
</font> to replace all of the closing font tags. Then you would do another replace to replace all of the opening font tags. You would have to be a bit more selective on this. For most font tags you would just replace it with a blank and let you stylesheet control the default format. For those font tags that are colored or larger, you could replace those with spans, strong, em or header. It wouldn't take all that long doing it this way. So if you had something like this:
<font color="red">Important</font> with
<span class="red">Important</span> (assuming that you have a class called red)
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how best to convert my HTML pages to CSS? usanyou Web Design / Development 1 01-27-2007 11:51 AM
how to convert html page to ms-word document ITlover Software Discussion & Support 5 04-04-2006 02:57 PM
HTML Form rcx21000 Web Design / Development 1 04-18-2004 10:57 AM
Any Way To Convert .rpt files to word, pdf, html or some way to read Harry Software Discussion & Support 2 05-23-2003 10:49 AM
Funny kind of test mairving Internet, Web Applications, & The Cloud 0 02-14-2001 06:13 PM


All times are GMT -5. The time now is 05:19 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2