[Vuejs]-Body element having two background colors

0👍

Okay if you want the background to have the color red then just add the class plainly this way,

<body class="background"> 
.background {
    background-color: red;
    height: 100%;
    width: 100%;
    }

This is what I have understood from what you have tried to question?
If you could explain more specifically what you require then I think I can help you out more?
Or instead add the add the same in the
‘html,body{}’
styling instead of a seperate class.

0👍

You are pulling your body down because you have set a margin-top on the wrapper. To deal with this, just wrap it in another div which takes a padding. Also make your body 100%.
Take a look at following fiddle:

body: {height: 100%}

https://codepen.io/nielsvhb/pen/oQLZVQ

Leave a comment