This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Style sheet problems

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a JSP related question. There is a tag
<LINK REL=STYLESHEET
HREF="JSP-Styles.css"
TYPE="text/css">
inside a sample JSP file. I know it's not part of JSP, but I need help on what it is. Can anyone help me?
Thanks.
 
vaibhav punekar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Stylesheet is a separate class in which you define the accessories for your Html display such as header ,footer,font type,size,bgColor,etc.This class is placed in the same package where the Jsp is.You then use a tag as specified by you,that will import all these parameters from the ".css" class.So the code for this is separated from the actual business logic and you can concentrate on your logic instead of these trivial things.Code is also easy to understand in such case.
Is it enough?I ve not written any .css file but ve used it .
I think it is enough.
 
ryan headley
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't really prefer to have it lumped together with the term "class" because that makes it sound like programming or even Java terminology itself.
I look at it like a reference file that you place in your HTML so the web browser can then read that file and interpret a normal HTML tag, (or custom one you've "created") to see what attributes to add to it.
Such as you could specify the H1 tag of html to always be of a specific font, and color, etc and put that in your css file. That way if you ever want to change it you only have to modify one file, not a ton of HTML files.
Hope that helps.
Ryan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic