7

When you have to make a website responsive and you don't have access to the main CSS file, every single line of css you write contains
"!important".

Comments
  • 0
    That is why it is cascading... Create a second stylesheet?
  • 2
    You can easily grab the style sheet if the site is live somewhere? Save it as a new file.css and re-link the pages to it. Do what you want with it. What do you have access to if I'm missing something?
  • 0
    @CDESmith I did create a new stylesheet.
  • 0
    @helloworld I can get the main CSS file from chrome inspection tool, but I don't have the permission to change it. I can only add the rules in my file which was conflicting with the main CSS file, that's why I had to add
    !important
    to the lines.
  • 1
    @mohammed that's bonkers, I don't understand why you can't have full access if you are doing this kind of work. What happens if you need to alter some div placement in the html?
    I remember making a static site responsive and also implementing a full cms for a site. It was quicker to re-do the whole thing, as everything was fixed width and bloated. Starting clean it was efficient and slicker. Good luck, but !important will cause you problems I'm sure.
  • 1
    @helloworld I don't get it either.
  • 0
    @helloworld the reason is I'm a junior developer on internship and I guess they don't trust me for some reason!
  • 2
    @mohammed I see. Ask them to clone it and give you proper access because the way your expected to do it is a complete waste of time.
  • 0
    @helloworld already did, they said they don't have time to clone it and I have to deal with it.
Add Comment