| | |
Adding css to JSP
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Exactly as to any other HTML based document, either use internal or external approach.
Last edited by peter_budo; Jul 17th, 2008 at 7:26 am. Reason: typo
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Incorrect order of tag elements, it should be as
also make sure their are in correct directory (in your case together with JSP document)
HTML Syntax (Toggle Plain Text)
<head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Jul 2008
Posts: 16
Reputation:
Solved Threads: 0
yes, I have rechecked. . Both files are in same directory.
here is css file
here is css file
css Syntax (Toggle Plain Text)
root { display: block; font-size: 14px; font-style: italic; font-weight: normal; font-variant: normal; color: navy; background-color: #ccffcc; background-attachment: none; font-family: Georgia,'Times New Roman',times,serif; }
Last edited by peter_budo; Jul 17th, 2008 at 8:32 am. Reason: Keep It Organized - please use [code] tags
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Jul 2008
Posts: 16
Reputation:
Solved Threads: 0
JSP Syntax (Toggle Plain Text)
<html> <head> <LINK href="style1.css" rel="stylesheet" type="text/css"> <title>JSP Page</title> </head> <body> <form> <h2>Hello World!</h2> </form> </body> </html>
Last edited by peter_budo; Jul 17th, 2008 at 8:42 am. Reason: Keep It Organized - please use [code] tags
Just did little bit of search on internet and seems to me there is more trouble with use of the root then you want to go through. Just replace it with
html or html,body Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Jul 2008
Posts: 16
Reputation:
Solved Threads: 0
Hi Peter.. This problem is solved as I made following changes in jsp
..
Thanks a lot for ur help.
..
JSP Syntax (Toggle Plain Text)
<form> <root> Welcome... To this style1. </root></form>
Last edited by Tekmaven; Jul 18th, 2008 at 6:42 am. Reason: Code tags
![]() |
Similar Threads
- Firefox Compatibility help with script (JavaScript / DHTML / AJAX)
Other Threads in the JSP Forum
- Previous Thread: Login Page Password passing without showing in url
- Next Thread: Glassfish or Tomcat?
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web






