Replies

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

Alright, so I am fairly new to the whole coding thing, and I have been fiddling around with a free premade layout, trying to learn how to do some things with the coding, but I am really interested in learning how to create a hidden content table that you can mouseover. I've already tried a few things that I found around on the forums, and tried to just figure it out myself sadly to no avail.

If anyone can give me a few tips and or tricks, that'd be awesome! I've been trying to find good learning tools as well!

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

It took me a while to get all the content to work. The pet_minion was the worst one. Check out my leashed pet if you want. It goes something like this:

{ /add animation transition,you can make it slower./ transition:height 1s;-moz-transition:height 1s;-webkit-transition:height 1s;-o-transition:height 1s; left:230px; top: 430px; Width:390px;height:55px;display:block; Padding:0; overflow:auto; position:absolute; } /*set a small height. Overflow can be hidden if it wont scroll. You may use a background for the title, setting it to no-repeat and position top center. I think thats easiest. Or if you want to just add text, like this: / :before { content:"The Fridge";display:block;text-align:center;font-size:24px;padding-top:15px;padding-bottom:8px; } / the padding above is to manage where it goes vertically. Then, the magic: */

:hover * {visibility:visible;} /*you may look into using visibility instead of display. Usually display is used if you have a layout where the "button" goes instead of :before text or a background within the div */

:hover {height:250px;overflow:auto;}

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

Alright, so suppose I wanted to add a new content box entirely instead of the already available boxes. I've been having issues with adding in an entirely new table for content and it still working with the mouseover.

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

If you'd like I can take a deeper look into the code. It was really late last night when I posted that.

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

It is a basic premade code that I found here in the forums, that I wanted to noodle around with an see if I could figure some things out, so sure!

So, the story begins...

consectetur adipiscing elit. Praesent lacinia rutrum orci, in finibus nulla pellentesque vitae. Morbi rhoncus nibh tortor, quis facilisis dui lobortis laoreet. Proin a magna libero. Vestibulum viverra maximus augue, at placerat tellus. Quisque turpis erat, porta quis scelerisque sit amet, eleifend at tellus. Praesent in nibh nec justo condimentum dignissim. Sed aliquet augue magna, ac consequat orci ultricies ac. Ut ornare quam vel libero porta laoreet. Morbi luctus quis erat non varius.

Integer interdum porttitor libero, interdum sollicitudin metus molestie non. In non tincidunt nibh. Suspendisse eu egestas lacus. Aenean hendrerit dignissim mi, sit amet tristique dui rutrum eget. Curabitur vitae felis turpis. Vivamus in placerat diam. Donec semper nisl convallis quam consequat ullamcorper.

Nullam mollis odio eu euismod maximus. In et sem ultrices, sodales nisl suscipit, ultrices tortor. Curabitur hendrerit facilisis accumsan. Donec porttitor quam nec diam venenatis egestas nec ac quam. Quisque sollicitudin neque sed laoreet vestibulum. Duis tempor nisi sed egestas imperdiet. Nullam ullamcorper augue ut augue fringilla, ac dignissim turpis molestie. Phasellus sed suscipit velit, ac finibus quam. Suspendisse potenti. Nullam tempor quam et mi egestas, porttitor aliquam nunc efficitur. Nullam lectus sapien, tincidunt non tincidunt ac, iaculis vel arcu. Aliquam egestas tempus tellus, at lobortis ex pulvinar eu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit tortor placerat nisl ornare mattis. Pellentesque mollis convallis sem.

Praesent malesuada enim vel velit lobortis, ac laoreet dolor viverra. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus felis ut massa elementum, eget aliquet nulla efficitur. Quisque ut nisi non magna mollis interdum in quis felis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In hac habitasse platea dictumst. Aenean eu dapibus nisi, et porta augue. Fusce eget consectetur lectus, nec molestie orci. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam vitae faucibus massa. Phasellus vel eros sed lacus dignissim molestie molestie vitae dui. Cras fermentum, ex vel fringilla aliquet, diam tellus pretium turpis, ac sodales nunc nunc a ipsum.

credits:

profile template by [userid=526420].

<style> url('https://fonts.googleapis.com/css?family=La+Belle+Aurore|Lovers+Quarrel|Special+Elite'); {background-image: url(https://i.imgur.com/f5rKrj8.png);} /* background and container */ body, html {background:url('https://orig00.deviantart.net/29eb/f/2013/069/2/7/gothic_brocade_custom_box_background_by_gasara-d5xllvy.gif') repeat ;} {height:100% !important; width:376px; left:400px; border-radius:0px 0px 25px 25px; overflow-x:hidden; margin-bottom:20px; padding-bottom:0px;} /* fonts and colors */ body, html, div, a, tr, td, p {font-family: 'La Belle Aurore', cursive; font-size: 11px; color: ;} {background:; border-bottom:1px solid ; border-left:1px solid ; border-right:1px solid ;} a:link, a:visited, .icon.heart {color:; text-decoration:none;} a:hover, .icon.heart:hover {color:; text-decoration:none;} h1 {color:; font-family: 'Lovers Quarrel', cursive; font-size:15pt !important; font-style:bold; letter-spacing:2px; text-align:center; padding-bottom:3px; padding-right:4px; padding-left:4px;} , , .pet_spotlight, .pet_color_info, .pet_like, .owner, , {background-color:; border:1px solid ;} .pet_name {font-family: 'Special Elite', cursive; font-size:16pt; color:; text-transform:uppercase; letter-spacing:5px;} ::-webkit-scrollbar {width:4px;} ::-webkit-scrollbar-thumb {background:;} /* for hiding things */ , , -ban, -ban-main, -lrc, -rrc, , -right, , , , h2, a, , , , .new-news-announcement-banner, a, , h2, , , a, .stat, .statbar, .pet_age_info_date, .pet_age_info, .pet_wco_info, .pet_wco_info_date, .event, .owner img, .hustler {display:none;} /* positioning profile sections */ {position:relative; top:35px; left:-145px; border-radius: 10px 10px 0px 0px; margin-left:-8px; margin-bottom:-16px;} .pet_name {position:absolute; left:0px; top:22px; width:392px;} {position:absolute; text-transform:lowercase; font-size:9px; left:222px; top:55px; width:140px; height:92px; padding-top:5px; border-radius:10px 10px 0px 0px;} .pet_spotlight {position:absolute; left:222px; top:147px; font-size:9px; width:140px; height:94px; text-transform:lowercase; padding-top:5px;} .pet_color_info {position:absolute; left:12px; top:258px; width:196px; border-radius: 0px 0px 10px 10px; text-transform:lowercase; padding:2px;} .pet_like {position:absolute; top:248px; left:222px; padding:2px; width:14px; padding-left:4px; border-radius:0px 0px 0px 10px;} .owner {position:absolute; top:258px; left:246px; width:112px; border-radius:0px 0px 10px 0px; text-transform:lowercase; padding:2px;} {overflow:auto; text-align:justify; border-radius:10px 10px 10px 10px; width:340px; height:auto!important; padding:5px; margin-left:12px; margin-top:20px;} </style>
Jan 28, 2019 7 years ago
Fire
is sweet
User Avatar
Shinju

which sections did you want the hover effect?

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

I wanted to create an entirely new section to hover over for information; and possibly for links.

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

ok, where will they go? Like to the left/right of what section? I'll code it in

for preview: https://subeta.net/pets/King+Chase

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

I would love them to the left! Oh goodness! Thank you so much!

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

ok, feel free to refresh every 10 min or so. might take a moment

https://fonts.googleapis.com/css?family=La+Belle+Aurore|Lovers+Quarrel|Special+Elite do you still want to use this font? let me know where, I don't think it's activated

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

Looks great!

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

ok let me know any changes you want

Jan 28, 2019 7 years ago
Maturity
is a demon
User Avatar

Yes, I would still like to use those fonts, if you can get them back in working order that would be great, otherwise I can fiddle with it and get them back to it.

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

Here's how to use the fonts: font-family: 'La Belle Aurore', cursive; font-family: 'Special Elite', cursive; font-family: 'Lovers Quarrel', cursive;

add one of them to the div/area where you want to use them. for example: .container h1 { font-family: 'Special Elite', cursive ;font-size:24px; }

I didn't add the fonts since you have to choose where they go. Here's the coding:

testing this

So, the story begins...

consectetur adipiscing elit. Praesent lacinia rutrum orci, in finibus nulla pellentesque vitae. Morbi rhoncus nibh tortor, quis facilisis dui lobortis laoreet. Proin a magna libero. Vestibulum viverra maximus augue, at placerat tellus. Quisque turpis erat, porta quis scelerisque sit amet, eleifend at tellus. Praesent in nibh nec justo condimentum dignissim. Sed aliquet augue magna, ac consequat orci ultricies ac. Ut ornare quam vel libero porta laoreet. Morbi luctus quis erat non varius.

Integer interdum porttitor libero, interdum sollicitudin metus molestie non. In non tincidunt nibh. Suspendisse eu egestas lacus. Aenean hendrerit dignissim mi, sit amet tristique dui rutrum eget. Curabitur vitae felis turpis. Vivamus in placerat diam. Donec semper nisl convallis quam consequat ullamcorper.

Nullam mollis odio eu euismod maximus. In et sem ultrices, sodales nisl suscipit, ultrices tortor. Curabitur hendrerit facilisis accumsan. Donec porttitor quam nec diam venenatis egestas nec ac quam. Quisque sollicitudin neque sed laoreet vestibulum. Duis tempor nisi sed egestas imperdiet. Nullam ullamcorper augue ut augue fringilla, ac dignissim turpis molestie. Phasellus sed suscipit velit, ac finibus quam. Suspendisse potenti. Nullam tempor quam et mi egestas, porttitor aliquam nunc efficitur. Nullam lectus sapien, tincidunt non tincidunt ac, iaculis vel arcu. Aliquam egestas tempus tellus, at lobortis ex pulvinar eu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit tortor placerat nisl ornare mattis. Pellentesque mollis convallis sem.

Praesent malesuada enim vel velit lobortis, ac laoreet dolor viverra. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus felis ut massa elementum, eget aliquet nulla efficitur. Quisque ut nisi non magna mollis interdum in quis felis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In hac habitasse platea dictumst. Aenean eu dapibus nisi, et porta augue. Fusce eget consectetur lectus, nec molestie orci. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam vitae faucibus massa. Phasellus vel eros sed lacus dignissim molestie molestie vitae dui. Cras fermentum, ex vel fringilla aliquet, diam tellus pretium turpis, ac sodales nunc nunc a ipsum.

credits:

profile template by [userid=526420].

<style> {top:0;left:0;width:100%;height:100%;} .nav {position:absolute; border-radius:10px;padding:5px; top:60px;left:10px;text-align:center;display: table; margin: 0 auto; height:100px;width:280px;z-index:9999!important;} .extra {position:absolute; border-radius:10px;padding:5px; top:414px;left:10px; background-color:; border:1px solid ; height:280px;width:280px;z-index:9999!important;} .nav ul { list-style: none; margin: 0; padding: 0; } .nav li a { text-decoration: none; color:!important; padding:8px;margin-bottom:10px; background-color:; border:2px solid ; text-align:center;font-size:16px; text-shadow: 0 0 2px ; border-radius: 15px;display:block; } .nav li a:hover {text-decoration:underline; } {background-image: url(https://i.imgur.com/f5rKrj8.png);} /* background and container */ body, html {background:url('https://orig00.deviantart.net/29eb/f/2013/069/2/7/gothic_brocade_custom_box_background_by_gasara-d5xllvy.gif') repeat ;} {height:100% !important; width:376px; left:300px;padding-left:300px;border-radius:0px 0px 25px 25px; overflow-x:hidden; margin-bottom:20px; padding-bottom:0px;} /* fonts and colors */ body, html, div, a, tr, td, p {font-family: 'La Belle Aurore', cursive; font-size: 11px; color: ;} {background:; border-bottom:1px solid ; border-left:1px solid ; border-right:1px solid ;} a:link, a:visited, .icon.heart {color:; text-decoration:none;} a:hover, .icon.heart:hover {color:; text-decoration:none;} h1 {color:; font-family: 'Lovers Quarrel', cursive; font-size:15pt !important; font-style:bold; letter-spacing:2px; text-align:center; padding-bottom:3px; padding-right:4px; padding-left:4px;} , , .pet_spotlight, .pet_color_info, .pet_like, .owner, , {background-color:; border:1px solid ;} .pet_name {font-family: 'Special Elite', cursive; font-size:16pt; color:; text-transform:uppercase; letter-spacing:5px;} ::-webkit-scrollbar {width:4px;margin:0;} ::-webkit-scrollbar-thumb {background:;} /* for hiding things */ , , -ban, -ban-main, -lrc, -rrc, , -right, , , , h2, a, , , , .new-news-announcement-banner, a, , h2, , a, .stat, .statbar, .pet_age_info_date, .pet_age_info, .pet_wco_info, .pet_wco_info_date, .event, .owner img, .hustler {display:none;} /* positioning profile sections */ { -moz-scrollbars-none;-ms-overflow-style: none;border-radius:10px; transition:height 1s;-moz-transition:height 1s;-webkit-transition:height 1s;-o-transition:height 1s; position:absolute;top:295px;left:10px; width:280px;height:10px;overflow:hidden;} img {height:60px;width:60px;margin:2px;} :hover {overflow:auto;height:100px} ::-webkit-scrollbar{ width: 0 !important ;} :before { content:"Treasure Chest";display:block;text-align:center;font-size:16px;margin-top:-5px;font-weight:bold; } {position:relative; top:35px; left:-145px; border-radius: 10px 10px 0px 0px; margin-left:-8px; margin-bottom:-16px;} .pet_name {position:absolute; left:130px; top:22px; width:392px;} {position:absolute; text-transform:lowercase; font-size:9px; left:522px; top:55px; width:140px; height:92px; padding-top:5px; border-radius:10px 10px 0px 0px;} .pet_spotlight {position:absolute; left:522px; top:147px; font-size:9px; width:140px; height:94px; text-transform:lowercase; padding-top:5px;} .pet_color_info {position:absolute; left:312px; top:258px; width:196px; border-radius: 0px 0px 10px 10px; text-transform:lowercase; padding:2px;} .pet_like {position:absolute; top:248px; left:522px; padding:2px; width:14px; padding-left:4px; border-radius:0px 0px 0px 10px;} .owner {position:absolute; top:258px; left:546px; width:112px; border-radius:0px 0px 10px 0px; text-transform:lowercase; padding:2px;} {overflow:auto; text-align:justify; border-radius:10px 10px 10px 10px; width:340px; height:auto!important; padding:5px; margin-left:12px; margin-top:20px;} .container {height:400px;overflow:auto;padding-right:10px;} </style>

Please log in to reply to this topic.