- Create Account

Right align?

Forums > SuperNote > Right align?
Author
Message

1) David Arnold Group: Guests
IP: 75.50.--.--
I've found supernote pretty easy to set up and easy to make look pretty :)

What  I am trying to do is when it is moused over to have it appear right aligned under the mouse. Does that make sense? I can't find anything in the css that is affecting it. I thought it would be based off the margins in .snp-mouseoffset (which is being called in the html.)

Any ideas?

thanks!
-David

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
You can add in the CSS for the note:

margin-left: -100px;

or similar, that will do if you notes are a fixed width.

Alternatively, copy and paste the mouseoffset position function, rename to mouseRightOffset or similar, put some code in there to right align based on the width of the DIV, then give a "snp-mouseRightOffset" class to your notes.

- Angus.

3) David Arnold Group: Guests
IP: 75.50.--.--
I am sorry to waste your time but thankful for your response! I tried a lot of things and have no idea how I missed using a negative number.

Thanks a ton for the help! (are you by chance a fan of Flight of the Conchords)?

They are definitely some of the funniest people i've ever seen :)

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
I am indeed, they're one of our better exports ;).

-  Angus.

5) David Arnold Group: Guests
IP: 75.50.--.--
I just was curious to hear from a New Zealander perspective, or whether you just thought they were a bunch of douches :)

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.