• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

CSS: embedded vs. linked -- body rule works when inline, but not when in sep. file

http://burstpouch.com/company.php

i was transferring tags to an external/linked CSS defns file.  When defined inline inside the php (html) file, the Verdana font displayed perfectly.
i cut and pasted to the external file, and it does not work.

body,td,th {
      font-family: Verdana, Geneva, sans-serif;


what am i doing wrong??  

thanks!
0
willsherwood
Asked:
willsherwood
  • 2
1 Solution
 
athomsfereCommented:
Do you have a closing } in the CSS?
0
 
willsherwoodAuthor Commented:
not sure i understand the question: here's copied from the file...
/* CSS Document */
<style type="text/css">
body,td,th {
      font-family: Verdana, Geneva, sans-serif;
      font-size: 12px;
}
body {
      margin-left: 0px;
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      background-color: #666;
}
0
 
Kim WalkerWeb Programmer/TechnicianCommented:
You don't need the style tag in an external CSS file. Delete the following line and any closing tag at the end.

<style type="text/css">

Open in new window

0
 
willsherwoodAuthor Commented:
YAY that was it.  thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now