CSS - Js And Css Clientside Includes?!
Problem:
I have a moderately simple site with .css and .js includes. Trouble is when I serve them thru Apache my page doesn't use them... In a browser, not thru Apache, they work fine so the links are good, but I would like to be able to serve them to myself for testing. I've heard that the server has no effect on external css and js but I don't have this prob in any browser unless it goes thru Apache. Specs: OS X Apache 1.3 Thanks for any info you can fire at me. Similar TutorialsHI Could someone take a look at this code. I am using dreamweaver, but that shouldn't matter as i have written most of this myself. The only bit that works is that the text "LINK" appears as blue, like it should everything else is in the wrong colour, font, size, etc. However the text appears how it should in dreamweaver, but not in IE or Netscape? its only a sample of my code, so its not too long. Ideas? Thanks in advance. This is my CSS code:- ttext { FONT-SIZE: 16px; COLOR: #0066FF; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; } btext { FONT-SIZE: 12px; line-height: 20pt; COLOR: #0066FF; font-family: Verdana, Arial, Helvetica, sans-serif;} A:link { text-decoration: none; COLOR: #0066FF;} A:active { text-decoration: none; COLOR: #0066FF;} A:hover { text-decoration: underline; COLOR: #0066FF;} A:visited { text-decoration: none; COLOR: #0066FF;} This is my HTML:- <html> <head> <title>CSS_TEST</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="CSS_TEST.css" rel="stylesheet" type="text/css"> </head> <body> <ttext>This is the title for my CSS Test Page</ttext> <P></P> <btext> THIS IS WHERE THE BODY OF TEXT WILL BE </btext> <P></P> <A HREF="http://www.agreatwebsite.co.uk/">Link</A> </body> </html> So my webpage is using a sliding doors type navigation bar while also implementing a php includes in the content area. One of the problems here is on showing the "selected" or "you are currently here" state of a navigation button. Normally, it seems you would simply specify the class of the li element that corresponds to the page the user is on as "selected". However in this case, the navigation code is in the index.php and therefore constant and unchanging. So how would I implement this feature on my website? I've tried using javascript to manually change the styles, but either thats not possible or I have no idea what I'm doing. I realize my post may not be very clear as I am not sure how else to explain it. I will gladly clarify. Thanks! |