Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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

Reply With Quote
  #3 (permalink)  
Old July 17th, 2003, 10:48 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.