View Full Version : Problems with firefox
danielwarner
06-28-2006, 04:58 PM
Ok so this page works A-Ok on every browser apart form firefox and i swear i couldnt make the code more basic than it is...
The link is http://brew.byethost17.com
Any help is apprechiated.
_Aerospace_Eng_
06-28-2006, 06:25 PM
Ok so this page works A-Ok on every browser apart form firefox and i swear i couldnt make the code more basic than it is...
The link is http://brew.byethost17.com
Any help is apprechiated.
Sure it can get more basic.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Extreme Alcohol.com - The homebrewers Favorite bookmark!</title>
<base href="http://brew.byethost17.com/" /><!--can be removed-->
<style type="text/css">
html, body {
margin:0;
padding:0;
font-size:11px;
font-family:Arial, Helvetica, sans-serif;
background:#960 url(images/background.gif) center;
}
body {
padding:5px 0 8px 0;
}
#container {
width:731px;
margin:auto;
background:#FFF url(images/container_left.gif) 0 246px repeat-y;
}
#header {
height:224px;
background:url(images/header.jpg) no-repeat;
text-indent:-9999px;
text-align:center;
font-weight:bold;
font-size:14px;
}
#nav {
height:22px;
background:url(images/nav_left.gif) no-repeat;
margin:0;
padding:0 0 0 9px;
list-style:none;
line-height:22px;
position:relative;
}
#nav li {
background:url(images/nav_div.gif) right no-repeat;
padding-right:5px;
list-style:none;
float:left;
height:22px;
}
#nav li a {
float:left;
background-color:#560000;
text-align:center;
color:#92774C;
font-weight:bold;
display:block;
width:97px;
text-decoration:none;
height:22px;
line-height:22px;
}
#nav li a:hover {
text-decoration:underline;
}
#nav li.last {
padding-right:9px;
background:url(images/nav_right.gif) right no-repeat;
}
#nav li.last a {
width:101px;
}
#navbot, #navtop, #footer {
height:7px;
line-height:0px;
font-size:0;
background:url(images/nav_bottom.gif) no-repeat;
}
#navtop {
background:url(images/nav_top.gif) no-repeat;
}
#content {
background:url(images/container_right.gif) right repeat-y;
min-height:300px;
padding:5px 10px;
}
* html #content {
height:300px;
}
#footer {
background:url(images/container_bottom.gif) no-repeat;
clear:both;
}
</style>
</head>
<body>
<div id="container">
<div id="header">Extreme Alcohol.com - The homebrewers Favorite bookmark!</div>
<div id="navtop"> </div>
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Brewing Alcohol</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Links</a></li>
<li class="last"><a href="#">Contact</a></li>
</ul>
<div id="navbot"> </div>
<div id="content">This is content</div>
<div id="footer"></div>
</div>
</body>
</html>
That should work in all modern browsers.
danielwarner
06-28-2006, 06:37 PM
woah thanks for the reply... im not 100% with css although its pretty straight forward stuff...
i atchually decided against coding with divs because i usually dont care much for browser compatibility so i thought html4 was the best idea...
drhowarddrfine
06-28-2006, 08:27 PM
So you don't care that 1 out of every 10 visitors, or more, can't view your page properly?
Divs are a html element. You can code using them with html or xhtml, with or without css.
Arbitrator
06-29-2006, 05:55 AM
I believe that in the #nav rule, _Aerospace_Eng_ meant to reference the list-style property, not "line-style". Also, note that the * html (star-HTML) selector is an exploit for a bug in Internet Explorer that will be fixed in IE7; you should instead use conditional comments (http://www.quirksmode.org/css/condcom.html) to target IE which are forward compatible.
And FYI, CSS and (X)HTML go hand-in-hand. If you want to learn one, you need to know the other; it's not really a pick and choose thing. HTML defines the basic structure of a page and CSS provides information on how that structure should be presented. As for division elements, you should learn to use them since they're quite powerful and more versatile than tables. Using tables for layout is semantically incorrect anyway since they're for displaying tabular data (i.e., tables, charts, complex or organized data lists, et cetera). And yes, div and table elements are both defined in both HTML and XHTML.
_Aerospace_Eng_
06-29-2006, 05:59 AM
I believe that in the #nav rule, _Aerospace_Eng_ meant to reference the list-style property, not "line-style". Also, note that the * html (star-HTML) selector is an exploit for a bug in Internet Explorer that will be fixed in IE7; you should instead use conditional comments (http://www.quirksmode.org/css/condcom.html) to target IE which are forward compatible.
Yeah you are right. I meant list-style. I don't agree with you entirely on the * html thing. I'm not intending for it to work in IE7 since IE7 should understand min-height when it comes out. I was only intending for IE6 and below to understand it. For other properties I do use conditional comments but to fake min-height in IE6 I use the * html hack. When IE7 is in quirks mode it will revert back to the old IE6 bugs. In standards mode it will simply ignore that rule. Like I said I'm not intending on it to work in IE7 when in standards compliant mode.
danielwarner
06-29-2006, 01:20 PM
its not that i never cared about the visiters viewing my websites it just that i used to always see standard html 4 was the one acceptable code that is read and interpreted the same throughout every browser. Thats why i tried this website in tables to begin with, although my code displayed incorrectly in firefox.
Im still learning the css that you've written for me :D, its lot more advanced than i ever used. :p
btw, is there any difference between id and classes? except for the #, . thing used in style sheet ?
Arbitrator
06-29-2006, 02:59 PM
Yeah you are right. I meant list-style. I don't agree with you entirely on the * html thing. I'm not intending for it to work in IE7 since IE7 should understand min-height when it comes out.Heh, I'd read some comments about IE7 not supporting the min-dimension properties but I guess that was before the second beta or something. I guess the decision to use CCs in this case then depends on whether or not you want to keep your "hacks" separate.
btw, is there any difference between id and classes? except for the #, . thing used in style sheet ?IDs can only be used once in a document (single HTML file). Classes can be used multiple times in the same document.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.