Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 17th, 2003, 09:31 AM
Authorized User
 
Join Date: Jul 2003
Location: Dublin, Ireland, Ireland.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default css and scroll bar

i have this code on a few pages but it has to be put into about 80 and i want to put it into an existing css file but can't figure out how to do it, any help much appreciated
Cheers
~M


<style>
<!--
BODY{
scrollbar-face-color:#884488;
scrollbar-arrow-color:#CC6699;
scrollbar-track-color:#DDDDFF;
scrollbar-shadow-color:#580060;
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:'';
}
-->
</style>

Mark Hardiman
Senior Developer
Kernel Software Ltd
  #2 (permalink)  
Old July 17th, 2003, 09:36 AM
Authorized User
 
Join Date: Jul 2003
Location: Houten, Utrecht, Netherlands.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bosboom
Default

A common error to make is to put the <style> tags in the .css file... make sure you didn't... also the comment tags

  #3 (permalink)  
Old July 17th, 2003, 10:48 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In addition to this, after you have created the Style Sheet and put the style definition in, use the following code to link the HTML page to the stylesheet. Make sure you put it somewhere in the <head> section of the page:

Code:
<link href="/Styles/myStyle.css" rel="stylesheet" type="text/css">
where /Styles/myStyle.css is the virtual path to your Style Sheet.

HtH

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #4 (permalink)  
Old July 18th, 2003, 04:55 AM
Authorized User
 
Join Date: Jul 2003
Location: Dublin, Ireland, Ireland.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the replies lads, i thought that i had tried that already but must not have, think i actually had a .body instead of just body in the css. anyway all sorted now cheers.
on another note great to see wrox back up and running, was involved a while ago, remember you helping me out before imar!, and am looking forward to being involved again
Cheers
~M

Mark Hardiman
Senior Developer
Kernel Software Ltd


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS scroll bar code hijacked by <!DOCTYPE tag mat41 CSS Cascading Style Sheets 5 January 17th, 2008 06:06 PM
CSS Scroll bar in IE not working BobbyFisher CSS Cascading Style Sheets 2 April 18th, 2005 05:34 PM
How can I make two scroll bar to be the same one? Daniel_hn Visual C++ 1 September 16th, 2003 09:28 AM
Scroll Bar cooldude87801 BOOK: Beginning Java 2 0 June 18th, 2003 11:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.