Help > Layout & Coding Help > Post Reply     

Riley's Quick Guide to HP's Coding

Player Avatar
β˜… RileyCasper β˜… Courtesy of The Red, White, and Blue β˜…
August 30th, 2015 5:15:20am
39 Posts

This will not teach you how to make layouts.


I feel like this should be stated first and for most. This will not teach you to make layouts. This is mostly for those who are already skilled with making layouts and what not, and if your just learning but know the basics. The following basically is a break down of all the codes that HP has. The Player Info, Achievements, Dividers. The basics really that many question about when making layouts.


I have included absolutely no styles. That's for you to make, this is just the skeleton if you would say.


/ * NAVIGATION */
#menu {background:none!important;border:0px;}
#nav {} /* Whole Nav container */
#nav li {} /* Clickable section of each link */
#nav li:hover ul {} /* Clickable section of each link: Hover */
#nav ul {} /* Clickable section of each Sub link */
#nav a {} /* The Link itself */
#nav a:hover {} /* The Link itself: Hover*/
.selected ul {} /* Clickable section of each Sub link */
#nav ul a {} /* The SubLink itself */
#nav li:hover ul a {} /* The SubLink itself: Hover */

/* FOOTER */
#footer {} /*Footer Container*/
#footer a {} /*Footer Links*/

Β /* DIVIDERS */
[id^="divider"] tbody th:nth-child(1){Sale Column Header}
[id^="divider"] tbody th:nth-child(2){Name Column Header}
[id^="divider"] tbody th:nth-child(3){Breed/Brand Column Header}
[id^="divider"] tbody th:nth-child(4){Gender Column Header}
[id^="divider"] tbody th:nth-child(5){Feed Column Header}
[id^="divider"] tbody th:nth-child(6){Points Column Header}
[id^="divider"] tbody td:nth-child(1){Sale Column}
[id^="divider"] tbody td:nth-child(2){Name Column}
[id^="divider"] tbody td:nth-child(3){Breed/Brand Column}
[id^="divider"] tbody td:nth-child(4){Gender Column }
[id^="divider"] tbody td:nth-child(5){Feed Column}
[id^="divider"] tbody td:nth-child(6){Points Column }

/* HORSE DIVIDER */
#noDividerH tbody th:nth-child(1){Sale Column Header}
#noDividerH tbody th:nth-child(2){Name Column Header}
#noDividerH tbody th:nth-child(3){Breed/Brand Column Header}
#noDividerH tbody th:nth-child(4){Gender Column Header}
#noDividerH tbody th:nth-child(5){Feed Column Header}
#noDividerH tbody th:nth-child(6){Points Column Header}
#noDividerH tbody td:nth-child(1){Sale Column}
#noDividerH tbody td:nth-child(2){Name Column}
#noDividerH tbody td:nth-child(3){Breed/Brand Column}
#noDividerH tbody td:nth-child(4){Gender Column }
#noDividerH tbody td:nth-child(5){Feed Column}
#noDividerH tbody td:nth-child(6){Points Column }

/* DOG DIVIDER */
#noDividerD tbody th:nth-child(1){Sale Column Header}
#noDividerD tbody th:nth-child(2){Name Column Header}
#noDividerD tbody th:nth-child(3){Breed/Brand Column Header}
#noDividerD tbody th:nth-child(4){Gender Column Header}
#noDividerD tbody th:nth-child(5){Feed Column Header}
#noDividerD tbody th:nth-child(6){Points Column Header}
#noDividerD tbody td:nth-child(1){Sale Column}
#noDividerD tbody td:nth-child(2){Name Column}
#noDividerD tbody td:nth-child(3){Breed/Brand Column}
#noDividerD tbody td:nth-child(4){Gender Column }
#noDividerD tbody td:nth-child(5){Feed Column}
#noDividerD tbody td:nth-child(6){Points Column}

/* SHOW DIVIDER */
#shows {Show text Css}

/* EVENT DIVIDER */
#event {Event text Css}

/* SHOW EVENT DIVIDER */
#show_events {Show Event text Css}

/* ACHIEVMENTS DIVIDER */
img[src^="images/achievements/"]{Image CSS}
#achievements {Achievement text Css}

/* PLAYER INFO */
.playerinfo b {} /*edits name*/
.playerinfo a {} /* edits Send Message Send Buddy Request BLOCK Player! Report */
.playerinfo a:hover {} /*Hover of the above Links */
.playerinfo {} /* Player Info Container */

/* PLAYER POINT BOX, MONEY BOX, AND DIVIDERS BOX */
.box th, .box2 th {} /* Edits the Headers */
.box {} /*edits where dividers are*/
.box2 table {} /*edits money, player point boxes*/
.box th a {} /* Links for in these boxes */




 


View Comments 1


Player Avatar
𝔖𝔱𝔬𝔯π”ͺ ℭ𝔯𝔬𝔴 πŸ’€ The Artist Formerly Known as xxCHAOTIC
August 30th, 2015 3:44:14pm
1,854 Posts

(and to see all these in use, you can look at my free layouts. Most of them have all of this information embedded towards the end of the layout.)




q0w22ub.gif
Link Tree

 

Player Avatar
𝔫𝔢𝔱π”ͺπ”žπ”―π”’ πŸ‚ trunk hit hard like kimbo slice
August 30th, 2015 8:47:43pm
1,026 Posts

This is really useful Riley! Thank you!Β 




giphy.gif giphy.gif


"That's Jaime fookin Lannister"

 

Player Avatar
Zadkiel Β»
August 30th, 2015 9:31:30pm
1,333 Posts

Very usrefill!! Thank you!




 

Default Avatar
Khaleesi// OG 18091
August 31st, 2015 3:13:10pm
712 Posts

LOVE THIS! Thank you! It makes it helpful so that I don't have to pull apart someone else's coding to see what it is. And thanks for the suggestion Chao!




 

Player Avatar
tronic ϟ love me back to life β™₯
August 31st, 2015 4:00:14pm
4,524 Posts

Thanks Riley!




 

Player Avatar
owlish olive ϟ HIATUS SIIB #6784 WATCHING
November 9th, 2015 12:53:01am
68 Posts

Thank you so much! I needed exactly this!




 

Player Avatar
LUMOS. πŸŒ™ basic spare 1
January 27th, 2016 5:21:42am
915 Posts

This is awesome! Thanks Riley! :)




 

Default Avatar
BANNED
January 27th, 2016 9:11:04am
87 Posts

very awesome of you to do this riley. ill be linking this post to HP Helper -must hoard all and anything useful-




 

Player Avatar
Dunn *In Over My Head*
May 17th, 2016 11:51:34pm
465 Posts

Thank you!!! :)

Β 




 

View Comments 1