What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Scroll without content; text flows beyond div/div height not 100%

SilverC3ll

New member
Joined
Oct 9, 2023
Messages
1
Reaction score
0
HTML Coins
0
Hello everyone,

I am yet a beginner in HTML/CSS, and hope to ask more seasoned users of these languages for their input. My issue is probably easy to resolve, but difficult from a neophyte's perspective.

Page scrolls without content
For some reason, my page summons a scrollbar even though not enough content is present.

Likely the relevant HTML/CSS:

CSS:
CSS:
main {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}

CSS:
.mainContent {
text-align:
center;width: 70%;
height: 100%;
background-color: #fff;
opacity: 0.7;
display: flex;
flex-direction: column;
justify-content:flex-start;
align-items: center;padding-top: 50px;
}

HTML:
HTML:
<main>
<div class="mainContent"> <!--OPEN DIV #1-->

<!--OPEN Logo and Title H1 -->
<img src="./img/logoResizedNoBG.png"> <h1>spiritualnovels.net</h1> <!--CLOSE Logo and Title H1 -->   

<!--OPEN Menu-->   
<ul class="menu"> 
<li><a href="#">Publications</a></li> 
<li><a href="#">Author</a></li> 
<li><a href="#">Video</a></li> 
<li><a href="#">Contact</a></li> </ul> 
<!--CLOSE Menu-->

</div> <!--CLOSE DIV #1-->
</main>



Div does not maintain 100% height; text overflows
Either main{} and/or .mainContent{} does not maintain 100% height, with content text overflowing at the bottom of either main{} and/or mainContent{}.



I'd be most grateful for any insight you can offer.

All the best to you,

SilverC3ll
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back