Results 1 to 10 of 10

Thread: formatting entire document

  1. #1
    Join Date
    Dec 2003

    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";}

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

    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
    Michigan, USA
    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
    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:

    <td vAlign="top" height="14" width="238">
    Wednesday, August 9th
    <font color="red">
    John Doe
    <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>

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

  4. #4
    Join Date
    Dec 2003

    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
    Rosemount, MN
    it is because you spelt style wrong
    Last edited by The Little Guy; 05-16-2006 at 09:46 AM.
    My settings

    Browser :: FireFox 1.5
    Resolution :: 1152x864
    Connection :: Cable Modem 2Mbs

  6. #6
    Join Date
    Nov 2003
    Jerryville, Tejas
    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.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

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

  8. #8
    Join Date
    Dec 2003
    Thanks, Ray. I will look into it.

  9. #9
    Join Date
    Nov 2003
    Jerryville, Tejas
    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.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  10. #10
    Join Date
    Dec 2003


    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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.43857 seconds
  • Memory Usage 2,933KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (10)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates