File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes using stylesheet in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using stylesheet in struts2" Watch "using stylesheet in struts2" New topic
Author

using stylesheet in struts2

Bhardwaj Shweta
Ranch Hand

Joined: Mar 29, 2011
Posts: 36

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%;}


Regards,
Shweta Bhardwaj
Bhardwaj Shweta
Ranch Hand

Joined: Mar 29, 2011
Posts: 36

correction in line 19:
<s:div id="logo"></s:div>

Rudy Gireyev
Ranch Hand

Joined: May 03, 2011
Posts: 39
Probably because you CSS file cannot be found.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using stylesheet in struts2