Changes to CSS file - Page 1 - Post...

User 2625909 Photo


Guest
5 posts

Trying to make a background color change to the CSS but when the change is made it is not reflected in the preview window.
User 187934 Photo


Senior Advisor
20,181 posts

Hi Robert,
Can you provide a link to your page?:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2625909 Photo


Guest
5 posts

I haven't even made a page yet. I mean all I have is a h1. I have two tabs opened, one for html, and one for .css. I put the <link rel="stylesheet" type="text/css" href="robs.css"> into the html file.
I type body {background-color:#3A403A;} then I click save on the css file hoping that it will automagically update in the html preview pane. But no changes are made.
User 187934 Photo


Senior Advisor
20,181 posts

Is the style sheet saved as robs.css?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2625909 Photo


Guest
5 posts

Yes it is. I would even let you view my page if you wanted to through team viewer.
User 187934 Photo


Senior Advisor
20,181 posts

Can you post your code or attach it as a zip file?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2625909 Photo


Guest
5 posts

Sure, I put the css file first.
User 122279 Photo


Senior Advisor
14,447 posts

Robert,
Does your html page have this chunk of code in the head section?
<style type="text/css">
<!--

body {
color:#000000;
background-color:#FFFFFF;
}
a { color:#0000FF; }
a:visited { color:#800080; }
a:hover { color:#008000; }
a:active { color:#FF0000; }
-->
</style>

If it has, the white colour #FFFFFF will override any other colour coming from a style sheet. Since you are using a style sheet, you can delete the styles from the html file.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2625909 Photo


Guest
5 posts

No my HTML file is style free. I attached both the HTML file and css file to my last reply that said "I put the css file first", but I didn't compress it or zip, just a regular attachment. Maybe it didnt attach right?
User 187934 Photo


Senior Advisor
20,181 posts

It needs to be under 100kb.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.