Solved

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

Posted on 2012-03-16
4
187 Views
Last Modified: 2012-06-22
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
Comment
Question by:willsherwood
  • 2
4 Comments
 
LVL 14

Expert Comment

by:athomsfere
ID: 37731053
Do you have a closing } in the CSS?
0
 

Author Comment

by:willsherwood
ID: 37731104
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
 
LVL 22

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 37731153
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
 

Author Closing Comment

by:willsherwood
ID: 37731197
YAY that was it.  thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JQuery & CSS Tab Issues 7 45
How to add loader animation to a page ? 2 40
jQuery scrollTop 2 40
Add css and js to MVC Project not in project 9 27
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now