SpeakingInBits / PC2

Custom replacement website for pc2online.org. Now live!
https://pc2online.org/
6 stars 0 forks source link

CSS not in the <head> section #274

Closed JoeProgrammer88 closed 1 year ago

JoeProgrammer88 commented 1 year ago

On the page Calendar/Index, must be logged in as an admin to see this page, there is CSS being applied that is not being place inside the <head> tag in HTML. The custom CSS on this page needs to be placed in the <head>

The Layout page, already has a section @await RenderSectionAsync("Head", false) to place CSS code in the head. To use this on the Calendar page, we access the section by coding

@section Head {
    <style>
        /* CSS code goes here */
    </style>
}