html - How do I get tabbed content to 'push' other page content down instead of overlaying? -


I have some tabbed content that works very well, except that I want to put it down on my page ' There is no need to push 'when its height is higher than the page in it.

You can see the problem while clicking on the tab. Need to change other layout of your website without me like this kind of easy solution? I can not do it works in the tab by adding statements in the content page, but this is not really a practical solution.

Note that tabbed content "br" describes the tab labeled Tab 1 and Tab 2 content does not overlap the rest of my page.

  & lt; Ul class = "tabs" & gt; & Lt; Li & gt; & Lt; Input type = "radio" checked name = "tab" id = "tab 1" & gt; & Lt; Label = "tab1" & gt; Tab 1 & lt; / Label & gt; & Lt; Div id = "tab-content1" class = "tab-content animated feedin" & gt; It's ok < / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Input type = "radio" name = "tab" id = "tab2" & gt; & Lt; Label = "tab2" & gt; Tab 2 & lt; / Label & gt; & Lt; Div id = "tab-content2" class = "tab-content animated feedin" & gt; It's OK too & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Input type = "radio" name = "tab" id = "tab3" & gt; & Lt; Label = "tab3" & gt; Tab 3 & lt; / Label & gt; & Lt; Div id = "tab-content3" class = "tab-content animated feedin" & gt; "It's not okay :( But I want to explain to you how all wrong ideas of praising happiness and appreciating the pain were born and I will give you a whole account of the system, and will extend the real teachings of this great researcher. The truth is the master-builder of the happiness of the human being. Anybody rejects, dislikes, or delights in happiness from himself, because it is happiness, but because of the Gon does not know that to pursue happiness, rationally very painful results come out, who loves or pursues or desires to get pain because it hurts, but Because sometimes things happen, in which hard work and pain can get some great pleasure for them. To take a trivial example, of which we have never used harsh physical exercises. Are they to get some benefit from this? But there is no right to make a mistake with a person who chooses to enjoy happiness, for which there are no angry results, or whoever avoids pain, whose Do not get any pleasure as a result? "  






  • & Lt; br>
  • Here's the CSS:

      .tabs input [type = radio] {Position: absolute; top: -99 99px; left: -9999pixel;} tabs {width: 650px; float: none; list style: none; position: relative; padding: 0; margin: 75px auto; Background color: gray;} .tabs li {float: left;} Tabs label {display: block; padding: 10px 20px; boundary-radius: 2px 2px 0 color; # 08c; font-size: 24px; font Weight: normal; font-definition Writer: 'Roboto', Helveti; Background: Gray; Cursor: Indicator; Position: Relative; Top: 3px; -WbKit-Infection: All 0.2S-in-Out; -MOZ-Transition: All 0.2S-In-Out; -O-Infection: All 0.2 S-in-out; Infection: All 0.2 S-in-Out;} Tabs Label: Hover {Background: RGBA (255,255,255,0,5); Top: 0;} [ID ^ = Tab]: check + label {background: # 08C; white color; top: 0;} [id ^ = tab]: checked ~ [id = = tab-content] {display: block; } .tab-content {/ * z-index: 2; * / Display: none; Align text: left; Width: 100%; Font-size: 20px; Line-height: 140%; Padding-top: 10px; Background: # 08C; Padding: 15px; Art color; Status: Completed; Top: 53px; Left: 0; Box-size: border-box; Webkit-Animation-Duration: 0.5s; -O-Animation-duration: 0.5s; -MOZ animation-duration: 0.5s; Animation-period: 0.5s; } << Code>   

    You overflow: hidden to . Tabs .

    Example:

      .tabs {width: 650px; Float: None; List style: none; Status: Relative; Padding: 0; Margin: 75px auto; Background color: gray; Hidden flurry; }  

    Comments

    Popular posts from this blog

    java - Can't add JTree to JPanel of a JInternalFrame -

    javascript - data.match(var) not working it seems -

    javascript - How can I pause a jQuery .each() loop, while waiting for user input? -