Stylesheet not working in Dreamweaver

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

This is really strange - it's working for all the pages except one. It could have something to do with my includes, which DW doesn't want to handle so well, but I'm wondering if anyone else can figure it out.

This is the site: http://www.meganjack.com/html/

It's the index page that DW is having problems with - the others are fine. It's not a huge problem, since it works find in the browser, but it's really annoying.

(and yes, I'm finally working on it again!)

Busy's picture

He has: 6,151 posts

Joined: May 2001

I had a quick look, you have no tag
also having .table { ..} in your style sheet could be messing up, since table is an element, use either "table", "table.foo" or ".foo"

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

MeganJack.com: Affordable Web Design Services

<script language="javascript" src="rollover.js"></script>

<script language="javascript" src="rollover.js"></script>

i'm just a beginner to web designing but... how come u have:
<script language="javascript" src="rollover.js"></script>
twice?
and the i odn't know if it matters or not but the tag to end the head section is missing

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Renegade - all of that happened because of the SSI's - I decided to move the javascript call to the include but forgot to take it out of the actual page on that one. The thing is a similar problem, although I don't know how that one happened.

None of that explains why the stylesheet is fine on the other pages but not on the index page. I am aware that there are a few problems with the code that probably should be fixed before it's finalized. I was hoping that someone else may have had this problem and would know how to solve it.

Thanks for trying...

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

well, i've never had that problem b4 so i don't know... :S sorry

She has: 120 posts

Joined: Oct 2000

Megan, the style sheet seems to be working fine for me.
W98/IE5
1024
I am getting javasript errors though.

hths

dragonsjaw

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Did you read what I said? It's not working in dreamweaver - it's fine in the browser.

Thanks for reminding me about the javascript problem.

He has: 1,016 posts

Joined: May 2002

Just a few things I've noticed by looking at the source...

1. the is completely different on the first page than the others and also the first page has HTML with low caps (not sure if this causes a problem or not)

2. On pages except the index one you're calling the style sheet twice where one is HTML and one is XHTML and in the index page you're calling it only once with XHTML.

I suggest you do a "Commands > Clean Up HTML" and also "Commands > Apply Source Formatting" and hopefully that will help Smiling

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I personally do not feel that my code is bad enough to necessiate running those commands. It must be the case that one of those stylesheet calls is working while the other isn't - strange. As I said above, I had decided to move the stylesheet & js references to the include, but didn't get back to cleaning up the other files. SOrry for bothering you all with my crappy work.

He has: 1,016 posts

Joined: May 2002

You should seriously consider changing your attitude and stop taking every comment like an insult. Noone said that your code was bad. I run those commands all the time (espesially when I'm done with a page) to remove duplicates and also to format the HTML so that I can easier follow it. You asked for our help and we all took time and looked through your pages and posted here what we _thought_ _could_ be the cause of your problem and we all did it to help you as that is what we do (help eachother) in this forum. Instead of a "thank you" we get accused of insulting you. I'm personally very offended by this and I want you to let me know if this is what I should expect in the future and I will stop trying to help you.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I'm sorry, I totally overreacted - I've been having a rather frustrating week at work so I'm sorry for taking it out on you all here.

Here's another problem that I really would like some help with - I can't run the validator in Dreamweaver on this, and other, pages because parts of the code are in an include file. Do you know of a way to get around that? I could always upload the page and use the w3c online validator, but then I have to upload it every time I need to check something. I really wish that Dreamweaver had better handling for include files... I think that "convert to xhtml" was giving me problems too there - I'd really like to be able to run that one to fix things up but it won't let me.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Is Opera6 an option? has built in W3C validation on right click

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Yes, I know... I hadn't thought of that though for some reason. It's better than having to upload all the time but not as good as having it built in to the program. DW's validator is really nice, because you can just double click on the error message and it will take you right to the place on the page where the mistake is. Makes things so much easier.

taff's picture

They have: 956 posts

Joined: Jun 2001

For what it's worth, I often find that Dreamweaver is "spotty" in recognition of various stylesheet elements. I use it so rarely that I never really worried about it but was curious to see that I'm not the only one to ever encounter this.

.....

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.