I have wrote my website in the biggest size (1025px) however now that I have added media queries the media query for the smallest screen size (400px) has over written all other CSS.
It does not listen to the breakpoint.
Too much code for one code snippet as I am unsure where the problem is at all. Site here: https://taramcallister.github.io/portfolio/
@media (min-device-width : 320px) {
/* smartphones, iPhone, portrait 480x320 phones */
#top {
display: grid;
grid-template-columns: 100%;
}
.nav {
display: none;
}
#bio {
font-size: 0.7em;
max-width: 70vw;
padding-top: 1em;
padding-bottom: 0em;
}
@media (min-width:481px) {
/* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
#bio {
font-size: 0.85em;
}
#name {
font-size: 3em;
}
.app {
margin-top: 4em;
}
.info-wrap6 {
margin-top: 2em;
}
}
@media (min-width:1025px) {
/* big screens */
/* designed for this size */
}
When i make the viewport larger it still has all the styling from the smaller screen size, rather than switching to original code?