Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
using stylesheet in struts2
Bhardwaj Shweta
Ranch Hand
Posts: 36
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>PR Tracker Home Page</title> <link rel="stylesheet" type="text/css" href="<s:url value="/stylesheets/home.css"/>"/> </head> <body> <s:div id="header"><%@ include file="/pages/header.jsp" %></s:div> <s:div id="logo"><img ></s:div> <s:div id="footer"><%@ include file="/pages/footer.jsp" %></s:div> </body> </html>
//css file
#logo:{margin-top:20%;}
#footer:{margin-top:60%;}
Regards,
Shweta Bhardwaj
Bhardwaj Shweta
Ranch Hand
Posts: 36
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
correction in line 19:
<s:div id="logo">
</s:div>
Regards,
Shweta Bhardwaj
Rudy Gireyev
Ranch Hand
Posts: 39
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Probably because you CSS file cannot be found.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
calling new jsp from tiles:insert attribute
Help with tabbed Panel
[Jqueryplugin] [struts2] rendering grid
Templates in struts 2
Struts2 Validation - Number?
More...