Last post May 01, 2012 07:26 AM by teguhyuliantos
Apr 23, 2012 06:41 PM|jacobavala|LINK
I'm very new to this and just learning, but I've been trying to go through this tutorial:
I am getting caught early on by "The Steps for Modifying the Appearance of the Site", where I am told to modify color values in Site.css. After making the changes they asked for my code looks like this:
"Trebuchet MS", Verdana, Helvetica, Sans-Serif;
only the 2nd "color" attribute applies. The first "background-color" attribute retains its original
5c87b2 color. Later on in the exercise I run into similar problems. I have tried restarting and refreshing the build before running it and there is no difference.
Sorry for the amateur hour question, but I can't find any answers to this very simple problem just by searching. Thanks.
Apr 23, 2012 06:44 PM|rickjames961|LINK
make sure that there is no styling applied inline to the body element. Styling applied inline will override what is in the css.
Apr 23, 2012 09:08 PM|GmGregori|LINK
Try starting from scratch.
If you create a new site from the Starter Site template, run it and then open Site.css in Webmatrix, modify the body background-color, save Site.css and refresh the site home page in the browser, I think you can see a new background color.
Apr 23, 2012 09:22 PM|RichardY|LINK
I have never used WebMatrix. So, with that disclaimer, if you are viewing the page in a browser then understand that the browser will always cache the css. It is just another text file to the browser. Always do a page refresh or F5 or Ctrl-F5 or all of
them whenever you change the css. Also, you cannot possibly diagnose this type of issue without using the developer tools that come with every major browser. Just hit f12 and the tools will open. Learn to use them.
Apr 23, 2012 09:37 PM|jacobavala|LINK
Running the page and hitting F5 did the trick, thanks. I appreciate everyone who looked at this issue.
Apr 23, 2012 09:52 PM|RichardY|LINK
I'm glad you resolved your issue. Please mark as answered all post that helped you. Doing so helps other users of the forum. Good luck.
May 01, 2012 07:26 AM|teguhyuliantos|LINK
You can learn each value appear, and try to changed and modify with another value. Hope this will help your problem.