I don't feel 50 Forums

Go Back   I don't feel 50 Forums > COMPUTERS > Web Design and Graphics Room.

Web Design and Graphics Room. Thread, it did work, but it doesnt now !

howdy all, i am trying to improve modernize my web site and i found a bit of code that is ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 17th-January-2006, 07:20 PM
timmy toad timmy toad is offline
 
Join Date: Sep 2002
Location: flitwick, beds, UK
Posts: 198
Default it did work, but it doesnt now !

howdy all,

i am trying to improve modernize my web site and i found a bit of code that is in all the pages, and i realise it doesnt work, i know it did at one time, but i dont know enough about HTML or whatever it is in this case, to know why it doesnt work, i guess the code is right, i guess i have removed whatever it was that made it work any ideas anyone, please

<!--

Body {


scrollbar-face-color:#1E56A7;

scrollbar-shadow-color:#D3F720;

scrollbar-highlight-color:#1E56A7;

scrollbar-3dlight-color:#1E56A7;

scrollbar-darkshadow-color:#1E56A7;

scrollbar-track-color:#D3F720;

scrollbar-arrow-color:#D3F720;
}

//-->
__________________
Tim

Acer Aspire Lap Top/AMD 3000 +Sempron/1.5 gig ram/160 gig HD/Win XP SP2/NTL Broadband/Avira Anti Virus
Reply With Quote
  #2  
Old 18th-January-2006, 01:46 AM
Skyrunner's Avatar
Skyrunner Skyrunner is offline
 
Join Date: Sep 2002
Location: The Surrey Hills
Posts: 1,202
Default

Have you been removing bits of your code? Tut tut... that does tend to stop things working!!!

What you have here is a piece of what's called CSS – stands for Cascading Style Sheets, – and is very soon going to be an absolute must for coding web sites. Your code is a style that tells your browser to colour the scrolling bars.

At a brief glance, and without seeing the rest of your page's code, I'd guess at two reasons it may not now work.....

(A) Are you now viewing the page in Mozilla Firefox, where you previously used Internet Explorer? Some things work in one browser and not another.

(B) You may have removed the bit of code that tells the browser to apply the style sheet. I'm assuming the code you've posted here comes from the "Head" section of your code? You need to have the line <style type="text/css"> just before the <!-- bit. Then </style> right at the end.

If you still can't get it to work, I'll have a look at the whole page of your code if you like, see if I can sort it. No promises mind – I'm still getting to grips with CSS myself! :?
Reply With Quote
  #3  
Old 18th-January-2006, 07:03 AM
timmy toad timmy toad is offline
 
Join Date: Sep 2002
Location: flitwick, beds, UK
Posts: 198
Default

thanks skyrunner, i shall do as you suggest during the day and then upload it later to see if it makes any difference.

when it did work it looked very pretty.
__________________
Tim

Acer Aspire Lap Top/AMD 3000 +Sempron/1.5 gig ram/160 gig HD/Win XP SP2/NTL Broadband/Avira Anti Virus
Reply With Quote
  #4  
Old 18th-January-2006, 04:09 PM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

Sky has it right missing bits in RED

<style type="text/css">
<!--

Body {


scrollbar-face-color:#1E56A7;

scrollbar-shadow-color:#D3F720;

scrollbar-highlight-color:#1E56A7;

scrollbar-3dlight-color:#1E56A7;

scrollbar-darkshadow-color:#1E56A7;

scrollbar-track-color:#D3F720;

scrollbar-arrow-color:#D3F720;
}

//-->
</style>
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
Reply With Quote
  #5  
Old 18th-January-2006, 04:44 PM
Bellerophon's Avatar
Bellerophon Bellerophon is offline
 
Join Date: Sep 2003
Location: England
Posts: 401
Default

Don't mean to state the obvious, but just to be sure . . .

I assume will be seen by browsers as a "comment" and will be ignored.
Reply With Quote
  #6  
Old 18th-January-2006, 04:53 PM
Skyrunner's Avatar
Skyrunner Skyrunner is offline
 
Join Date: Sep 2002
Location: The Surrey Hills
Posts: 1,202
Default

.

No, it's okay Style sheets usually appear inside comment tags. It's to stop older browsers displaying the code on the page. :wink:
Reply With Quote
  #7  
Old 18th-January-2006, 05:07 PM
Bellerophon's Avatar
Bellerophon Bellerophon is offline
 
Join Date: Sep 2003
Location: England
Posts: 401
Default

ops: ops: ops:

Cheers Sky, never knew that!
Reply With Quote
  #8  
Old 18th-January-2006, 05:11 PM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

With CSS the comment tags have to be used Bellerophon, as you say, as CSS it not html it has to stopped from being seen.

OK just had a look at your website Tim.
The top part is there.
<LINK href="/site.css" rel="stylesheet" type="text/css">
However this refers to you having an external or linked style sheet,
two code pages one HTML the other CSS linked together.
Do you have a seperate style sheet, if you have the only bit missing is the end tag </style>.

If you dont then you have an embeded style sheet and
the first part <LINK href="/site.css" rel="stylesheet" type="text/css"> is wrong.
It should be <style type="text/css"> the end tag </style> is still required.
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
Reply With Quote
  #9  
Old 18th-January-2006, 08:26 PM
timmy toad timmy toad is offline
 
Join Date: Sep 2002
Location: flitwick, beds, UK
Posts: 198
Default

well spotted Peter, i am in fact getting my knickers in a twist, the scrollbar stuff as i said did work a long time ago, i have since the introduced an External Style Sheet which does seem to work, more by luck than anything else i reckon,

as you say the two types of Style sheet cant BOTH work together, so as far as i am aware the scroll bar stuff possibly? CANNOT be incorporated into an external stylesheet. at the moment i can't find any option, using Dreamweaver, to add any of the scrollbar stuff to the external style sheet.

there does that make any sense, i think possibly i should just delete the scroll bar stuff and be happier without it, if it isnt going to work, but i do know it did look nice.
__________________
Tim

Acer Aspire Lap Top/AMD 3000 +Sempron/1.5 gig ram/160 gig HD/Win XP SP2/NTL Broadband/Avira Anti Virus
Reply With Quote
  #10  
Old 18th-January-2006, 08:57 PM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

Tim yes it will work, as you have the info in every page just change the the code I highlighted in red in my first post.
Every page between the head tags should look like the code below.
Delete the link version you have at the moment.

<style type="text/css">
<!--

Body {


scrollbar-face-color:#1E56A7;

scrollbar-shadow-color:#D3F720;

scrollbar-highlight-color:#1E56A7;

scrollbar-3dlight-color:#1E56A7;

scrollbar-darkshadow-color:#1E56A7;

scrollbar-track-color:#D3F720;

scrollbar-arrow-color:#D3F720;
}

//-->
</style>

I will do a test page to check it out and post the link ASAP.
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.