How do you change the font family and scrollbar in a DIV layout?
I have a DIV layout for my myspace page,and I want to change the font family in all of my writing and for my links,but I don't know where to put the code.I also want to change the scroll bar color,but I don't know where to put that code either.In the layout code itself it has no place for the font family/color,nor anything for the scrollbar.Help?
Public Comments
- Make a div around your text, give it an ID (like "mytest", and add a style: style: #mytext { font-family: arial, 'Trebuchet MS', sans-serif; color: green; } <div id="mytext"> your stuff </div> Regarding the font-family: ALWAYS ALWAYS ALWAYS add a cop-out font, so that people who do not have your fonts installed will still be able to read your text. The last item in the list should always be either one of these: serif (like newspaper print) sans-serif (like the font in the Yahoo answer box) monospace (like a typewriter) Regarding the colored scrollbars - you know that only works in IE, right? Here's a page that explains exactly how to do it: http://websitetips.com/articles/css/scrollbars/#rules (But as a web designer I humbly beg of you: please don't...)
Powered by Yahoo! Answers