Javascript Tooltip / Posts /

callout triangle placement

24
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  11 years ago   viewed: 11250    

8 Answers

2
No it is not possible. It's regretful.
milo   11 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   11 years ago
0
actually it worked, but the arrow jumps everytime the mouse is shifted.
I just let the arrow away.
Regretful indeed.
denny   11 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
  one year 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
  one year 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
  one year 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
  one year ago
0

I know some ways to fix your problem at Papa’s freezeria . It contains a lot of useful information for you, I think you should refer to them to solve your trouble.

hikaosa
  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: