1

When I run my code locally, everything is formatted correctly. When I try to upload the file onto GoDaddy, I'm getting an error on lines that have width: calc(100% - (x)px).

This is my code that I'm getting an error on:

.banner-links, .banner-links-under, .banner-links-up {
  position: absolute;
  width: calc(100% - 16px); /* Right here is where it says there's an error. */
  padding: 8px;
  text-align: right;
  height: 28px;
  color: black;
}

Is it a problem with GoDaddy not processing the calc() function? I have no idea what I'm doing wrong here.

Here is my error in picture form: in GoDaddy's uploader

6
  • Which browser are you using? Commented Mar 15, 2018 at 5:42
  • Check my edit, I have uploaded a picture of my error in GoDaddy's uploader. Commented Mar 15, 2018 at 5:45
  • I wouldn't worry about it. Does it work well on browser when you open the site? Commented Mar 15, 2018 at 5:48
  • You're right Nisarg, I just went for it and it worked, despite the errors. Commented Mar 15, 2018 at 5:52
  • Have you tried using an alternate means of uploading. perhaps some ftp like filezilla? Commented Mar 15, 2018 at 5:56

1 Answer 1

2

As evident from your screenshot, there is no error in CSS. It looks like the vendor's software doesn't recognize the calc function in CSS.

You can reach out to them if you want, and have them fix the issue. But I don't think it is necessary. As long as the CSS file is delivered correctly, and it works in the browser, this is not a problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.