Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What are CSSs and how do I create one (some)?

Status
Not open for further replies.

mondy

Technical User
Jan 8, 2003
78
US
I keep hearing about "style sheets" and "CSS". What are these and how do I create them or where can I get them or learn more about them? Any leads would be greatly apreciated. Thanks.
 
CSS (Cascading Style Sheets) is a way of setting and controlling the formatting attributes that you have within HTML.

Before them, for example, every time you changed font, you had to specify it's size, color and style.
By making a style sheet, you list your prefences for H1, h2, h3, etc, then, by placing a link in the header of the page, all text is changed to the style you want.
Backgrounds, borders, margins, lists and links can also be set this way.

The beauty of this is that once you have written your style sheet, every page in your site can be linked to it. Also, if you decide you want red instead of blue text, you only have to alter a few things in the style sheet and all the pages update automtically!

I suppose one of the definitive places to visit for info in the W3C site .... have a llok there, you'll find loads of support here too :¬)

Good luck

luds
 
I read this post and was interested in doing this as well. Since my site is littered with fonts, sized, etc. Do I have to undergo a cleanup process to remove them so my new CSS can take over? Or will the CSS take care of that. Might be a stupid question but I wanted to save me some work at all cost.
Thanks
 
You have to clean the code manually. I would not bother for an existing site under most circumstances.

I would also recommend you build a couple of smaller sites using CSS before trying anything ambitious. I build and maintain a large (now at 1,000 pages) intranet that I started a year ago. I was just learning CSS at the time and so started off with a half CSS half HTML site that I ended up rebuilding THREE TIMES as I gained more understanding of CSS. It is now 90 percent CSS lol but I am happy with it in spite of the fact I still have some tables in it.

Try to find a site or two written completely and totally using CSS and look at it in DW MX or better yet DW MX2004. That is the quickest way to learn.

Peace



BT
 
I will have to try that on a small website I am doing now. But my larger site and need major cleanup. I have been interested in reducing page load and minimzing size. And in a previous thread I had heard this was one thing I could tackel. But sounds like I should take it slow.
Thanks for the info ***
 
I took a look at your two sites. If you are currently getting decent sales off them, and have decent search engine ratings, I would strongly consider rebuilding them completely in Flash with the html site as a backup.

Run a Google for "Flash RIA" and look at some of the examples. From a marketing perspective - sweet.






Peace



BT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top