Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

CSS Library: DIVs and containers: Here

Arrow Comment Box

Author: Dynamic Drive

Using a simple "arrow" image, this CSS code transforms a regular DIV into a fancy box with sub text appearing beneath it. It's a nice interface to use for your blog's comment boxes, for example.

This is some comment.
This is some comment.
This is some comment.
Posted by Dynamic Drive on 05/10, 03:39 AM

The arrow image is being used as a background image, meaning you can in fact easily control how much of it is shown just by altering the background image's horizontal and vertical positions:

This is some comment.
This is some comment.
This is some comment.
Posted by Dynamic Drive on 05/10, 03:39 AM

The single image used:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 05/10/2006

Revision History: None

Usage Terms: Click here

Your Comments (64)

Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.

Comment Pages 4 of 7 pages « First  <  2 3 4 5 6 >  Last »

Very nice ! Thnk...
Posted by Russie on 01/01, 08:39 AM
this is mad cool, thank for the tip
Posted by john99 on 02/04, 10:16 AM
Hi, I want this 'Comment box' with arrow placed at the right side of the page... is this possible?
Because the box cán be placed right but then the image doesn't connect with the box... can somebody maybe help me please!
Posted by matt on 03/05, 03:41 PM
i've been looking all over for something like this! Great work!
Posted by Brian on 03/18, 02:10 PM
Sweet! This code is cool.
Posted by Tatiana on 03/19, 07:49 PM
Hey,
This shall work..
But CSS is used for comments but you fogot to post the php part of the comment(include sql)...
Posted by Nile55 on 03/20, 08:40 PM
Billy,
Did you download the file?
After that, if you have a site go to smartftp and do the following(same with no site)
Download the image http://www.dynamicdrive.com/cssexamples/media/arrow.gif ,
now put the following code:

<style language="css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.commentbox{
background-color: #ececec;
width: 450px;
padding: 10px;
}

.commentfooter{
background: url(media/arrow.gif) 20px 0 no-repeat; /*20px 0 equals horizontal and vertical position of arrow. Adjust as desired (ie: 20px -5px).*/
padding-left: 58px;
padding-top: 1px;
margin-bottom: 2em;
font-size: 90%;
color: #4A4A4A;
}

</style>

Then you need to add the class to a div...


<div class="commentbox">
This is some comment.
This is some comment.
This is some comment.
</div>
<div class="commentfooter">Posted by Dynamic Drive on 05/10, 03:39 AM</div>

There you go..
Who ever wants me to help make it a real guestbook
email me at nile55@nile55.phpnet.us
so i can help...
@Admin
If you unband Yoshi555(me)
im alot better at codes now and i know php, css, js, vbe, and html mostly..
PS: NO DUMB CODES I PROMISE!
Posted by Nile55 on 03/20, 09:00 PM
srry my real email is nile@nile55.phpnet.us
Posted by Nile55 on 03/20, 10:42 PM
Very nice, thank you for taking the time to put this post out here.
Posted by Reverend_Rob on 03/23, 01:57 AM
how do u integrate with blogger comments? i dont understnad how to do it. pls help, than kyou.
Posted by poetry on 04/11, 07:07 AM

Comment Pages 4 of 7 pages « First  <  2 3 4 5 6 >  Last »

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library