Skip to main content
Participant
November 17, 2019
Answered

Layout issue

  • November 17, 2019
  • 1 reply
  • 467 views

Hello!

 

I have problems getting the layout correct in when I finally upload a page to a server.

 

In the original version of the page, a text (h3) was aligned to the right.

 

My client wanted the text to be centered instead, so in styles.css I changed to:

text-align:center;

 

The text is now centered in code, also when pre-check in Chrome and Safari.

 

When I upload the document to a server, the text is still to the right. Am I doing something wrong here?

 

Thanks in advance for your kind answers.

This topic has been closed for replies.
Correct answer osgood_

I assume you are uploading the amended css file to the server. If so and you are still seeing the text aligned to the right it could be you are viewing a version of the page which has been cached in your browser. Try viewing the page in a different browser or renaming your css file. If you do that dont forget to update the link to it in your page.

 

These are just some suggestions and options which you can try to determine what the source of the problem is.

1 reply

osgood_Correct answer
Legend
November 17, 2019

I assume you are uploading the amended css file to the server. If so and you are still seeing the text aligned to the right it could be you are viewing a version of the page which has been cached in your browser. Try viewing the page in a different browser or renaming your css file. If you do that dont forget to update the link to it in your page.

 

These are just some suggestions and options which you can try to determine what the source of the problem is.

Participant
November 17, 2019

Thanks a lot for your answer!
Stupid as I am, I forgot to upload the updated css file. Now everything works fine, I can sleep well tonight! 
Thanks again for your kind reply.

/Göran