/    Sign up×
Community /Pin to ProfileBookmark

Position rendering

Hello everyone.

I am an html/css/php professional who dabbles a bit in javascript and many other languages. I must say up front however that I absolutely despise javascript. However, it is necessary for the work I do, so I get by.

I have been working for roughly 5 hours trying to find a solution to this. What I do doesnt work, even though I believe it should. Here is my problem:

I have a ‘menu’, based inside of a table. There is one particular td, that when clicked, displays a menu of the users online friends. The friends box is in a div.

The td is name ‘online’ and the friends box is named ‘menufriends’. (with id’s, of course.)

My problem is that I need the friends box to display next to the td. So what when you click the td, it shows up to the right of it instead of below the menu. I have tried all sorts of different methods and cant even get it to change its position.

Can anyone help me right a script that will do this?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscApr 03.2009 — Well a CSS professional should know how to do this - position the div where you want it, then set it to display:none. Then set it to display: block when you click your td. [b][i]Where[/i][/b] the div shows up is a matter of CSS, [b][i]How/If[/i][/b] the div shows up is a matter of JS.

If you want to post the actual relevant code (HTML/CSS/JS) then someone could fix it for you. A link to an actual demo page, I think, would be best, but post whatever you can.
×

Success!

Help @Fariel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...