• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!