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

Home Posts Topics Members FAQ

Why are the container and floats not working in Firefox Opera, and IE?

6 New Member
I am relatively new to programing and are creating a site with a photo collection that uses mootools and slimbox for the lightbox effect. I am having a problem with the container and images floating in FireFox, Opera, and IE. The site displays correctly in Safari and Chrome. I know there are a lot of divs but that was the only way I could get the layout I wanted.
I've struggled with this for days and have done numerous searches trying to solve the problem. Any help would be appreciated. Thanks
Here is the html.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5.  
  6.  
  7. <script type="text/javascript" src="./js/mootools.js"></script>
  8. <script type="text/javascript" src="./js/slimbox.js"></script>
  9.  
  10.  
  11. <link href="css/styles.css" type="text/css" rel="stylesheet">
  12. <link href="css/bodystyles.css" type="text/css" rel="stylesheet">
  13. <link href="css/slimbox.css" type="text/css"  rel="stylesheet" media="screen">
  14. <link href="css/sb_styles.css" type="text.css" rel="stylesheet">
  15.  
  16.  
  17.  
  18. <title>Website</title>
  19.  
  20. </head>
  21.  
  22. <body>
  23.  
  24.  
  25. <div id="nav">
  26. <ul>
  27. <li><a href="index.php?page=HOME">HOME</a></li>
  28. <li><a href="index.php?page=ABOUT">ABOUT</a></li>
  29. <li><a href="index.php?page=STORE">STORE</a></li>
  30. <li><a href="index.php?page=COLLECTION">COLLECTION</a></li>
  31. <li><a href="index.php?page=STOCKLISTS">STOCKLISTS</a></li>
  32. <li><a href="index.php?page=BLOG">BLOG</a></li>
  33. <li><a href="index.php?page=PRESS">PRESS</a></li>
  34. <li><a href="index.php?page=CONTACT">CONTACT</a></li>
  35. </ul>
  36. </div>
  37. <br/>
  38.  
  39.  
  40.  
  41.  
  42.  
  43. <div id="collectionContainer">
  44.     <div id="header">
  45.             <h1> Collection</h1>
  46.             </div>
  47.             <div id="photographs">
  48.  
  49. <div class="womensText"><h3> <img src="./images/rlogo.tiff" alt="" />Women&rsquo;s Collection</h3>
  50.  
  51.         <div id="womens">
  52.                 <div><a href="./images/collection/women/wc1.jpg" rel="lightbox-women" title="BEACH TANK" ><img src="./images/collection/women/wc1_t.jpg" alt=""/></a></div>
  53.                 <div><a href="./images/collection/women/wc2.jpg" rel="lightbox-women" title="SWALLOWTAIL><img src="./images/collection/women/wc2_t.jpg" alt=""/></a></div>
  54.                 <div><a href="./images/collection/women/wc3.jpg" rel="lightbox-women" title="SWALLOWTAIL DRESS "><img src="./images/collection/women/wc3_t.jpg" alt=""/></a></div>
  55.  
  56.  
  57. <div class="mensText"> <img src="./images/rlogo.tiff" alt="" /> <h3>Men&rsquo;s Collection</h3>
  58.  
  59.     <div id="mens">
  60.                 <div><a href="./images/collection/men/mc1.jpg" rel="lightbox-men" title="DRIFTWOOD"><img src="./images/collection/men/mc1_t.jpg" alt=""/></a></div>
  61.                 <div><a href="./images/collection/men/mc2.jpg" rel="lightbox-men" title="KONA SUNSET"><img src="./images/collection/men/mc2_t.jpg" alt=""/></a></div>
  62.                 <div><a href="./images/collection/men/mc3.jpg" rel="lightbox-men" title="FRIKI TIKI"><img src="./images/collection/men/mc3_t.jpg" alt=""/></a></div>
  63.  
  64.  
  65. <div class="accessories"><h3><img src="./images/rlogo.tiff" alt=""/>Accessories</h3>
  66.  
  67.     <div id="accessories">
  68.                 <div><a href="./images/collection/accessories/a1.jpg" rel="lightbox-accessories" title=""><img src="./images/collection/accessories/a1_t.jpg" alt=""/></a></div>
  69.                 <div><a href="./images/collection/accessories/a2.jpg" rel="lightbox-accessories" title=""><img src="./images/collection/accessories/a2_t.jpg" alt=""/></a></div>
  70.                 <div><a href="./images/collection/accessories/a3.jpg" rel="lightbox-accessories" title=""><img src="./images/collection/accessories/a3_t.jpg" alt=""/></a></div>
  71.                 </div>
  72.     </div>
  73.        </div>
  74.  
  75. </div>
  76. </div>
  77.        </div>
  78. </div></div>
  79.  
  80. <div id="footer">
  81.  
  82.     <div class="footNav">
  83. <ul>
  84.     <li><a href="index.php?page=HOME">HOME</a></li>
  85. <li><a href="index.php?page=ABOUT">ABOUT</a></li>
  86. <li><a href="index.php?page=STORE">STORE</a></li>
  87. <li><a href="index.php?page=COLLECTION">COLLECTION</a></li>
  88. <li><a href="index.php?page=STOCKLISTS">STOCKLISTS</a></li>
  89. <li><a href="index.php?page=BLOG">BLOG</a></li>
  90. <li><a href="index.php?page=PRESS">PRESS</a></li>
  91. <li><a href="index.php?page=CONTACT">CONTACT</a></li>
  92. </ul>
  93.     </div>
  94.  
  95.  
  96.  
  97.  <div class="footer"><p>&copy; | All Rights Reserved | </p></div>
  98.  
  99.  </div>
  100.  
  101. </body>
  102. </html>
  103.  
  104.  
Here is the CSS for the styling on this page.
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. div#collectionContainer {
  4.     overflow: hidden;
  5.     margin: 0 auto;
  6.     padding: 0 50px;
  7.     width: 700px;
  8.     background-color: #D3D3D3;
  9. }
  10.  
  11. div#header {
  12.     margin-top: 150px;
  13.     margin-bottom: 5px;
  14.     padding-left: 15px;
  15. }
  16.  
  17.  
  18. div#womens div {
  19.     float: left;
  20.     width: 100px;
  21.     height: 150px;
  22.     margin: 12px;
  23. }
  24. .mensText {
  25.     clear: both;
  26. }
  27.  
  28. div#mens div {
  29.     width: 48px;
  30.     float: left;
  31.     margin: 10px;
  32. }
  33. .accessories {
  34.     clear: both;
  35. }
  36.  
  37. div#accessories div {
  38.     width: 45px;
  39.     float: left;
  40.     margin: 10px;
  41. }
  42.  
Nov 16 '10 #1
6 2239
JKing
1,206 Recognized Expert Top Contributor
Could you post a link and/or post a screenshot of both the intended layout and the incorrect layout.

You are missing a double quote on line 53 of your html in the title attribute of your link. Fix that for a start.
Nov 16 '10 #2
Peter Morris
6 New Member
Thanks for the response. This was an edited version of what I am trying to accomplish. You can see the site at http://beta.theorganik.com

I know there are html validation errors that need to be fixed. The CSS validates.
Nov 16 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
I entered a formula into my calculator. I know there are a lot of errors but why am I not getting the right answer?
Nov 16 '10 #4
Peter Morris
6 New Member
I meant I know the html validates with warnings. Most are because I used self closing tags in html 4.01 transitional. The errors are due to facebook, myspace, and twitter buttons and not what I am trying to style.
Nov 16 '10 #5
Death Slaught
1,137 Top Contributor
The problem is line 14 of your HTML. You have text.css instead of text/css. The CSS simply isn't being loaded.


Regards, Death
Nov 16 '10 #6
Peter Morris
6 New Member
Thank you.
Nov 16 '10 #7

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

Similar topics

18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
3
by: andyjgw | last post by:
Hi Just a quick question - I guess this is more a 'standards' thing than anything else. I'm working on a digital mapping application. One of the things I'm doing is outputting the IMG tag...
18
by: Greg G | last post by:
http://mysite.verizon.net/gdguarino/indexnew.htm It's not a high priority site, just some of my photos throughout the years. The address above is an experiment for a new home page. My intended...
4
by: Ross | last post by:
I have been using the following script to return a scrollbar to the position it was in before the data was posted. It works in ie but not in firefox. Thanks, R. <script...
3
by: patrickkellogg | last post by:
I have this code when you click the buttom is suppose to add a job history. it works with firefox, opera, but not ie. (please note - new entries don't have all the elements in them yet, but...
1
by: cardalda | last post by:
Hi all, When I add custom attributes to a TextBox, I can read them out in javascript under IE6. For example: in C# TextBox1.Attributes.Add("MyString", "ABC");...
3
by: wwfarch | last post by:
I've been killing myself for the past few hours trying to get this working in Firefox and Opera. The page renders as I'd like in IE7, I haven't checked in other IE versions yet. You can see the page...
0
by: reddaltoids | last post by:
I'm using a System.Web.UI.WebControls.Menu on a page I'm developing. I'm populating it from an XmlDataSource. In my testing, (with only a handful of elements), it seemed to work just fine in every...
2
by: teo | last post by:
Hallo, on long elaborating tasks (in example a button clicked on an .aspx page so the hourgless appears) I noticed that after 5 minutes a page called "Impossible visualizzare la pagina"...
3
scubak1w1
by: scubak1w1 | last post by:
Hello, I have a form pretty much as below but it only works in IE - not Firefox, Opera, etc The AJAX changes the query button in non-IE browsers, at least in the sense it is not opaque anymore,...
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...
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
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,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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.