Skip to main content
Participant
Nov 17, 2019 1:17 PM UTC
Answered

Layout issue

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 is closed to new replies. Start a new post to keep the conversation going.
osgood_Correct answer
Legend
Nov 17, 2019 2:51 PM UTC

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.

2 replies

osgood_Correct answer
Legend
Nov 17, 2019 2:51 PM UTC

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.

Translate
Participant
Nov 17, 2019 5:10 PM UTC

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

Translate