why is the CSS style not inherited when it is called in 2 different HTML files?

0

I'm something new using this tool and I wanted to ask a question about inheritance of style with CSS , I have my main page that looks like this:

In the same project I create another file HTML and copy the same code from the main page with the difference in the file name, one file is called index-copia.html and the other is called pacas.html but both have exactly the same code and refer to the same file CSS , but the file named pacas.html is displayed like this

It distorts, changes the size of letters, size and space between images of the flag and logo and everything else. Why does that happen if the 2 files are inheriting the same style?

On other occasions, I copied the main file called index-copia.html into a new folder with its respective style and it is distorted, it seems that only the first created file takes the style, the other files that inherit or try to inherit the style are displayed distorted

Can someone give me an idea of why this happens?

    
asked by Alejandro Ruiz 18.04.2016 в 09:18
source

1 answer

3

Umm! I would say that it is not the CSS, but the browser is saving you the zoom level you had. Give the browser reset option (CTRL-0) on both pages. You can also prevent zooming by adding options in a meta tag for viewport , although it would be against a fluid design.

    
answered by 18.04.2016 в 11:41