473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

firefox problem with div and css

hey all -

having some trouble redoing my old website. using a css file and working with div layers to arrange things in different ways. in the end itll be a place for my art/music/whatever else.
the problem im running up against is mozilla firefox - my main browser - being unable to properly read and/or display my div layers. ie7 reads them fine, whether viewing them from file or online, but firefox cant seem to load them right.
i took two screens to show you what i mean.

this is ie7 displaying it correctly:



and this is firefox doing its thing:



here is the <head> section of my page:

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <title>16bitoctober</title>
  3. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  4. <style type="text/css" media="all"> 
  5.     @import "bw.css"; 
  6. </style>
  7. </head>
if anyone can help me fix this, i would greatly appreciate it.
thanks for your time,

ryan
Apr 10 '07 #1
8 6138
could you post your css
cheer
philleep
Apr 10 '07 #2
Expand|Select|Wrap|Line Numbers
  1. html
  2.     {
  3.     overflow-x: auto;
  4.     }
  5.  
  6. body
  7.     {
  8.     background: #000000;
  9.     color: #FFFFFF;
  10.     font-family: Tahoma, Verdana, Geneva, sans-serif;
  11.     font-size: 10px;
  12.         scrollbar-face-color: #000000;
  13.         scrollbar-highlight-color: #000000;
  14.         scrollbar-3dlight-color: FFFFFF;
  15.         scrollbar-darkshadow-color: FFFFFF;
  16.         scrollbar-shadow-color: #000000;
  17.         scrollbar-arrow-color: #FFFFFF;
  18.         scrollbar-track-color: #000000;
  19.     margin: 10px;
  20.     }
  21.  
  22. textarea, input, select, option
  23.         {
  24.         background: #000000;
  25.         color: #FFFFFF;
  26.         font-size: 8px;
  27.         font-family: Verdana, sans-serif;
  28.         }
  29.  
  30. a
  31.     {
  32.     text-decoration: none;
  33.     color: #CCFFFF;
  34.     }
  35.  
  36. a:hover
  37.     {
  38.     border: none;
  39.     color: #CCFFFF;
  40.     }
  41.  
  42. p
  43.     {
  44.     margin-top: 0px;
  45.     }
  46.  
  47. h1
  48.     {
  49.     font-size: 10px;
  50.     font-weight: bold;
  51.     margin-top: 0px;
  52.     text-align: left;
  53.     border-bottom: 1px solid #FFFFFF;
  54.     }
  55.  
  56. #1st
  57.     {
  58.     position: absolute;
  59.     top: 200px;
  60.     left: 5px;
  61.     width: 500px;
  62.     background: #000000;
  63.     border: 1px solid #FFFFFF;
  64.     filter: alpha(opacity=100);
  65.     -moz-opacity: 1.0;
  66.     -khtml-opacity: 1.0;
  67.     }
  68.  
  69. #2nd
  70.     {
  71.     position: absolute;
  72.     top: 200px;
  73.     left: 504px;
  74.     width: 150px;
  75.     float: right;
  76.     background: #000000;
  77.     border: 1px solid #FFFFFF;
  78.     filter: alpha(opacity=100);
  79.     -moz-opacity: 1.0;
  80.     -khtml-opacity: 1.0;
  81.     text-align: center;
  82.     overflow-y: auto;
  83.     }
  84.  
  85. #3rd
  86.     {
  87.     position: absolute;
  88.     top: 150px;
  89.     left: 388px;
  90.     width: 100px;
  91.     float: right;
  92.     background: #000000;
  93.     border: 1px solid #FFFFFF;
  94.     filter: alpha(opacity=100);
  95.     -moz-opacity: 1.0;
  96.     -khtml-opacity: 1.0;
  97.     text-align: justify;
  98.     overflow-y: auto;
  99.     }
thankyou,

ryan
Apr 10 '07 #3
drhowarddrfine
7,435 Expert 4TB
Part of the problem is using invalid CSS, or CSS that works only in IE. Which doctype are you using?

Also, we need the complete code. Just showing the head doesn't show us anything.

Firefox is the browser you should first check in, not IE7. If it's not working in Firefox then your code is wrong somewhow.
Apr 10 '07 #4
sorry about that

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>16bitoctober</title>
  5. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  6. <link rel="shortcut icon" href="favicon.ico">
  7. <style type="text/css" media="all">
  8.     @import "bw.css";
  9. </style>
  10. </head>
  11. <body>
  12. <!-- header image goes here -->
  13.  
  14. <!-- This is the main content area -->
  15. <div id="1st">
  16. <p><h1>nothing</h1>
  17. <br></p>
  18. <p style="width: 100%; border-bottom: solid 1px #FFFFFF; border-top: solid 1px #FFFFFF; text-align:center;"></p>
  19. <p></p>
  20. <p style="width: 100%; border-bottom: solid 1px #FFFFFF; border-top: solid 1px #FFFFFF; text-align:center;"></p>
  21. <p></p> 
  22. </div>
  23.  
  24. <!-- End main content area -->
  25.  
  26. <!-- This is the navigation -->
  27. <div id="2nd">
  28. . on paper .<br>
  29. . on canvas .<br>
  30. . on tape .<br>
  31. <br>
  32. . in transit .<br>
  33. . out of style .<br>
  34. <br>
  35. . on tap .<br>
  36. <br>
  37. . off topic .
  38. </div>
  39. <!-- End the navigation -->
  40.  
  41. <!-- This is the float box -->
  42. <div id="3rd">
  43. empty space in black and white. for the moment this is all there is.
  44. <br><br>
  45. </div>
  46. <!-- End the float box -->
  47.  
  48. </body>
  49. </html>
Apr 10 '07 #5
drhowarddrfine
7,435 Expert 4TB
As stated above, validate your html and css for your list of errors to fix this. The problem, as always, is IE7 and not Firefox. Firefox is performing perfectly.

A question: why are you using a transitional doctype?
Apr 11 '07 #6
i have no idea man. i just rewrote the first stylesheet my buddy wrote for me a few years ago. actually its probably 3 or 4 years now. anyway yeah.

so how do i validate it and all that to get it to work? sorry if that's a dumb question, haha, but i really dont know. before all this css stuff i just wrote in html so im still kind of behind.

what do i do to fix it?

thanks for the help,

ryan
Apr 11 '07 #7
drhowarddrfine
7,435 Expert 4TB
See the sticky at the top of this board for validation. Then read the sticky about doctypes. Long story short, use html4.01 strict.

id names cannot begin with a number.
Apr 11 '07 #8
hey guys, its all worked out now, for the moment at least haha. sorry for the newbieism and thanks for all the help :)

ryan
Apr 11 '07 #9

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

Similar topics

6
by: Geoff | last post by:
When trying to focus a field in Firefox, I get the following error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::...
12
by: Howard Kaikow | last post by:
Yesterday, I decided to try Firefox. I've encountered a behavior that is either a bug in Firefox or a bug in my Javascript code. I'll try to explain the problem, hoping that this newsgroup can...
87
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
14
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
6
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
5
by: SPE - Stani's Python Editor | last post by:
Hi, During optimizing SPE for Ubuntu, I found something strange. I have Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not working: >>> import webbrowser >>>...
7
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script...
6
by: scotty | last post by:
I have a script that loops through an existing table list and prepares each href element node to trigger a function when an image is clicked. The function that will be run passes a property value...
7
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.