Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
 
subject: using stylesheet in struts2
 
Similar Threads
[Jqueryplugin] [struts2] rendering grid
Templates in struts 2
Struts2 Validation - Number?
calling new jsp from tiles:insert attribute
Help with tabbed Panel