7 Replies - 4478 Views - Last Post: 12 November 2010 - 03:44 AM

#1 JohnWaters  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 131
  • Joined: 28-November 08

div element with arrow

Posted 05 November 2010 - 04:33 PM

Hi,

I'm trying to show a div element which has an indication arrow pointing to the left.
I'm using CSS, HTML and Javascript(no framework). I cant seem to sort out the CSS correctly.
Note: I don't want to use any images just pure code.

Any help is much appreciated.

STYLE
#gm_messageBox{
  border-color:#3B5998;
  position:absolute;
  z-index:1
  background-color:#EDEFF4;
  border-style:solid;
  border-width:1px;
  padding:5px;
  padding-left: 20px;
}
#gm_contents{
  z-index:2;
  color:#3B5998;
  font-size:13px;
  font-weight:normal;
  font-family:lucida grande,tahoma,verdana,arial,sans-serif;
}
#css-arrow-left {
 border-color:transparent #3B5998 transparent transparent;
 border-style:solid;
 border-width:5px 10px 5px 0;
 float:left; 
 width:100px padding-top: 10px;
}



HTML
<div>
 <div id="css-arrow-left">
  <div id="gm_messageBox">
   <div id="gm_contents"> TESTING </div>
  </div>
 </div>
</div>


This post has been edited by JohnWaters: 05 November 2010 - 04:43 PM


Is This A Good Question/Topic? 0
  • +

Replies To: div element with arrow

#2 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: div element with arrow

Posted 05 November 2010 - 06:36 PM

View PostJohnWaters, on 05 November 2010 - 11:33 PM, said:

I'm trying to show a div element which has an indication arrow pointing to the left.

you mean something like &larr; or &#9664;?

This post has been edited by Dormilich: 05 November 2010 - 06:38 PM

Was This Post Helpful? 1
  • +
  • -

#3 drhowarddrfine  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 275
  • Joined: 28-July 10

Re: div element with arrow

Posted 05 November 2010 - 06:43 PM

Creating such things with CSS can be cute, even fun, but CSS is not a paint language and using it as such is a waste of time and bandwidth.
Was This Post Helpful? -2
  • +
  • -

#4 JohnWaters  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 131
  • Joined: 28-November 08

Re: div element with arrow

Posted 06 November 2010 - 03:51 AM

Hi, Thanks for the advice, but If you could help me out with the described problem I would appreciate it.

@Dormilich: Thanks I'm looking into using this.
Was This Post Helpful? 0
  • +
  • -

#5 drhowarddrfine  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 275
  • Joined: 28-July 10

Re: div element with arrow

Posted 06 November 2010 - 07:45 AM

No, because I don't want to waste my time on a complete waste of time.
Was This Post Helpful? -2
  • +
  • -

#6 JohnWaters  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 131
  • Joined: 28-November 08

Re: div element with arrow

Posted 06 November 2010 - 11:21 AM

DONE. Thanks Dormilich, I used your suggestion as a workaround which now looks pretty good.
Was This Post Helpful? 0
  • +
  • -

#7 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 2936
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: div element with arrow

Posted 06 November 2010 - 03:08 PM

well, the only thing I understood was "arrow" …
Was This Post Helpful? 0
  • +
  • -

#8 Arbitrator  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 37
  • View blog
  • Posts: 525
  • Joined: 26-January 05

Re: div element with arrow

Posted 12 November 2010 - 03:44 AM

If you're looking for more arrow characters, I would look up the Unicode character blocks "Arrows", "Supplemental Arrows-A", "Supplemental Arrows-B", and "Dingbats". There are quite a few arrow characters.

Look into the BabelMap program if you want an easy to way search for them (or any other characters).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1