logo
down
shadow

Section appears out of the normal flow in html


Section appears out of the normal flow in html

Content Index :

Section appears out of the normal flow in html
Tag : html , By : user133629
Date : November 27 2020, 12:01 PM

will be helpful for those in need Your .sections have their height set to 300 pixels, so that's the value used to lay out the boxes. But .soft-skills's content is more than 300 pixels tall and overflows its box, overlapping with .hard-skills.
To keep each section at least 300 pixels tall but still allow them to stretch to fit their content, use min-height instead of height:
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    font-size: 16px;
}

.page {
    display: flex;
    flex-wrap: wrap;
    height: auto;
}

.section {
    margin-left: 50px;
    margin-right: 50px;
    display: flex;
    width: 100%;
    min-height: 300px;
    z-index: 2;
    flex-direction: column;
}

.present {
    margin-top: 100px;
    border: 10px solid;
    border-image-source: linear-gradient(45deg, rgb(44, 23,
                232), rgb(89,
                218, 247));
    border-image-slice: 1;
    padding: 20px;
    flex-direction: column;
    box-shadow: 0px 5px 10px #97A2A8;
    justify-content: center;
    align-items: center;
    text-align: center;
}
<header>
    <h1>Gloria Desideri<h1>
            <nav>Menu</nav>

</header>
<div class=page>
    <div class='section present'>
        <h1>Hi, I'm Gloria!<h1>

                <h2>I am a <span class='animation'></span>
                    <h2>

    </div>
    <div class='section about'>
        <p>I was born on October 7 2000 in Viterbo.</p>
        <p>I live in Milan.</p>
        <p>I study Computer Science at Politecnico di Milano</p>
        <p> I attended Liceo Scientifico Spallanzani</p>
        <p> I spent my fourth year of High School in California</p>
        <p>I like reading, playing guitar and learning new things</p>

    </div>
    <div class='section soft-skills'>
        <h1> My top 5 strenghts are</h1>
        <div class='skill-container'>
            <span class='skill-number-odd'>01</span>
            <div class='skill'>
                <h2 class='skill-title'>Humilty</h2>
                <p class='skill-description'>Letting one's accomplishments speak
                    for themselves; not regarding
                    oneself as more special than one is.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-even'>02</span>
            <div class='skill'>
                <h2 class='skill-title'>Curiosity</h2>
                <p class='skill-description'>Taking an interest in ongoing experience for its own sake;
                    finding subjects and
                    topics fascinating;
                    exploring and discovering.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-odd'>03</span>
            <div class='skill'>
                <h2 class='skill-title'>Creativity</h3>
                    <p class='skill-description'>Thinking of novel and productive ways to conceptualize and do things;
                        includes artistic achievement
                        but is not limited to it.</p>
            </div>
        </div>
        <div class="skill-container">
            <span class='skill-number-even'>04</span>
            <div class='skill'>
                <h2 class='skill-title'>Judgment</h2>
                <p class='skill-description'>Thinking things through and examining them from all sides; not jumping to conclusions;
                    being able to change one's
                    mind in light of evidence;
                    weighing all evidence fairly.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-odd'>05</span>
            <div class='skill'>
                <h2 class='skill-title'>Fairness</h2>
                <p class='skill-description'>Treating all people the same according to notions of fairness and justice; not
                    letting feelings bias decisions
                    about others; giving everyone a fair chance.</p>
            </div>
        </div>
    </div>
    <div class='section hard-skills'>
        <div class='hard-skills-group'>
            <h1> My hard skills are</h1>
            <div class='hard-container'>
                <h2>SQL</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>C++</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Java</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>HTML5</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>CSS3</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Bootstrap 4</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>English</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 90%" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Excel</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 80%" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Wordpress</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>XML</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
            </div>
        </div>
        <div class='project-history'>
            <h1> Here are some of my past projects</h1>
            <div class='prj'>
                <h1>Trade Inc</h1>
                <p>Android videogame on world trading.</p>
                <p>The game worked through quizzes that kids had to compete in order to get raw materials to sell and make money</p>
            </div>
            <div class='prj'>
                <h1>Animas</h1>
                <p>Android app for church news</p>
                <p>The app had the calendar of the local church, dayly news, prayers and the church youtube channel feed</p>
            </div>
            <div class='prj'>
                <h1>IMind</h1>
                <p>Mental healt Wordpress website</p>
                <p> This website was ment both as a blog to inform the users about mental health broblems and a way to get in contact with a professional counselor</p>
            </div>
        </div>
    </div>
    <div class='section future'>
        <div class="goals">
            <h1>My career goals are</h1>
        </div>
    </div>

</div>
<footer>
</footer>
.section {
    overflow: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    font-size: 16px;
}

.page {
    display: flex;
    flex-wrap: wrap;
    height: auto;
}

.section {
    margin-left: 50px;
    margin-right: 50px;
    display: flex;
    width: 100%;
    height: 300px;
    z-index: 2;
    flex-direction: column;
}

.present {
    margin-top: 100px;
    border: 10px solid;
    border-image-source: linear-gradient(45deg, rgb(44, 23,
                232), rgb(89,
                218, 247));
    border-image-slice: 1;
    padding: 20px;
    flex-direction: column;
    box-shadow: 0px 5px 10px #97A2A8;
    justify-content: center;
    align-items: center;
    text-align: center;
}
<header>
    <h1>Gloria Desideri<h1>
            <nav>Menu</nav>

</header>
<div class=page>
    <div class='section present'>
        <h1>Hi, I'm Gloria!<h1>

                <h2>I am a <span class='animation'></span>
                    <h2>

    </div>
    <div class='section about'>
        <p>I was born on October 7 2000 in Viterbo.</p>
        <p>I live in Milan.</p>
        <p>I study Computer Science at Politecnico di Milano</p>
        <p> I attended Liceo Scientifico Spallanzani</p>
        <p> I spent my fourth year of High School in California</p>
        <p>I like reading, playing guitar and learning new things</p>

    </div>
    <div class='section soft-skills'>
        <h1> My top 5 strenghts are</h1>
        <div class='skill-container'>
            <span class='skill-number-odd'>01</span>
            <div class='skill'>
                <h2 class='skill-title'>Humilty</h2>
                <p class='skill-description'>Letting one's accomplishments speak
                    for themselves; not regarding
                    oneself as more special than one is.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-even'>02</span>
            <div class='skill'>
                <h2 class='skill-title'>Curiosity</h2>
                <p class='skill-description'>Taking an interest in ongoing experience for its own sake;
                    finding subjects and
                    topics fascinating;
                    exploring and discovering.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-odd'>03</span>
            <div class='skill'>
                <h2 class='skill-title'>Creativity</h3>
                    <p class='skill-description'>Thinking of novel and productive ways to conceptualize and do things;
                        includes artistic achievement
                        but is not limited to it.</p>
            </div>
        </div>
        <div class="skill-container">
            <span class='skill-number-even'>04</span>
            <div class='skill'>
                <h2 class='skill-title'>Judgment</h2>
                <p class='skill-description'>Thinking things through and examining them from all sides; not jumping to conclusions;
                    being able to change one's
                    mind in light of evidence;
                    weighing all evidence fairly.</p>
            </div>
        </div>
        <div class='skill-container'>
            <span class='skill-number-odd'>05</span>
            <div class='skill'>
                <h2 class='skill-title'>Fairness</h2>
                <p class='skill-description'>Treating all people the same according to notions of fairness and justice; not
                    letting feelings bias decisions
                    about others; giving everyone a fair chance.</p>
            </div>
        </div>
    </div>
    <div class='section hard-skills'>
        <div class='hard-skills-group'>
            <h1> My hard skills are</h1>
            <div class='hard-container'>
                <h2>SQL</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>C++</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Java</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>HTML5</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>CSS3</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Bootstrap 4</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>English</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 90%" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Excel</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 80%" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>Wordpress</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
                <h2>XML</h2>
                <div class="progress">
                    <div class="progress-bar bg-info" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
                </div>
            </div>
        </div>
        <div class='project-history'>
            <h1> Here are some of my past projects</h1>
            <div class='prj'>
                <h1>Trade Inc</h1>
                <p>Android videogame on world trading.</p>
                <p>The game worked through quizzes that kids had to compete in order to get raw materials to sell and make money</p>
            </div>
            <div class='prj'>
                <h1>Animas</h1>
                <p>Android app for church news</p>
                <p>The app had the calendar of the local church, dayly news, prayers and the church youtube channel feed</p>
            </div>
            <div class='prj'>
                <h1>IMind</h1>
                <p>Mental healt Wordpress website</p>
                <p> This website was ment both as a blog to inform the users about mental health broblems and a way to get in contact with a professional counselor</p>
            </div>
        </div>
    </div>
    <div class='section future'>
        <div class="goals">
            <h1>My career goals are</h1>
        </div>
    </div>

</div>
<footer>
</footer>

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

AP HTML element isn't removed from the normal flow of HTML in IE6 & IE7


Tag : javascript , By : Ed.
Date : March 29 2020, 07:55 AM
may help you . while I can't reproduce the error, as in it's working fine in IE7 for me with the CSS as it is, you might try this, still accessible and just clips the content of the error message (is that what you want?)
#contact_form label.error {
  position: absolute;
  clip: rect(1px 1px 1px 1px); /* IE6 */
  clip: rect(1px, 1px, 1px, 1px);
}

Change HTML normal flow


Tag : html , By : user170635
Date : March 29 2020, 07:55 AM
seems to work fine A Google search showed that this is not discussed anywhere, but: , Would you like obtain something like this:
Item4 item5 item6
item1 item2 item3

Are floated element really removed from normal html flow?


Tag : html , By : Rik
Date : March 29 2020, 07:55 AM
it helps some times You are confused with position: absolute. Floating will move an element to the left or right, encouraging other elements to 'float' around it, but they will still be in the flow and other elements are influenced by it.
When you use position: absolute, you remove the element from the flow, placing it on top or below other elements.
.content-area {
    background-color: #bbb;
    height: 310px;
    position: relative;
}
.left-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background-color: #abcdef;
}
.right-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background-color: #abcdef;
}

Resume normal HTML flow after absolutely positioned div element


Tag : html , By : Mike
Date : March 29 2020, 07:55 AM
hope this fix your issue You can wrap #parent and child inside another relative div e give it the height https://jsfiddle.net/f6phun8a/2/
#parent {
  position: absolute;
  height: 200px;
  width: 200px;
  background-color: red;
}
#outer {
  position: relative;
  height: 200px;
}
#child {
  position: relative;
  left: 50px;
  top: 50px;
  height: 50px;
  width: 50px;
  background-color: green;
}

#after-parent {
  background-color: blue;
}


<div id="outer">

<div id="parent">
  <p>Parent div</p>
</div>
<div id="child">
  <p>child div</p>
</div>

</div>
<div id="after-parent">
  <h1>Normal HTML flow after parent div</h1>
</div>

Hero section with CSS slideshow, positioning for heading and normal flow?


Tag : html , By : vasil
Date : March 29 2020, 07:55 AM
will help you z-index is your friend. As: You can polish it by adding a wrapper, text center, etc...
#head {
     min-height: 50vh;
     overflow: hidden;
     position: relative;
}
.pic-wrapper {
     position: absolute;
     width: 100%;
     min-height: 50vh;
     overflow: hidden;
}
/* added this */
 #hero {
     z-index: 20;
     position: absolute;
     width: 100%;
     padding: 2vw;
     text-align: center;
     text-size: 200% 
}
figure {
    /* and this */
     z-index: 1;
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0;
    /*animation*/
     animation: slideShow 24s linear infinite 0s;
     -o-animation: slideShow 24s linear infinite 0s;
     -moz-animation: slideShow 24s linear infinite 0s;
     -webkit-animation: slideShow 24s linear infinite 0s;
}
 .pic-1 {
     opacity: 1;
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
     background-position-y: 50%;
}
 .pic-2 {
     animation-delay: 6s;
     -o-animation-delay: 6s;
     -moz--animation-delay: 6s;
     -webkit-animation-delay: 6s;
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
     background-position-y: 50%;
}
 .pic-3 {
     animation-delay: 12s;
     -o-animation-delay: 12s;
     -moz--animation-delay: 12s;
     -webkit-animation-delay: 12s;
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
     background-position-y: 50%;
}
 .pic-4 {
     animation-delay: 18s;
     -o-animation-delay: 18s;
     -moz--animation-delay: 18s;
     -webkit-animation-delay: 18s;
     -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
     background-position-y: 50%;
}
/* keyframes*/
 @keyframes slideShow {
     0% {
         opacity: 0;
         transform:scale(1);
         -ms-transform:scale(1);
    }
     5% {
         opacity: 1 
    }
     25% {
         opacity: 1;
    }
     30% {
         opacity: 0;
         transform:scale(1.1);
         -ms-transform:scale(1.1);
    }
     100% {
         opacity: 0;
         transform:scale(1);
         -ms-transformm:scale(1);
    }
}
 @-o-keyframes slideShow {
     0% {
         opacity: 0;
         -o-transform:scale(1);
    }
     5% {
         opacity: 1 
    }
     25% {
         opacity: 1;
    }
     30% {
         opacity: 0;
         -o-transform:scale(1.1);
    }
     100% {
         opacity: 0;
         -o-transformm:scale(1);
    }
}
 @-moz-keyframes slideShow {
     0% {
         opacity: 0;
         -moz-transform:scale(1);
    }
     5% {
         opacity: 1 
    }
     25% {
         opacity: 1;
    }
     30% {
         opacity: 0;
         -moz-transform:scale(1.1);
    }
     100% {
         opacity: 0;
         -moz-transformm:scale(1);
    }
}
 @-webkit-keyframes slideShow {
     0% {
         opacity: 0;
         -webkit-transform:scale(1);
    }
     5% {
         opacity: 1 
    }
     25% {
         opacity: 1;
    }
     30% {
         opacity: 0;
         -webkit-transform:scale(1.1);
    }
     100% {
         opacity: 0;
         -webkit-transformm:scale(1);
    }
}
<section id="head">
    <div class="pic-wrapper">
        <div id="hero">
            <h1>Slideshow Heading</h1></div>
        <figure class="pic-1" style="background-image: url(https://images.pexels.com/photos/258109/pexels-photo-258109.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260)"></figure>
        <figure class="pic-2" style="background-image: url(https://images.pexels.com/photos/206359/pexels-photo-206359.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260)"></figure>
        <figure class="pic-3" style="background-image: url(https://images.pexels.com/photos/210186/pexels-photo-210186.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260)"></figure>
        <figure class="pic-4" style="background-image: url(https://images.pexels.com/photos/1166209/pexels-photo-1166209.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260)"></figure>
    </div>
</section>

<section>
    <h2>New Section</2>
</section>
Related Posts Related QUESTIONS :
  • Angular - String interpolation of undefined variable
  • Is there any way to edit specific Column of table using mat-table in Angular material
  • How can I set a text as a shadow for a heading element?
  • How to fix the forms making the buttons overlap
  • Splitting XML into multiple HTML pages with XSLT?
  • How to justify empty divs in flex container
  • How to blur in CSS only one layer of when you have multiple layers in background-image?
  • Scrollable html table with fixed first row and first column, along with angular material controls within the cells of ta
  • In Django, how to extract ID attribute from html Input tag, WITHOUT using django forms
  • how to fix link tag in html after changing css
  • How do I add a top padding to the second row?
  • Is it possible to split XML into multiple HTML pages with page navigation?
  • AngularJS: responsive height in bootstrap
  • Hide second line of text with CSS
  • repeating-linear-gradient not working in Edge browser and internet Explorer Browser
  • how to make search and form category merges like amazon on bootstrap
  • Bootstrap: Rearranging rows into columns and changing the order of elements
  • How can I move a label under a text box?
  • How save LinearGradient To database
  • How to reposition an image with a linear gradient using css?
  • HTML audio will not play when page opened by batch file
  • CSS Three Tone Diagonal Background
  • How to use slots inside of template components in HTML
  • Using span tags in meta description & title, for dual languages
  • How to make an icon/span selectable by pressing Tab key?
  • Add dynamic margins using UI Kit
  • Add margin-top to textbox
  • What is the correct semantic HTML markup for a title (book, movie, etc.), according to the spec? Is it an <em> tag
  • How to make an animation in Geoserver or in Leaflet
  • Buttons overlapping when shrinking window
  • Stretch an element to the end of the automatically calculated grid, not just the explicit grid
  • What relation is there between Angular's <ng-content> and ShadowDOM
  • CSS background for div element is not working
  • CSS Marquee: multiple paragraphs overlaps
  • I want to align search bar to extreme right
  • Getting blank white space to the left of content inside pre tags
  • My viewer.html won't load any css and jss files
  • How to apply multiple styles to HTML to only part of a title?
  • Want to make text div transparent on a parallax area
  • Is there a way to make this ID plus descendants CSS rule less specific?
  • Is there a way to drop in a stylesheet to get a Material theme or similar for all form elements on the page?
  • How do I make a sideways L look in html/css?
  • Why won't the color #e67d22e1 display in Safari?
  • How to select specific tag's attribute value with xPath?
  • How to make div rows fill available height
  • How to fix text inside a block that grows
  • svg hexagon halftone pattern
  • How to edit a website's element's background colors using a chromium extention
  • What is the main tag in HTML5 ? How does it differ from body tag?
  • My image is flowing out from my div column. How I can fix it and made the image full-size into div
  • How to draw line in react
  • Why Transition css is not working in child selector css
  • How to modify materialize css select option?
  • How to center some text in a rectangle in CSS?
  • How do I equally space out css grid columns?
  • How to make sure all the parts of a macro are running correctly?
  • How to adjust the zoom of website at different browser at different screen size?
  • Can't set max height on child div properly
  • Why background color is not applying to DIV container?
  • Need to select the first-child
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com