473,473 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

<div> container throwing all fonts on page off

n8kindt
221 New Member
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, 354 views)
Sep 24 '08 #1
4 1587
David Laakso
397 Recognized Expert Contributor
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?
Sep 24 '08 #2
n8kindt
221 New Member
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
Sep 24 '08 #3
David Laakso
397 Recognized Expert Contributor
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.  
Sep 24 '08 #4
n8kindt
221 New Member
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
Sep 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sebastian Gohres | last post by:
Hi! I want three DIV-Container side by side in another DIV-Container: ____________________________________ |text text text text text text text | | __________ __________ __________ |...
1
by: drowned | last post by:
I am using div#container and then some more <div>'s inside it. How do I make Mozilla recognize that the container should wrap up everything. I have a div#mainContent, which is right floating inside...
1
by: Num GG | last post by:
Wow... this post is pretty unreadable. Ok, i'll try to make it simpler: I've got this first page: ----------------------------------------------------------- <div id=1>some text here</div>...
8
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.