Replies

Jan 5, 2019 7 years ago
Dawn
has a massive family
User Avatar
Jenni

I want my pet's treasure to show when a tab is clicked but I am unable to call the div within the tab container so not sure if anyone would have an idea of how to fix this?

Thank you.

Jan 5, 2019 7 years ago
Bug
User Avatar
Segfault

What code do you have for it so far?

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Jan 6, 2019 7 years ago
Dawn
has a massive family
User Avatar
Jenni

The code I have at the moment:

<style type="text/css">

, , -ban, -ban-main, -lrc, -rrc {display:none;} , -right, , , , h2, a, {display:none;} , body, , , {background-color:transparent;height: auto !important;} .pet_wco_info_date, .pet_age_info_date, .pet_like{display:none;} .bookmark{display:none;} .statbar{display:none;} li#stat_level, li#stat_strength, li#stat_defense, li#stat_speed, li#stat_health, li#stat_hp, li#stat_intelligence, li#stat_books_read, li#stat_food_eaten, li#pet_employment {display: none;}

{position:fixed; top:90px; left:10px; color: purple; font: 10pt Arial; border: 4pt dotted gold; height: 500px!important;}

{position: fixed; left: 20px; top: 100px;}

{position:fixed; display:block; top: 380px; left:40px; height: 280px; width: 170px; overflow:auto; } {display:none;} {display:none;} {} .pet_name{position: fixed; top: 300px; left: 85px;} .pet_color_info{position: fixed; top: 330px; left: 70px} .owner{position:fixed; top: 345px; left: 80px;}

{position: fixed; width: 250px; font: 10pt Kristen itc; }

{position:fixed top: 380px; left:20px; width: 250px; overflow:auto; font: 10pt Kristen itc; }

{position: fixed;} { background-color: black; color: white; font-size: 20px; text-align: center; border: 1px dashed white; font-family: Kristen itc; }

  .tabs input[type=radio] {
      position: absolute;
      top: -9999px;
      left: -9999px;
  }
  .tabs {
    width: 300px;
    float: none;
    list-style: none;
    position: relative;
    padding: 0;
    margin: 75px auto;
	top: -180px;
	left: 80px;
  }
  .tabs li{
    float: left;
  }
  .tabs label {
      display: block;
	  border: 2px dashed;
      padding: 0px 10px;
      border-radius: 2px 2px 0 0;
      color: purple;
      font-size: 12px;
      font-weight: normal;
      font-family: 'Lily Script One', Kristen itc;
      background: rgba(255,255,255,0.2);
      cursor: pointer;
      position: relative;
      top: 0px;
	  left: 80px;
      -webkit-transition: all 0.2s ease-in-out;
      -moz-transition: all 0.2s ease-in-out;
      -o-transition: all 0.2s ease-in-out;
      transition: all 0.2s ease-in-out;
  }
  .tabs label:hover {
    background: rgba(255,255,255,0.5);
    top: 0;
  }
   
  [id^=tab]:checked + label {
    background: purple;
    color: white;
    top: 0;
  }
   
  [id^=tab]:checked ~ [id^=tab-content] {
      display: block;
  }
  .tab-content{

overflow: scroll; height: 520px; border: 2px dotted; z-index: 2; display: none; text-align: center; width: 100%; font-size: 20px; line-height: 140%; padding-top: 10px; padding: 15px; color: purple; position: absolute; top: 30px; left: 20px; box-sizing: border-box; -webkit-animation-duration: 0.5s; -o-animation-duration: 0.5s; -moz-animation-duration: 0.5s; animation-duration: 0.5s; }

li.active a, li.active a:hover { background:; color:; }

.tab-content { padding:15px; border-radius:3px; box-shadow:-1px 1px 1px rgba(0,0,0,0.15); background:; } .tab { display:none; }

.tab.active { display:block; }}

a:link{color: gold; font: 10pt Arial;} a:visited{} a:hover{} a:active{}

</style>
  • Pronounced: KURO-eh
    Kuroe is the Japanese translated name for Chloe. Variant spellings also could be Kuroi or Kuroii.

    Working on getting the profile created, etc. I will probably look at coding the beginnings for Togepi's profile soon.

  • [I] Evil, Demon, A Bad Omen...

    [/I]

           <div id="story">
    	   <center>
    

    Those were the words that you used to call me. Like a viper preparing it’s next strike - to sink those razor sharp fangs into the soft flesh of it’s victim and release it’s venom into the bloodstream. How easy it must of been for those words to roll off your tongues while each one of them stung me like the poisoned barbs you had intended them to be.

    Did this make you happy each time you saw your barb hit home? Was each of my tears that fell just another victory within your minds?

    Back when I was young and naive, I use to believe how you treated me was love.

  • Credits:
    Coding by: Dawn
  • I just left the treasure off of the tabs since the div id is not working with it and I am not sure what else to do.

    Jan 28, 2019 7 years ago
    Fire
    is sweet
    User Avatar
    Shinju

    look up how to use :target in css. like this: {display:none;} :target {display:block;}

    might be visibility instead of block though, I'm not sure... let me know. oh, and also you must have a link that reads: click me

    Jan 29, 2019 7 years ago
    Dawn
    has a massive family
    User Avatar
    Jenni

    Just tested this out via Togpei's profile and it works. :) I'll have to figure out what I want the link to view the treasure will say but thank you.

    Just noted, it doesn't remain in the one tab after displaying it.. so will have to play around with it, lol.

    Jan 29, 2019 7 years ago
    Fire
    is sweet
    User Avatar
    Shinju

    Yea, i think target means it activates only when its part of the url. Idk if that can be fixed with just css though. Maybe try looking into adding a a new class with a click where the class has the display:block?

    Jan 29, 2019 7 years ago
    Dawn
    has a massive family
    User Avatar
    Jenni

    Have to look into it, just thought it would be easy to put it into a div id and would work, lol.

    Please log in to reply to this topic.