Connecting Tech Pros Worldwide Forums | Help | Site Map

<div> container throwing all fonts on page off

n8kindt's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Southern California
Posts: 221
#1: Sep 24 '08
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:

Expand|Select|Wrap|Line Numbers
  1. <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
File Type: txt stylesheet.txt (5.0 KB, 26 views)

Expert
 
Join Date: Aug 2008
Posts: 397
#2: Sep 24 '08

re: <div> container throwing all fonts on page off


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?
n8kindt's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Southern California
Posts: 221
#3: Sep 24 '08

re: <div> container throwing all fonts on page off


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="changeSubmitForm"></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
Expert
 
Join Date: Aug 2008
Posts: 397
#4: Sep 24 '08

re: <div> container throwing all fonts on page off


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:
Expand|Select|Wrap|Line Numbers
  1. table { font-size: 12px; }
  2.  
n8kindt's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Southern California
Posts: 221
#5: Sep 24 '08

re: <div> container throwing all fonts on page off


Quote:

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:

Expand|Select|Wrap|Line Numbers
  1. table { font-size: 12px; }
  2.  

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
Reply