Can someone help me with the media queries problem?
I’m working on a schoolproject and I can’t get the media queries to work. I have looked on it for days, and I’m getting “crazy” soon. haha!
Can some of you guys look at it and help me?..
Why do I see a <style> tag near the end of your page?
Also this is school work? They honestly still teach <center>? Drop class and get your money back now. They are teaching you stuff from 10ish years ago.
Now, that being said, your page code should look more like this (note that you have two #container #mainContent{} sections and I kept both since I don’t know which one you want.
If that’s not working for you (I only moved the style tags inside of <head>) then I don’t know what your issue is. You haven’t exactly said what your issue is besides you can’t get it to work.
They haven’t said how I should do it. I have to figure it out by myself. Its so difficult! but yep! its so expensive so they should learn us something better. (43.000 NOK)
Editor? Up until 6 months ago, Notepad. To not seem like a freak during my job interview, I said Notepad++. So they installed it on my computer and I sorta like it I guess. I’d be open to others. Not dead set on this editor.
Program as in schooling? Self-taught (minus the introductory course which started this path.)
Also note that in the code posted above the media queries are malformed and the closing bracket is missing. The body rule is also malformed with an incorrect starting bracket.
Always run your code through the w3c css validator before posting to weed out simple typos and errors.
The code editor in DW is excellent but the wysiwyg is pretty useless. It’s an expensive piece of kit if all you use it for is code editing though and its pretty rubbish on large files.
It’s caused me so much pain when trying to get people off of the design view, that I prefer not to use it based on my principals.
As far as the editor, it’s good, but there are better out there, and I was using Notepad until 6 months ago, grudgingly moved to Notepad++ (to not seem weird during a job interview). Editors do not matter to me. Then take points off for the hassle of design view, and it’s automatically ranked below every other editor in my eyes.
I had a meeting 2-3 weeks ago with a company. They used dreamweaver. I said in the meetingI think “it’s an abomination.”
Wasn’t too worried whether I’d get an offer from them or not. Didn’t care to be associated with them if they rely on it and use it (yes they use design view.)
Look at the first media query. You begin a SECOND media query before the final bracket that closes the first. Count how many opener brackets you have for the first media queries {. Now count your closing brackets }.