|
HWG-News Tips Late December 1999Cascading Style Sheets TipsHWG-News features member-submitted "tips" in each issue, in the space between articles and announcements. These were the tips submitted for the Late December 1999 newsletter, for the category 'CSS'. This issue's winner!HWG-NEWS TIP: If you use CSS, I strongly recommend that you browse your site in both IE and Netscape before publishing it! I had removed most HTML tags only to find that I had to put them back in due to lack of acceptance of certain CSS specifications. An excellent resource to determine what CSS is accepted in what browser is http://webreview.com/wr/pub/guides/style/mastergrid.html
--Submitted by Howard Merrill <hmmd@erols.com>
Other Submitted TipsWith Cascading Style Sheets, you can obtain exact positioning of document objects without the extra lines of code or extended load times of tables. Simply use either the "relative" or "absolute" value of the "position" property of Cascading Style Sheets.
--Submitted by Bill Palmer <palmer@gower.net>
There are very few fonts which display reliably on all systems and browsers. Even if you use a common Windows font, Lucida for example, MAC users often won't have it. If you choose a "safe" font as your second choice you will have at least some control over the way your page is viewed. The safe fonts are: Arial, Helvetica, Courier, Symbol and Times.
--Submitted by Lee Rouland <lr@earthling.net>
CSS: When applying pseudo-styles to the <a> tag such as a.hover {} be careful using styles that change the size (+1), shape (italic) or density (bold) of the text. In 'text-buttons' using a table to arrange rows and columns of links, changing these could break or alter the table, causing the whole page to shift wildly as the user mouses over the links. Test in the browser using several default font-sizes before implementing.
--Submitted by Rick Miske <crmiske99@netscape.net>
Make your links come alive with different hexadecimal colors for each
function, thus:
--Submitted by Jim Peden <jim@middlebury.net>
If "h3 {font: 110% Arial bold; color: #3366cc}" isn't working properly, try --
--Submitted by Donna M Smillie <dms@zetnet.co.uk>
Don't use underscores when naming classes: they will not be recognized.
--Submitted by Don Franke <donfranke@netscape.net>
Want to make implementing Cascading Style sheets easier without re-inventing the wheel for each site? Our development team has created a basic template with all the most commonly needed elements. We then can easily customize the template to the site for fonts, colors, etc. without re-writing the code. See an example at: www.internetdesign.com/resources/css/template.html
--Submitted by Lori Ann Alita <loriann@InternetDesign.com>
The following CSS script will change the color of links of the entire web page when placed in the
HEAD section. Please note that Frontpage will erase the script so add it
in notepad before placing on
our server.
--Submitted by Sandra Olson <id@centuryinter.net>
Scrollbars can be added to a block element through the following CSS code, inserted inside the element's tag: style="width:200px;height:200px;overflow:scroll" For example: <p style="width:200px;height:200px;overflow:scroll"> The first two attributes (width and height) specifies the dimensions in which the block element should be confined to, while the last attribute (overflow) applies the scrollbars to this confinement area.
--Submitted by Demetrius Francis <dem_@hotmail.com>
Place at least a couple of paragraphs of text above any pictures so that your visitors can read the text while the pictures are loading. This is especially important for webmasters who anticipate that site visitors may have slower connections or older computers.
--Submitted by <jk55@hotmail.com>
HWG-NEWS TIP: "Want to greatly improve your text appearance online? Try using the justify option with the Paragraph tag. e.g. <P align="justify">your text here</P>
--Submitted by Dirk Gardner <dirk@curiosofafrica.com>
More HWG Resources on Cascading Style Sheets
|