Javascript Tooltip / Posts /

callout triangle placement

23
Hi, is it possible to move the little triangle on the border to the left or right?
So it will look more like a cartoon comment? 
Like this one: http://ericczar.homestead.com/comment.png

denny  10 years ago   viewed: 10339    

10 Answers

3
No it is not possible. It's regretful.
milo   10 years ago
0
From the maker:
In the tooltip.css, you will find:
div#mcttCo {position:absolute;text-align:left;}
Would you try updating it as:
div#mcttCo {position:absolute;text-align:left; margin-left:40px;}

works, but without activation it jumps back everytime. 

denny   10 years ago
0
actually it worked, but the arrow jumps everytime the mouse is shifted.
I just let the arrow away.
Regretful indeed.
denny   10 years ago
0

if you are working with a digital image or graphic, you may be able to create a custom speech bubble with the triangle positioned on the left or right side. Many graphic design software programs, such as Adobe Illustrator or Photoshop, offer tools and templates for creating speech bubbles and other graphic elements. french drain installation

Jelly
  5 months ago
0

It is possible to move the little triangle on the border of a speech bubble to the left or right by adjusting the CSS properties of the speech bubble element. You can use the CSS "border" property to create the speech bubble and adjust the "border-width" and "border-color" properties to style the border. To move the triangle to the left or right, you can adjust the "border-width" and "border-style" properties on the relevant side.

photo booth rental Houston

Here is an example CSS code that should create a speech bubble with a triangle on the left side:

css
.speech-bubble { position: relative; width: 200px; padding: 10px; border: 2px solid #ddd; border-radius: 10px; margin: 10px; background-color: #fff; } .speech-bubble:before { content: ""; position: absolute; border-width: 10px 15px 10px 0; border-style: solid; border-color: transparent #ddd transparent transparent; top: 50%; left: -15px; transform: translate(-50%, -50%); }

In this example, the :before pseudo-element creates the triangle on the left side of the speech bubble by setting the border-width and border-style properties. You can adjust these values to move the triangle to the right side or to make it larger or smaller.

Keep in mind that this is just one example of how to create a speech bubble with a triangle using CSS, and there are many other ways to achieve a similar effect.

Karie
  5 months ago
0

Alternatively, you can search for pre-made speech bubble templates or icons that already have the triangle on the left or right, which can save you time and effort. There are many resources online where you can find free or paid speech bubble templates and icons.

pool contractor Austin

Eryn
  5 months ago
0

It is possible to move the little triangle on the border of a speech bubble or comment box using CSS (Cascading Style Sheets).

Here's an example CSS code that can be used to create a speech bubble similar to the one in the image you provided, with the triangle on the left side:

css
.bubble { position: relative; background-color: #fff; border: 2px solid #ddd; border-radius: 10px; padding: 10px; margin: 10px 0; } .bubble:after { content: ""; position: absolute; top: 50%; left: -10px; margin-top: -10px; border-style: solid; border-width: 10px 10px 10px 0; border-color: transparent #ddd transparent transparent; }

To move the triangle to the right side, you can change the left property of the .bubble:after pseudo-element to auto and the right property to a negative value:

css
.bubble:after { content: ""; position: absolute; top: 50%; right: -10px; margin-top: -10px; border-style: solid; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent #ddd; }

You can adjust the size, color, and other properties of the speech bubble as needed to match your desired design.

bathroom remodeling

John
  5 months ago
0

The little triangle you are referring to is commonly known as a "speech bubble pointer" and is often used in cartoon comments to indicate the speaker.

Whether or not it's possible to move the speech bubble pointer to the left or right of a comment box depends on the specific software or tool you are using to create the comment box. In general, most graphic design software, such as Adobe Illustrator or Photoshop, will allow you to create custom speech bubbles with pointers that can be positioned wherever you like.

If you are using a website or app that offers pre-made comment box templates, you may need to check if they offer customization options for the speech bubble pointer placement. Some templates may not offer this option, but others may allow you to adjust the position of the pointer by adjusting the alignment or anchor point.

In short, whether you can move the speech bubble pointer to the left or right of a comment box depends on the specific tool you are using, so you may need to explore the customization options available to you.

limo service for corporate

Kaila
  5 months ago
0

If you'd rather not draw the triangle yourself, you may always look for pre-made speech bubble templates or symbols online. Numerous websites offer both free and commercial speech bubble layouts and symbols.  geometry dash

 

ryneu   3 months ago
0

Ensure the callout triangles direct the viewer's gaze in a logical flow, leading from one element to the next. This creates a natural reading order and guides the viewer through the information.

connections

gemmalyly
  2 months ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: