Jump to content

Image


sandy1028

Recommended Posts

Hi,

 

How to create a rectangle with an arrow in CSS as the ballon tooltip image....

I dont want to insert the background-image for tooltip...

Help me in CSS code to create the border as the balloon tooltip as in the attached image

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

Hmm... If you're willing to drop the corners, try using two CSS image in the background, one with the top rounded corners and the spike and one with the bottom two corners. By adding a third repeating background image with the side borders, you'd have what you're looking for, but it would involve a lot of extra code.

Link to comment
Share on other sites

css3 can do the arrow...

 

http://www.css3.info/preview/border-image.html when it gets here....

 

NOW you CAN do it with css2 BUT you will need a whole lot more html....

 

<div class="speechbubble">
<div class="topleft"></div>
<div class="topline"></div>
<div class="topright"></div>
<div class="content">TEXT IN HERE</div>
<div class="bottomleft"></div>
<div class="bottomright"></div>
</div>

 

u may even need another div in between bottom left and bottomright...

 

split your speechbubble image up into its relevant bits and set them to teh background of teh relevant divs...

Link to comment
Share on other sites

Actually, that wouldn't work well with the border he also wants-and here, fixed-width is definitely the way to go, so that you don't need so many extra tags; for example, for something like this, I'd give the header text of the bubble the top curves and pointing image, and then the footer text the bottom curves, to minimize extra CSS.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.