www.webdeveloper.com
Results 1 to 10 of 10

Thread: formatting entire document

  1. #1
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14

    formatting entire document

    I have a problem with a website I inherited to maintain. It was originally done with FrontPage (ugh!, yeah, I know...) There is formatting everywhere! I am trying to implement an external css. I want EVERYTHING formatted : {font-face: "Bradley Hand ITC"; font-size: "20";}
    I am deleting the local fonts so the text is unformatted, but it does not seem to read the css and apply the formatting. There is nothing wrong with the link. The text is in tables (tr & td). I even tried <span> and <div> locally, outside of the <body> tag, then inside, which didn't work either. It displays "p.BradleyHandFont {font-face: "Bradley Hand ITC"; font-size: "20";}" at the top of the page, resulting from:

    <stlye type="text.css">
    p.BradleyHandFont {font-face: "Bradley Hand ITC"; font-size: "20";}
    </style>

    in the head.
    I am running out of ideas! Anyone got any???? Please Help!!!!
    Thanks!!!!
    ~jt

    p.s. here's the css:

    h {font-face: "Bradley Hand ITC";}
    p {font-face: "Bradley Hand ITC"; font-size: 20;}
    td {font-face: "Bradley Hand ITC"; font-size: 20;}
    tr {font-face: "Bradley Hand ITC"; font-size: 20;}
    table {border-width: 10 10 10 10; border-color: red;}

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,774
    Your numbers need units of measure. What is font-size: 20;? I imagine you want pixels, and IE-Win (in quirks mode) is the only browser that thinks 20 is 20 pixels. Change it to 20px and see if that helps out a bit. Otherwise we're going to need the full HTML and CSS for the page.

  3. #3
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14
    OK, I put td {font-face: "Bradley Hand ITC"; font-size: 20px;}
    in the stylesheet.
    But the big issue is not so much size, as that it will not render the "Bradley Hand ITC" font unless I code it locally.

    Here's a snippet from the page:

    <table>
    <tr>
    <td vAlign="top" height="14" width="238">
    <p>
    Wednesday, August 9th
    </p>
    </td>
    <td><b>
    <font color="red">
    John Doe
    </font></b><BR>
    <p align="center">
    <font face="Bradley Hand ITC" color="#993300"><i>Sponsored By: The Family of Google<BR>
    and <A HREF="http://www.google.com">The Big G

    <IMG BORDER=0 SRC="google.gif" width="140" height="52"></A></i></font>
    </p>
    </td>
    </tr>
    </table>

    Sorry, I know it's a mess, but this is what I've inherited.
    Thanks.

  4. #4
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14

    the basic problem

    Here's the basic deal: I have a web page with mostly text, some small gifs, and some links. Most of the text is individually formatted (all over the place). I want to implement an external style sheet the blankets the entire page to format EVERYTHING with the font "Bradley Hand ITC" size 20. All of the text is inside of these tags: <td>,<p>, <h1>, <h2>
    There must be an easy way to do this! I want to remove all of the formatting on the page, but am having trouble getting the css to format the "Bradley Hand ITC".
    Can anyone help? Please?

  5. #5
    Join Date
    Apr 2003
    Location
    Rosemount, MN
    Posts
    2,287
    it is because you spelt style wrong
    Last edited by The Little Guy; 05-16-2006 at 10:46 AM.

  6. #6
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Switch over to HTML-kit and use its built in version of HTML Tidy to strip all the FP crap out of the pages then apply your styles in a reasonable way.

  7. #7
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14
    Well, that certainly would make a difference, now wouldn't it....
    Thank you!

  8. #8
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14
    Thanks, Ray. I will look into it.

  9. #9
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    It's a lot of trouble but sometimes it's the only way to get away from all those Microsoft boogers. Good luck with it.

  10. #10
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    14

    solution

    Well, to answer my own question, for whatever it's worth, I discovered that the easiest way to reformat the entire document to a single type of font is to put "body {font-family: "Bradley Hand ITC";}" in the stylesheet, then strip out all of the unnecessary local formatting.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles