October 10, 200916 yr I can't figure out how to code/make speech bubbles for my website. Can anyone help me?I'm trying to have "tips" where the little cartoon tells the reader a tip. 8,180WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME#1 Wongtong stalker.Im looking for some No Limit soldiers!
October 10, 200916 yr So I'm guessing the current one shown there is just shopped in or something? Well, there is a way of making a triangle with CSS so that no images would be involved, and fancy ways of making rounded corners... But in this case I think it's unnecessary. Just make a div, give it a CSS background property, and put text in it. Something like this: <!-- Assume you have the html declaration and head as well as the content above your bubble up here --> <div class="bubble"><p>Wongtong has a lot of sciencey things to say right here.</p></div> <!-- Content below goes here --> And then some CSS: .bubble { background: transparent url('speechbubble.png') no-repeat scroll 0 0; width: /*Width of your image in pixels*/ ; height: /*Height of your image in pixels*/ ; } .bubble p { padding: /*Enough padding to give the text some breathing room*/ ; }
October 10, 200916 yr Author Oh okay, I'll give that a go. And yes I shopped it in. So would I just the image right before the <div class="bubble">? e.g <img src="cuteimage.gif"><div class=bubble><p>text text</p></div> 8,180WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME#1 Wongtong stalker.Im looking for some No Limit soldiers!
October 10, 200916 yr Author Naw the image doesn't show up. :( 8,180WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME#1 Wongtong stalker.Im looking for some No Limit soldiers!
October 10, 200916 yr You need to have the image saved as speechbubble.png in the same directory as your CSS file.
October 13, 200916 yr http://www.bosrup.com/web/overlib/ :thumbup: Never trust anyone. You are always alone, and betrayal is inevitable.Nothing is safe from the jaws of the decompiler.
October 13, 200916 yr http://www.bosrup.com/web/overlib/ :thumbup: Never trust anyone. You are always alone, and betrayal is inevitable.Nothing is safe from the jaws of the decompiler.
Create an account or sign in to comment