Hack Forums
[CSS] navigation bar color changing automatically? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: [CSS] navigation bar color changing automatically? (/showthread.php?tid=5553552)



[CSS] navigation bar color changing automatically? - Ekida - Feb 17, 2017

Hello, once again im getting some problems while trying to change colors
On my navigation bar

On my style.css i have this

Code
#navigation .navbar {
    position: absolute;
    left: 0;
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background-color: #ffffff;
    -webkit-transition: top .25s ease-in-out;
            transition: top .25s ease-in-out;
}


When i upload it to my FTP server it changes automatically
From #ffffff to #000000

Also i even tried to put the default style.css again where it
Had the navigation bar initially, but its still changes to black.


nvm i solved this, for some reason my site isn't updating settings instantly idk why


* - Charger - Feb 17, 2017

I reccomend disabling caching on your browser when doing front end work like that.


* - Nerdi - Feb 18, 2017

1. Are you making sure the file is being REPLACED when you upload? You may have set up your FTP to skip file uploads if file already exists on server.

2. Try using "#fff" or "white" for color. Idk why this would ever work, but I'm not sure why your FTP is altering your code.

3. Purge cache, tell us what happens.