Questions on changing site to CSS (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


vision2000 -> Questions on changing site to CSS (4/9/2004 12:01:29)

Hi,

I have 2 questions:

1. Is there an easy/fast way to change all font on this site(www.abovegroundpoolsdirect.com) to CSS?

I want to simplify adding/changing text and eliminate bloated code for faster page loading times.

2. How do I apply CSS classes to the font in FP 2002?...I can create the classes (format-stlye-html tags-new-format-font-ok) but there is no change to the font when I apply it.

Is this the correct way to apply styles to text?...

Highlight text on page-style-body class-ok

Thanks,
Herman




bobby -> RE: Questions on changing site to CSS (4/9/2004 12:51:14)

Changing to CSS would require you to write a .css file (not difficult at all) and then link to it from the header of each page in your site...

Then you'll want to go in and remove any <font> or <style> tags that the CSS is taking care of (any styles declared in your page code will override the CSS)

Check out this site for an intro and how-to on CSS:

www.w3schools.com/css




vision2000 -> RE: Questions on changing site to CSS (4/9/2004 13:26:48)

Thanks for your reply.

How do I apply CSS to text in FP 2002?

I would like to use FP as my client edits her site with it and uploads with FP extensions.

Normally I use DW4 for implemeting CSS on my sites, however I don't want to switch back and forth.




bobby -> RE: Questions on changing site to CSS (4/9/2004 13:49:42)

The same way you would for any editor...

Place the link to the stylesheet in your <head> and it will apply to that page.

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

(Make sure your CSS is saved in the root web)

To create the CSS, just open a new doc in FP and Save As - then select .css from the file type drop-down menu. Add your style declarations to it and you should be golden.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125