Yes, and jQuery's show() and hide() methods use the 'display' property.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer
____________
http://cutterscrossing.com


Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

"The best way to predict the future is to help create it"

On 1/2/2013 2:25 PM, Larry Lyons wrote:
> John,
>
> display:none means that the the tag in question will not appear on the page 
> at all (although you can still interact with it through the dom). There will 
> be no space allocated for it between the other tags.
>
> Visibility:hidden means that unlike display:none, the tag is not visible, but 
> space is allocated for it on the page.
>
> So given your solution, the following may work better:
>
> .mymenuclass {
>       display:none;
> }
>
>
>> This seems to work but looks clunky to me. Better solution(s)?
>>
>> .mymenuclass {
>> visibility: hidden;
>> }
>>
>> <head>
>>     <script>
>> $(document).ready(function () {
>> $( "#mymenu" ).hide();
>> $( "#mymenu" ).css("visibility", "visible");
>> });
>>     </script>
>> </head>
>>
>>
>>
>>
>>
>>
>> -- 
>> John Bliss - http://about.me/jbliss
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353729
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to