We need to be able to see the code that demonstrates the problem. CSS alone is not enough.
You could post a link to your site or build a CodePen that demos the problem OR post a “working page”… something that we can open in our browsers and will allow us to see the problem.
NOTE: Full URLs to outside resources are required, of course.
You rarely want a height on content and certainly not a magic number like 900px.
The 10% width on the menu is going to be very small on smaller screens and unlikely be of any use to you if it holds real content.
As others have said if you post a working demo I’m sure we can help point you in the right direction and best coding practices.
Also note that setting the font-family like this is bad practice.
/*Font*/
*
{
font-family: Verdana;
}
That will kill inheritance on any section of elements that you want to use another font family. You can use it as long as you understand what it is doing and why you are doing it.
The safest way to set the font family is on the body element although you will need to include form controls as well.
You don’t really want a section element inside your div class=“menu”. You could have lost the div anf just add the menu class to the section. However it would be more semaantic to use a nav element.
We don’t really use floats these days for structural elements and flexbox would be better and avoid all the clearing issues (unless indeed you are wrapping content around a floated menu. list).
You don’t need the width:100% on #page as it will be full width by default (to be explicit the width will be auto which for a block element will fill the available space).
Also bear in mind the other issues I pointed out in my first post
Thanks! I’m creating my first project with HTML, CSS and JavaScript. It’s my portfolio actually and I want to improve my practices to a professional level.