Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using stylesheet in struts2

 
Bhardwaj Shweta
Ranch Hand
Posts: 36
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I am using stylesheet in jsp page(struts2) but images as well as desired effects are not getting reflected.I have addedd all the libraries.please help.


//home.jsp



//css file
#logo:{margin-top:20%;}

#footer:{margin-top:60%;}
 
Bhardwaj Shweta
Ranch Hand
Posts: 36
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
correction in line 19:
<s:div id="logo"></s:div>

 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably because you CSS file cannot be found.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic