Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

Thread: HTML and CSS Tips and Tricks

  1. #21
    valora's Avatar
    Joined
    Oct 2019
    Posts
    194
    Userbars
    20
    Thanks
    2,108
    Thanked
    1,102/229
    Mentioned
    57 times
    Time Online
    16d 13h 2m
    Avg. Time Online
    14m
    Glad I could help! If there's any other requests for petpage coding I can probably help out -- I'm terrible at pet/user lookups though

    Edit: Also, (you need an account to see links) is a really nice directory for coding stuff and premades but I'm not sure if it's up-to-date

  2. The Following User Says Thank You to valora For This Useful Post:

    Zapdos (11-11-2020)

  3. #22
    Ice's Avatar
    Joined
    Aug 2012
    Posts
    2,863
    Pronouns
    She/Her
    Userbars
    100
    Thanks
    11,598
    Thanked
    9,240/2,714
    DL/UL
    21/0
    Mentioned
    953 times
    Time Online
    116d 18h 37m
    Avg. Time Online
    39m
    I forgot I did this for someone else a bit ago - here's a base snippet of code for replacing the "mail/neofriend/trades etc." icons on your userlookup.

    <style>
    #userinfo .medText img {
    visibility: hidden;
    }
    #userinfo table tr td table tr td.medText table tr td.medText a {
    width: 60px;
    height: 60px;
    background: url("URL FOR IMAGE HERE");
    display: inline-block;
    margin-bottom: 5px;
    }
    </style>
    Notes:
    -the first line also makes your SHIELD disappear
    -the same image will be repeated for each icon
    -change width/height to whatever you want to fit the dimensions of your chosen image! (but obviously if you try to use too big images, it'll stretch things out)
    -if you want different images for each icon, I'm pretty sure you need to make "one long image" with the correct spacing between the icons so that you're essentially inserting one long image in the back that peeks through and the code is probably slightly different. I've just been too lazy to play with that yet.

  4. The Following 2 Users Say Thank You to Ice For This Useful Post:

    valora (11-12-2020),Zapdos (11-11-2020)

  5. #23
    Gyaoo!
    Zapdos's Avatar
    Joined
    Aug 2020
    Posts
    769
    Pronouns
    【she ⚡ her】
    Userbars
    68
    Thanks
    3,475
    Thanked
    3,295/802
    DL/UL
    15/0
    Mentioned
    335 times
    Time Online
    52d 15h 53m
    Avg. Time Online
    56m
    Quote Originally Posted by Ice View Post
    I forgot I did this for someone else a bit ago - here's a base snippet of code for replacing the "mail/neofriend/trades etc." icons on your userlookup.



    Notes:
    -the first line also makes your SHIELD disappear
    -the same image will be repeated for each icon
    -change width/height to whatever you want to fit the dimensions of your chosen image! (but obviously if you try to use too big images, it'll stretch things out)
    -if you want different images for each icon, I'm pretty sure you need to make "one long image" with the correct spacing between the icons so that you're essentially inserting one long image in the back that peeks through and the code is probably slightly different. I've just been too lazy to play with that yet.
    Awesome, thank you! Added to the main post


    12/11/20 update:

    Added some resources/guides, plus some premade links. I will continue to compile these on my work breaks!


    (you need an account to see links)


    (you need an account to see links)


    Thank you Zenitsu and Greyfaerie for my siggy UBs respectively!
    Thank you Hollow for the vector art!


  6. The Following 2 Users Say Thank You to Zapdos For This Useful Post:

    Ice (11-11-2020),valora (11-12-2020)

  7. #24
    Aero's Avatar
    Joined
    Sep 2020
    Posts
    1,673
    Pronouns
    she/her
    Userbars
    86
    Thanks
    6,330
    Thanked
    4,439/1,362
    DL/UL
    14/0
    Mentioned
    190 times
    Time Online
    85d 10h 37m
    Avg. Time Online
    1h 34m
    @(you need an account to see links)

    The formatting looks super clean! Thanks for putting this all together :')

  8. The Following 2 Users Say Thank You to Aero For This Useful Post:

    valora (11-12-2020),Zapdos (11-11-2020)

  9. #25
    valora's Avatar
    Joined
    Oct 2019
    Posts
    194
    Userbars
    20
    Thanks
    2,108
    Thanked
    1,102/229
    Mentioned
    57 times
    Time Online
    16d 13h 2m
    Avg. Time Online
    14m
    Finally got around to writing something out for splash pages~

    SPLASH PAGES
    My method for splash pages is basically just to make 100% width and 100% height container divs which either have the "overflow: hidden;" or "overflow: auto;" property to determine if they will scroll or not, and using anchors to link between them.
    Code:
    <style>
    body {
    overflow: hidden;
    }
    .contain {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    }
    .section {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    overflow: auto;
    }
    </style>
    
    <div class="contain"><a name="intro"></a>
    <center><a href="#next">Click to continue.</a></center>
    </div>
    
    <div class="section"><a name="next"></a>
    <center>This is the next section.<br><a href="#intro">Click to go back.</a></center>
    </div>
    (This probably isn't the most streamlined way to do it, but it works! It also allows you to have infinite scrolling or non-scrolling sections within a single petpage)
    The "contain" div class is set up so it won't scroll, and the "section" div class will scroll. So for example you could have a click-through introduction with a few "contain" divs and then a "section" div at the end where you would have your regular petpage content.

    If you want to link to different sections within the page (i.e. having multiple "pages" on the same petpage, like an application for a pet where you might want to have separate "application" and "character" pages) I find it best to set up two divs within the first container with 50% width so they're spaced out evenly for all resolutions.
    Code:
    <style>
    body {
    overflow: hidden;
    }
    .contain {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    }
    .section {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    overflow: auto;
    }
    .one {
    width: 50%;
    height: 100%;
    float: left;
    left: 0;
    background: #c9f0eb;
    }
    .two {
    width: 50%;
    height: 100%;
    float: right;
    right: 0;
    background: #dbc9f0;
    }
    </style>
    
    <div class="contain"><a name="intro"></a>
    
    <div class="one">
    <center><a href="#one">Go to section one.</a></center>
    </div>
    
    <div class="two">
    <center><a href="#two">Go to section two.</a></center>
    </div>
    
    </div>
    
    <div class="section"><a name="one"></a>
    <center>This is section one.<br><a href="#intro">Click to go back.</a></center>
    </div>
    
    <div class="section"><a name="two"></a>
    <center>This is section two.<br><a href="#intro">Click to go back.</a></center>
    </div>
    (I just added background colours to show the two divs more clearly)
    It might also look like there's a white space at the top, but that only shows in the preview.

  10. The Following 2 Users Say Thank You to valora For This Useful Post:

    Ice (11-12-2020),Zapdos (11-13-2020)

  11. #26
    Worlds's Avatar
    Joined
    Nov 2019
    Posts
    75
    Userbars
    9
    Thanks
    592
    Thanked
    552/64
    DL/UL
    4/0
    Mentioned
    11 times
    Time Online
    18d 6h 12m
    Avg. Time Online
    16m
    Quote Originally Posted by Old but gold View Post
    This is a great idea!

    And maybe this is a bit off topic but... i remember ~xaia had some code to change the order of your pets in the userlookup, but i can't seem to find it anymore.
    Does anyone have it? :x
    Oh oh I know this!

    So /~Xaia used to have a link to a coding troubleshooting guide, but the owner removed the link for some reason. The guide is still up though, at /~Ziys.

    This is how to make one particular pet appear first or last (all credits to Mexxy of Whitespace!). You can't control the exact order of your pet with this code, but if you just want a particular pet to be the first pet on your lookup, it works pretty well.



    Quoting from /~Ziys:

    Change the order of your pets!

    If you're picky like me and want one pet to always be first or last, add the following code before your closing /style tag.

    Code:
    #bxlist {
    margin-left: -170px;
    
    (Adjust the number depending on your layout.)
    
    }
    Also from /~Ziys, here's how to display 6+ pets at once. Spoilering so my post doesn't get too long;



    ---------- Post added at 10:21 AM ---------- Previous post was at 09:48 AM ----------

    To add, here are some of my favorite resources:

    Premades

    • /~Tines (Silent Serenity) - Surprised this hasn't been mentioned yet; it's pretty much the go-to for everyone and their mom (tons of options for lookups, petpages, galleries etc.).

    • /~Niwi (Floral) - I think these are the prettiest premades on Neopets, shame the owner's on indefinite hiatus but the codes still work (for now).

    • /~Coltonn (Coast) - Super clean and minimalist CSS; sister site of /~Xaia I think?

    • /~Fiziwhig (Jinx) - Pretty cute and clean pages, but can look a bit tiny on big screens (*insert Ken Jeong squinting gif*).


    Resources

    • /~Instinctus (Aurum Resources) - High quality PNGs, images etc. I'm still heartbroken that Aurum / Aroma got closed down due to code theft.

    • /~Ventria (Mariposa) - Lots of high-quality Neopets / non-Neopets backgrounds.

    • /~maillouh (Details) - High-quality Neopets renders (some broken images), also lots of abstract / patterned backgrounds.

    • /~Teamug (Page Decor) - More high-quality PNG renders, mostly floats / sides / backgrounds.

    • /~Aboa (Confectionery) - Cute pixel adoptables.

    • /~essentsia - Neopets adoptables!

  12. The Following 4 Users Say Thank You to Worlds For This Useful Post:

    Ice (11-13-2020),Old but gold (11-13-2020),valora (11-14-2020),Zapdos (11-13-2020)

  13. #27
    Old but gold's Avatar
    Joined
    Feb 2019
    Posts
    167
    Userbars
    7
    Thanks
    561
    Thanked
    397/98
    DL/UL
    9/0
    Mentioned
    4 times
    Time Online
    32d 16h 45m
    Avg. Time Online
    24m
    Thank you so much! ♥

  14. #28
    Gyaoo!
    Zapdos's Avatar
    Joined
    Aug 2020
    Posts
    769
    Pronouns
    【she ⚡ her】
    Userbars
    68
    Thanks
    3,475
    Thanked
    3,295/802
    DL/UL
    15/0
    Mentioned
    335 times
    Time Online
    52d 15h 53m
    Avg. Time Online
    56m
    Quote Originally Posted by Worlds View Post
    Oh oh I know this!

    So /~Xaia used to have a link to a coding troubleshooting guide, but the owner removed the link for some reason. The guide is still up though, at /~Ziys.



    ---------- Post added at 10:21 AM ---------- Previous post was at 09:48 AM ----------

    To add, here are some of my favorite resources:

    Premades

    • /~Tines (Silent Serenity) - Surprised this hasn't been mentioned yet; it's pretty much the go-to for everyone and their mom (tons of options for lookups, petpages, galleries etc.).

    • /~Niwi (Floral) - I think these are the prettiest premades on Neopets, shame the owner's on indefinite hiatus but the codes still work (for now).

    • /~Coltonn (Coast) - Super clean and minimalist CSS; sister site of /~Xaia I think?

    • /~Fiziwhig (Jinx) - Pretty cute and clean pages, but can look a bit tiny on big screens (*insert Ken Jeong squinting gif*).


    Resources

    • /~Instinctus (Aurum Resources) - High quality PNGs, images etc. I'm still heartbroken that Aurum / Aroma got closed down due to code theft.

    • /~Ventria (Mariposa) - Lots of high-quality Neopets / non-Neopets backgrounds.

    • /~maillouh (Details) - High-quality Neopets renders (some broken images), also lots of abstract / patterned backgrounds.

    • /~Teamug (Page Decor) - More high-quality PNG renders, mostly floats / sides / backgrounds.

    • /~Aboa (Confectionery) - Cute pixel adoptables.

    • /~essentsia - Neopets adoptables!
    Thank you for this fantastic contribution! Added to the main post Looking nice and chonky now

    Re: adoptables, I might leave adoptable resources off for now as they are a bit tangenty, however I would love it if we had an adoptable directory thread *hint hint nudge nudge*

    UPDATE 14/11/20


    (you need an account to see links)


    (you need an account to see links)


    Thank you Zenitsu and Greyfaerie for my siggy UBs respectively!
    Thank you Hollow for the vector art!


  15. The Following 3 Users Say Thank You to Zapdos For This Useful Post:

    Ice (11-13-2020),valora (11-14-2020),Worlds (11-13-2020)

  16. #29
    Rylai's Avatar
    Joined
    Feb 2020
    Posts
    124
    Userbars
    9
    Thanks
    256
    Thanked
    384/96
    DL/UL
    8/0
    Mentioned
    24 times
    Time Online
    12d 21h 56m
    Avg. Time Online
    12m
    Hi! I'm a total noob at coding but I think I can contribute by linking to some resources for premades that still work, other than the ones already mentioned! For each of the premades I linked below, I have checked the codes at random to make sure that they still work.

    ~Suhffer - Not updated anymore but the code for userlookups still works. Linked credit for personal use is not required.

    ~kyta - "Ahaha how are u so small" might be a pretty useful resource for those who want to keep their bio/stats/trophies separate. Out of the 3 UL premades on her page, think it's the only one that's compatible with 4, 5, 6, & 7 pets.

    ~CSS - Pretty average user lookups. Some have hidden trophies until you mouseover, if you're into that.

    ~odinorth - Variety of different user lookups, mix of anchored and scrolling. Some of them allow you to keep your bio/stats/trophies/pets separate. Last updated in 2019.
    Last edited by Rylai; 11-13-2020 at 11:36 PM. Reason: Fixed error in one of the links

  17. The Following 2 Users Say Thank You to Rylai For This Useful Post:

    valora (11-14-2020),Zapdos (11-14-2020)

  18. #30
    Gyaoo!
    Zapdos's Avatar
    Joined
    Aug 2020
    Posts
    769
    Pronouns
    【she ⚡ her】
    Userbars
    68
    Thanks
    3,475
    Thanked
    3,295/802
    DL/UL
    15/0
    Mentioned
    335 times
    Time Online
    52d 15h 53m
    Avg. Time Online
    56m
    Quote Originally Posted by Shawn0101 View Post
    Hi! I'm a total noob at coding but I think I can contribute by linking to some resources for premades that still work, other than the ones already mentioned! For each of the premades I linked below, I have checked the codes at random to make sure that they still work.

    ~Suhffer - Not updated anymore but the code for userlookups still works. Linked credit for personal use is not required.

    ~kyta - "Ahaha how are u so small" might be a pretty useful resource for those who want to keep their bio/stats/trophies separate. Out of the 3 UL premades on her page, think it's the only one that's compatible with 4, 5, 6, & 7 pets.

    ~CSS - Pretty average user lookups. Some have hidden trophies until you mouseover, if you're into that.

    ~odinorth - Variety of different user lookups, mix of anchored and scrolling. Some of them allow you to keep your bio/stats/trophies/pets separate. Last updated in 2019.
    Thank you! Added the updated ones to the main page

    17/11/20 - Small Update


    (you need an account to see links)


    (you need an account to see links)


    Thank you Zenitsu and Greyfaerie for my siggy UBs respectively!
    Thank you Hollow for the vector art!


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •