Hey there, thanks for taking the time to read my query!
I am interested in adding a gradient background color to a specific page on my Vue application. I tried applying the following code in components/Frontpage.Vue:
html {
background: linear-gradient(45deg, #17ead9, #6078ea);
height: 100vh;
margin: 0;
background-attachment: fixed;
}
However, it seems like the background remains white. Surprisingly, when I place the exact same code in App.Vue, it works perfectly fine. To bypass this issue, I've resorted to importing an external CSS file, but it's not the most elegant solution. Does anyone have any suggestions?
EDIT: Essentially, I need to place the background styling within Frontpage.vue because it should only appear on that particular page. Unfortunately, as it is scoped, I can't access the 'html' element.
Thank you for reading through my query, even if you're unable to offer a solution. This marks my debut post on StackOverflow!