![]() |
|
|||||||
howdy all, i am trying to improve modernize my web site and i found a bit of code that is ...
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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! :? |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
||||
|
||||
|
.
No, it's okay Style sheets usually appear inside comment tags. It's to stop older browsers displaying the code on the page. :wink: |
|
#7
|
||||
|
||||
|
Cheers Sky, never knew that! |
|
#8
|
||||
|
||||
|
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 |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|