user780483
user780483

Reputation: 3063

clickable dropdown invisible DIV

I am trying to make a clickable dropdown menu similar to the one on google where you click your username and a menu appears and you can log out. I built this menu using a hidden div and then made it visible via onClick and javascript to change the CSS. However if you highlight the entire page, the invisible div is shown and I dont like the way that looks. Google's doesnt show. Is there another way to get the same effect without using a hidden div? thanks

EDIT: when i said "highlight," i meant if you crtl+a

Upvotes: 0

Views: 849

Answers (2)

RobertO
RobertO

Reputation: 2663

An example: http://jsfiddle.net/TMS88/

Upvotes: 1

Richard
Richard

Reputation: 167

Use display:none; instead of whatever you're using.

<div class="test"></div>

.test {
display:none;
}

Upvotes: 2

Related Questions