Luminous Landscape Forum

The Art of Photography => The Coffee Corner => Topic started by: PeterAit on March 28, 2015, 08:40:47 am

Title: DreamWeaver help needed
Post by: PeterAit on March 28, 2015, 08:40:47 am
Before I go bonkers, I am hoping someone can help me out. I am creating a new web page and the text formatting is controlled by a style sheet. It's pretty simple, with 2 CSS classes for headings and a style defining the appearance of <a> elements. In Dreamweaver's Design mode everything looks just as it should. But if I switch to DW's Live View mode only one of the heading styles is applied - the other heading style and the <a> style are ignored. This is also the case when I view the page in a browser. Why would only part of the style sheet be used and the rest ignored? Please save me from tearing my hair out!
Title: Re: DreamWeaver help needed
Post by: RSL on March 28, 2015, 09:52:46 am
Peter, Take a close look at your style sheet and make sure there's a closing curly brace for each opening curly brace. Also, make sure you're not trying to use an ID more than once. You can do that with classes, but not ID's.
Title: Re: DreamWeaver help needed
Post by: PeterAit on March 28, 2015, 10:20:20 am
You are my savior! It was a missing closing brace. It's still a mystery why the style sheet worked in design view, but as long as the problem is solved. THanks!
Title: Re: DreamWeaver help needed
Post by: Isaac on March 28, 2015, 12:08:15 pm
CSS Validation Service Check Cascading Style Sheets (CSS) and (X)HTML documents with style sheets (http://jigsaw.w3.org/css-validator/)
Title: Re: DreamWeaver help needed
Post by: RSL on March 28, 2015, 12:34:02 pm
Isaac, if you're going to dump something like this into a discussion, how about explaining its connection to the discussion and what you think it means.
Title: Re: DreamWeaver help needed
Post by: jjj on March 28, 2015, 05:25:22 pm
Isaac, if you're going to dump something like this into a discussion, how about explaining its connection to the discussion and what you think it means.
I think the phrase CSS Validation Service before the link to such a service tells you all you need to know. Pretty obvious I would have thought.
Title: Re: DreamWeaver help needed
Post by: RSL on March 28, 2015, 05:40:27 pm
Peter solved his problem, Jeremy. The thread was finished. Peter wasn't trying to learn how to use DreamWeaver. He just overlooked something. Do you use DreamWeaver? Do you have even a remote clue about all this? As usual, Isaac was trying to stir things up. You know that as well as I do. Go ahead, Isaac. Click the Report to Moderator button.
Title: Re: DreamWeaver help needed
Post by: Isaac on March 28, 2015, 10:03:45 pm
As usual, Isaac was trying to stir things up. You know that as well as I do. Go ahead, Isaac. Click the Report to Moderator button.

What are those remarks or yours intended to do but "stir things up".


Perhaps Peter did not know that there are freely available services to error check CSS and HTML markup (http://validator.w3.org/). Now Peter will be able to use those services to save him from tearing his hair out in the future.

As usual, I was sharing knowledge.
Title: Re: DreamWeaver help needed
Post by: Bart_van_der_Wolf on March 29, 2015, 05:15:20 am
You are my savior! It was a missing closing brace. It's still a mystery why the style sheet worked in design view, but as long as the problem is solved. THanks!

Hi Peter,

Glad you got things solved. It does remain odd that the style sheet seemed to work in design view though.

For a sanity check, a second opinion, I use tools like csslint.net (http://csslint.net), and similar for JavaScript (http://www.jslint.com/). One should not follow the suggestions blindly though, there are some coding preferences involved, as explained here (https://2002-2012.mattwilcox.net/archive/entry/id/1054/) and in a less confrontational manner here (http://code.tutsplus.com/articles/should-you-start-using-csslint--net-20895). However, it would have found the missing bracket though.

Cheers,
Bart
Title: Re: DreamWeaver help needed
Post by: jjj on March 31, 2015, 11:57:49 pm
Peter solved his problem, Jeremy. The thread was finished. Peter wasn't trying to learn how to use DreamWeaver. He just overlooked something. Do you use DreamWeaver? Do you have even a remote clue about all this? As usual, Isaac was trying to stir things up. You know that as well as I do. Go ahead, Isaac. Click the Report to Moderator button.
Don't be such a numpty Russ. You are only showing how little you know by such a stupid post and being deliberately provocative to Isaac and now me.
I used to be employed to do web design as it happens and Dreamweaver was the tool of choice. Making such patronising assumptions only makes you look a fool.
Code validators/checkers as also suggested by Bart are a handy way of picking up simple errors that are easily overlooked by eye in amongst reams of code.
Title: Re: DreamWeaver help needed
Post by: RSL on April 01, 2015, 01:57:53 pm
Okay, Jeremy. Yeah, code checkers are nice. And as you surely know, since you've been a heavy DreamWeaver user, DW has its own very useful code-checker.
Title: Re: DreamWeaver help needed
Post by: jjj on April 02, 2015, 05:41:20 pm
Okay, Jeremy. Yeah, code checkers are nice. And as you surely know, since you've been a heavy DreamWeaver user, DW has its own very useful code-checker.
Using a different code checker is as Bart suggested a good second opinion.
Title: Re: DreamWeaver help needed
Post by: RSL on April 02, 2015, 07:39:38 pm
If you actually think opinion matters in web development I can only conclude you haven't actually done it.
Title: Re: DreamWeaver help needed
Post by: Isaac on April 02, 2015, 07:47:45 pm
You can lead a horse to water, but you can't make it drink.
Title: Re: DreamWeaver help needed
Post by: Robert Roaldi on April 03, 2015, 09:05:53 am
If you actually think opinion matters in web development I can only conclude you haven't actually done it.

That was a non-sequitur.


And your earlier response was an example of baiting. Who said the thread was finished? He simply provided another option for the OP to look up. It was no concern of yours.

Peter solved his problem, Jeremy. The thread was finished. Peter wasn't trying to learn how to use DreamWeaver. He just overlooked something. Do you use DreamWeaver? Do you have even a remote clue about all this? As usual, Isaac was trying to stir things up. You know that as well as I do. Go ahead, Isaac. Click the Report to Moderator button.

We're now waiting for you to say "Isaac, show us your pictures." That's the usual pattern.


This level of discourse belongs on dpreview.

Title: Re: DreamWeaver help needed
Post by: RSL on April 03, 2015, 03:53:12 pm
Thanks for your penetrating insights, Robert. I'm sure you must be a DreamWeaver expert.
Title: Re: DreamWeaver help needed
Post by: Robert Roaldi on April 03, 2015, 04:06:08 pm
To the OP: I apologize for helping to derail your thread. I should have known better.
Title: Re: DreamWeaver help needed
Post by: Isaac on April 03, 2015, 04:34:37 pm
I should have known better.

Quote
Be prepared and listen, because they may say something and you may say, "Wait a minute . . . that doesn't make sense." So you do the follow-up question, sometimes a third follow-up question. Sometimes they keep saying no, bobbing and weaving, but the people watching know whether they're evading you or not (http://teacher.scholastic.com/scholasticnews/indepth/kids_primaries/tips/index.asp?article=russert). You don't have to lean over and choke them and say, "You're lying!" because if you do that, then the audience thinks that you're a bully and your guest is very sympathetic. But if you say three times, "I'm sorry, Senator, but I've asked you the question three times and you haven't answered," everybody goes, "Oh, they're ducking."
Title: Re: DreamWeaver help needed
Post by: jjj on April 03, 2015, 06:44:41 pm
If you actually think opinion matters in web development I can only conclude you haven't actually done it.
Wrong again. Second opinion in this case does not literally mean opinion so do not be obtuse and pretend it does to score fake points.
Title: Re: DreamWeaver help needed
Post by: jjj on April 03, 2015, 06:47:41 pm
To the OP: I apologize for helping to derail your thread. I should have known better.
You didn't derail anything Russ simply decided to be rude, nasty and personal when others were being helpful.
Title: Re: DreamWeaver help needed
Post by: Bart_van_der_Wolf on April 04, 2015, 05:54:46 am
Code validators/checkers as also suggested by Bart are a handy way of picking up simple errors that are easily overlooked by eye in amongst reams of code.

And further on that note, I recently gave Microsoft Visual Studio a try and let it simply have a look at a style sheet (from the file explorer Open with Visual Studio, no need to create a project). I must say, it really gave useful suggestions when the WebEssentials extension is also installed. Sometimes suggestions as to 'Best Practice', sometimes useful (intelligent) additions for cross-browser compatibility, sometimes an error. Of course wen part of a project, VS can do much more like showing the direct impact on a webpage with a preview, but merely as a code checker it also works fine.

Cheers,
Bart