| Home | Products | Learn | Contact | More |
Learn... |
CSS Crash CourseEditing Styles...The fonts and some colors are controlled by an external cascading style sheet. You should see it named as "styles.css" in your folder list. By editing styles.css, you can easily change font sizes, colors, and more across your entire web site! Double-click on styles.css. In FP2000 or FP2002, this may open NotePad or your default text editor. In FP2003, the style sheet will open within FrontPage. You will see some code like this:
"Elements" are items that don't have periods before them, such as h1 (Heading 1), p (paragraph), and ul (unordered or bulleted list). "Classes" are items that have periods before them, such as ".menu." Classes allow you to have more flexibility with different text styles. If you want to change a color or font, first locate it on the page in FrontPage. Switch to HTML view and find the tag or class associated with it -- <h1>, <p>, or code that looks like <p class="menu"> or <div id="body2">. This is how you know which style to change. Changing colors...Colors are defined by six-digit hexadecimal codes that begin with a pound sign -- such as #c15f00. To change the color of an element, you will need to figure out the six-digit code for the color. There's a nice tool at gifART.com if you don't know how to figure it out. Then, simply change the color code in the style that you want to modify, and save the styles.css file. It's that easy! (Note: the "color" attribute changes font color, while the "background" or "background-color" attributes change the background color. If there is a "border" or "border-color" element, you can change the color code for the border color as well.) Changing position...Sometimes our templates might have page elements positioned (you'll notice this if elements overlap). You can adjust the "top," "left," or occasionally "margin" properties to modify the positioning. Changing fonts...Before picking what fonts you want, you should be aware that you must pick fonts that are common to most people's systems - in other words, fonts like Arial, Verdana, and Times New Roman. If you choose a "fancy" or "cool" font, you need to be aware that people who don't have that font on their system will just see a default font (usually Times New Roman). You'll notice that for some of the elements and classes, the fonts have been defined in similar matter to:
The list of font families -- "Arial, Verdana, Helvetica" -- are listed in preferred order. If the end-user doesn't have Arial, the browser will look for Verdana. If they don't have Verdana, the browser will look for Helvetica. You may replace this list of fonts with your own desired fonts, keeping in mind that you must spell the font the same way the computer system does. Resources...To learn more about cascading style sheets, you might try one of these web sites:
|
|
|
|
| Home | About JGT | News & Updates | License Agreement |