Activity › Forums › Friendster CSS › Profile Components Positioning With CSS
-
AuthorPosts
-
-
December 5, 2021 at 12:19 am #921
bramzeroParticipantBy default the widgets/boxes on our profiles are displayed in a fixed order, as we can see we have the stash balance on the top right, followed by bio, badges, and so on. What if we wanna show them in a different order, maybe we want the friends box and testimonials box on top?
In order to do that, first we need to find the CSS selector of the column those boxes are in, and then also find each CSS selector of the boxes. How? Just do “view source” or “inspect” from your browser. A CSS selector can be a specific ID, or class, or even a generic HTML element like div or span.
1) The right side column looks like this in the page source:
<div class="friendster-right-sidebar youzify-sidebar-column grid-column youzify-profile-sidebar youzify-right-sidebar"> ...There are many potential CSS selector from that piece of code, let’s just use the friendster-right-sidebar class, and let’s put some CSS properties in it that will enable us to reorder all the boxes in there later, this way:
.friendster-right-sidebar { display:flex; flex-direction:column }2) Now we gotta find all the widgets/boxes in that column, and choose the CSS selectors of all those boxes. From the page source we’ll see more div boxes with classes like friendster-user_balance, friendster-about_me, and so on. This is how we put em in CSS to define the order.
.friendster-user_balance { order:3 } .friendster-about_me { order:4 } .friendster-friends { order:1 } .friendster-groups { order:7 } .friendster-reviews { order:2 } .friendster-wall_media { order:6 } .friendster-user_badges { order:5 } .friendster-social_networks { order:8 }We can change the order number based on our preference of course. The example above will work with many other components of your friendster profile, or even any web page, as long as you use the right CSS selector of the component you’re trying to alter.
Bonus: here’s the list of the CSS selectors of the Profile Overview (Main section).
.friendster-tab { display:flex; flex-direction:column } .friendster-post { order:1 } .friendster-slideshow { order:2 } .friendster-video { order:3 } .friendster-project { order:4 } .friendster-link { order:5 } .friendster-services { order:6 } .friendster-quote { order:7 } .friendster-skills { order:8 } .friendster-portfolio { order:9 }Good luck! 🚀
-
-
AuthorPosts
You must be logged in to reply to this topic.