<div> container throwing all fonts on page off

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n8kindt
    New Member
    • Mar 2008
    • 221

    #1

    <div> container throwing all fonts on page off

    i have no idea what to do on this one. no <div> containers were previously on any of the pages used with this stylesheet. i just started tinkering with javascript and decided it would make sense to use them. since then, all the pages where i added a <div> container on had all the fonts enlarged. here's an example of a container i made:

    Code:
    <div name="banner" id="banner" style="background-color:red;font-family:Arial;font-size:46px;font-color:black;text-align:center;">Currently editing cart of: first name last name</div>
    so how can i stop this? i will be attaching my stylesheet in case it is causing this.

    thank you for any and all replies!!
    Attached Files
  • David Laakso
    Recognized Expert Contributor
    • Aug 2008
    • 397

    #2
    Insufficient information to answer the question. Point to the uri of the page in your post.
    PS
    There is no attribute "name," unless (horror show), maybe if you are using frames?

    Comment

    • n8kindt
      New Member
      • Mar 2008
      • 221

      #3
      thanks for your reply! lol no i'm not using iframes. people still use those? :)

      sorry, i figured it might have been something easy that i missed.

      i created an example of the scenario but since the page is buried behind a login i had to disable a few things and there are mysql error msgs aplenty. if you look at where it says: "user to add cart to:" and select a user, it piles form information into the confounding container <div id="changeSubmi tForm"></div>. the text USED to appear just like the description beneath the image that says "black"

      here's the url: http://206.225.89.26/store/products_...cat=54&pid=702

      Comment

      • David Laakso
        Recognized Expert Contributor
        • Aug 2008
        • 397

        #4
        Yes, people still use iframes (and with a transitional doctype they are perfectly valid).
        The garbage above your doctype means that neither the w3c validation service, nor any browser, even sees the doctype on your page; consequently, the file runs in "less than standards mode" in some browsers and in "quirksmode " in other browsers -- all in all this is not good. And even if corrected the source is hardly suitable for the Web in its present state.

        Nevertheless, the correction for the question you asked on the page you asked about may be to add this to the CSS file:
        Code:
        table { font-size: 12px; }

        Comment

        • n8kindt
          New Member
          • Mar 2008
          • 221

          #5
          Originally posted by David Laakso
          Yes, people still use iframes (and with a transitional doctype they are perfectly valid).
          The garbage above your doctype means that neither the w3c validation service, nor any browser, even sees the doctype on your page; consequently, the file runs in "less than standards mode" in some browsers and in "quirksmode " in other browsers -- all in all this is not good. And even if corrected the source is hardly suitable for the Web in its present state.

          Nevertheless, the correction for the question you asked on the page you asked about may be to add this to the CSS file:
          Code:
          table { font-size: 12px; }
          you're a genius! thank you! thanks for the advice on the javascript junk above the doctype. otherwise, i probably would have left it alone so i'm glad you said something.

          cheers!

          nate

          Comment

          Working...