CSS Positioning

Dear Experts

Can anybody help me to position the loading of a graphic to be positioned to the left of the onmouseover text that loads the graphic.

By way of example, please see the following link:

http://dev.bspc.co.uk/propertydetails.asp?pRef=17475&pPostCode=TD1 1RQ#

If you hover the mouse over the 'EPC Graph' link you will notice that it loads a graphic.  I would like to somehow be able to load the graphic to display to the left of the 'EPC Graph' link instead of the right.

The current CSS Style used for this is as follows:

 <style>  
 #screenshot{
      position:absolute;
      border:1px solid #ccc;
      background:#333;
      padding:5px;
      display:none;
      color:#fff;
      float:left;

      }

/*  */
</style>


Is there something I can add to the style to have the graphic load to the left.

Many thanks for any help

Grant
grantballantyneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QuinnDexCommented:
i am not seeing that link, i am getting this error


ADODB.Field error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/propertydetails.asp, line 1046
0
grantballantyneAuthor Commented:
0
QuinnDexCommented:
that css style isnt being used, whats the file name that contains that style
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

GaryCommented:
In the main.js adjust

xOffset = 10;
yOffset = 20;

What you will need to do is give them a large negative e.g. -300
Just keep tweaking it until you get it positioned where you want.
0
grantballantyneAuthor Commented:
The Code for the EPC Link is:

 <% if(propertydetails.Fields.Item("eercurrent").Value) <> 0 then %>
 <span class="marketing"><img src="img/icons/epcgraph.jpg" alt="EPC Graph"> <a href="#" class="screenshot" rel="http://epcgraph.uksv.net/EPCGRAPH?eec=<%=(propertydetails.Fields.Item("eercurrent").Value)%>&eep=<%=(propertydetails.Fields.Item("eerpotential").Value)%>&eic=<%=(propertydetails.Fields.Item("eircurrent").Value)%>&eip=<%=(propertydetails.Fields.Item("eirpotential").Value)%>&size=FULL&format=PNG&type=sc_epc" width="970" height="420" scrolling="no"   title="EPC Graph"> EPC Graph &raquo;</a></span>
 <% End If %>


Doesn't the class="screenshot" mean that this style is being used?
0
GaryCommented:
Also http://qtip2.com/
Would handle this for you in its options.
See my comment above, it is nothing to do with your stylesheets

edit
It's only the x value you need to change.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
QuinnDexCommented:
that style isnt being used because its an active link your active style takes over, but as GaryC123 has said above, you can reposition your mouse over image through your js file, change the value of x for left right movment y for up down movement
0
grantballantyneAuthor Commented:
Thanks Gary

main.js values adjusted and now works as hoped.  Many thanks
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Try updating your css for #screenshot and add margin left negative like below.  Play with the number that you think is best.

 #screenshot{
	position:absolute;
	border:1px solid #ccc;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	float:left;
    margin-left:-50px;
	

	
	}

Open in new window

0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
yes, good choice on qtip!
0
QuinnDexCommented:
You need to raise the position of the image, so it appears above the link, at the moment its appearing over the link so it becomes between the cursor and the link, this makes it flash in and out in firefox
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.