Online Consultant

Styling
Custom CSS coding help - get help on custom css (styling) coding here
Subscribe to new posts
Post Icon
CSS Tricks - How to create triangles with just css

You can cut down on your webpage load times by using coding instead of images when possible.  Also, it’s a lot more convenient to edit/manage with just css.  One of the times you can do this, is for shapes, including triangles/arrows!  We are actually using just css coding to create the beige triangle/down arrow towards the middle of the UltimateWB homepage

Here’s the coding to create blue triangles/arrow pointing in 4 different directions:

Triangle pointing up / Up arrow:

Code: Please login/register for access

 

Triangle pointing down / Down arrow:

Code: Please login/register for access

 

Triangle pointing right / Right arrow:

Code: Please login/register for access

 

Triangle pointing left / Left arrow:

Code: Please login/register for access

 

In these examples, the sizing is defined with "px", here it is 20px.

 

You can also rotate these triangles/arrows using coding. just add this to your css coding for the class or id:

Code: Please login/register for access

 

The degree rotation is defined here by "20deg" - just change those instances to the number of degrees of rotation you want.

Official UWB Support Team! Contact us directly here!

Similar Topics
 
Topic / Topic Starter
Rating
Last Post
Replies
Views
Forum
Post Icon
-
Post Icon
Re: How to add profile picts to user profiles, create members page, and customize user profiles
8 years ago
1
62125
Post Icon
-
Post Icon
How to customize the login & register buttons in UltimateWB Full upgrade 7.52
3 years ago
0
66822
Post Icon
-
Post Icon
Re: Add features to current website, profile page, social networking, etc.
9 years ago
1
70752
Post Icon
-
Post Icon
Editing Content and having a backup version just in case
10 years ago
0
69876
Post Icon
-
Post Icon
UltimateWB Full upgrade 7.61: Forms Builder app and Members app
3 years ago
0
49737
Report forum post by:
Report a concern
Comments: