Hey everyone, I'm currently developing a website and encountered an issue with placing content inside the body tag within a div element.
I attempted to place the div inside the body tag, but the outcome was unexpected:
https://i.sstatic.net/2zjqf.jpg
The content seems to be appearing inside the slider. My intention is to have it displayed after the slider section.
Bootstrap is being utilized for this project.
Below is the code snippet:
header {} .carousel {
position: absolute;
top: 0;
height: 50%;
}
... (CSS code continues)
... (HTML code starts)
After experiencing this issue, I decided to test the code in a fiddle. Strangely enough, when using jsfiddle, the result looks as expected without any modifications made to the original code.