Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

<div class="hero<%= Long ? " long" : "" %>">


CSS:

CSS
.hero .heroP .heroPanel .heroBody
{
   /*margin:10px;*/
   margin:10px 10px 0px 10px;
   width:940px;
   height:315px;
   overflow:hidden;
   position:relative;
}
.long .heroP .heroPanel .heroBody { height: 521px; }



Q: What is the meaning of:
<div class="hero<%= Long ? " long" : "" %>">
Posted
Updated 10-Jul-11 19:15pm
v2

if Long is true then it will concat Hero with Long Else "" Hero

[Ternary Operator]
 
Share this answer
 
Comments
Uday P.Singh 11-Jul-11 1:35am    
correct my 5!
Jass22 11-Jul-11 1:44am    
Thank you for reply..
what is meaning of " if LONG is true" I mean to say.. which variable is checking for this long value???
It is a Ternary Operator.If long is True it will concat the Hero with Long otherwise just Hero.

For more infoClickety[^]
 
Share this answer
 
v2
Comments
Uday P.Singh 11-Jul-11 1:35am    
correct my 5!
[no name] 11-Jul-11 3:09am    
Thanks Uday.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900