Click here to Skip to main content
11,490,408 members (36,427 online)
Rate this: bad
Please Sign up or sign in to vote.
.section_main_left_square3 {
    height: 77.5%;
    width: 39.5%;
    border-color: #aaa5a5;
    border-width: 1px;
    border-style: solid;
    float: left;
    border-left-color: transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    text-align: center;
    .section_main_left_square3 .section_main_left_divide_top_3 {
        height: 50%;
        width: 100%;

Inside de .section_main_left_square3 i have the graph and i have divide in the two others div´s in verticly.

.section_main_left_divide_top_3 - here is where i put the text but when i put the text he just go down...

Here it is the HTML:

<div class="section_main_left_square">
                   <div class="section_main_left_divide_top_3"><span id="line1_value3" class="label_divide_top"></span></div>
                   <div class="section_main_left_divide_bottom_3"><span id="line1_value4" class="label_bottom"></span></div>
                   <div id="container" class="graph"></div>
Posted 20-Sep-12 1:39am
Edited 24-Sep-12 1:37am
Sergey Alexandrovich Kryukov at 20-Sep-12 12:43pm
Sorry, what does it mean, "put text hover a graph"?
hh_7 at 20-Sep-12 12:44pm
Sorry for my bad english :S weel let me try to explain the graph stays in second plan and the text should be in the first plan but both should be visible...
Sergey Alexandrovich Kryukov at 24-Sep-12 13:15pm
That clarifies things, no problem, and thanks. I think I know what do you need -- please see my answer.
Ashraff Ali Wahab at 20-Sep-12 14:43pm
Post your HTML as well.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would advise to use jQuery JavaScript library for this purpose.

Most likely, you need something like this "input hint box":[^].

Basically, you would need to use the method .hover:
$(document).ready(function() { // add a handler to call the anonymous method when document is ready
  myGraph = $("#myGraph"); // a jQuery wrapper over the element found by the "id delector", by the attribute id="myGraph"
  myGraph.hover( // add the handlers: two anonymous methods are passed as arguments
    function () { // when mouse goes over the graph
      showHint(myGraph, /* ... */);
    function () { // when mouse leaves
      hideHint(myGraph, /* ... */);

The methods showHint and hideHint can be developed separately, based on the "input hint control" shown above, or something similar. You will be able to find a great number of so called jQuery plug-ins to get different ways of presenting of you hint text control with different transition effects, etc.

See also:[^],[^],[^].

If you need to learn jQuery, please start here:[^],[^],[^],[^].

hh_7 at 24-Sep-12 13:31pm
Thanks for the help!
Sergey Alexandrovich Kryukov at 24-Sep-12 13:34pm
My pleasure.
Good luck, call again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 520
1 Andy Lanng 233
2 OriginalGriff 188
3 Sascha Lefèvre 170
4 Maciej Los 160
0 Sergey Alexandrovich Kryukov 9,713
1 OriginalGriff 8,475
2 Sascha Lefèvre 3,504
3 Maciej Los 3,106
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100