iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old February 28th, 2008, 07:59 PM   #1
New Member
 

Join Date: Feb 2008
Location: Colorado
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Hyroz is on a distinguished road
Browser Compatibility Problem (Major)

Ok so my page looks fine in Internet Explore but in Firefox it looks horrible. I want my page to work fine in both browsers. I have tried validators and everything, I can't figure out what is wrong. Your help would be greatly appreciated guys.

Ok so heres the pages html.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Computer Maintance</title>
<link href="cm1.css" rel="stylesheet" type="text/css" />
<link href="nav/mainnav.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="nav/mainnav.css" />
<script type="text/javascript" src="nav/javascript/dropdown.js">
</script>
</head>
<body>
<noscript>To display this page correctly, javascript must be enabled in your browser.</noscript>
<img src="cmbanner.jpg" class="topbanner" alt="Banner" /> 
<div class="chromestyle" id="chromemenu" style="padding-bottom: 10px;">
<ul>
<li><a href="http://www.dynamicdrive.com">Home</a></li>
<li><a href="#" rel="dropmenu1">Computer/Hardware</a></li>
<li><a href="#" rel="dropmenu2">Internet</a></li>
<li><a href="#" rel="dropmenu3">Software</a></li>    
<li><a href="#" rel="dropmenu4">Sources</a></li>
<li><a href="#" rel="dropmenu5">About</a></li>    
</ul>
</div>

<!--1st drop down menu -->                                                   
<div id="dropmenu1" class="dropmenudiv">
<a href="http://www.dynamicdrive.com/">Increase Computer Speed</a>
<a href="http://www.cssdrive.com">Replacing Ram</a>
<a href="http://www.javascriptkit.com">Replacing Harddrive</a>
<a href="http://www.codingforums.com">Coding Forums</a>
<a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a>
</div>


<!--2nd drop down menu -->                                                
<div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
<a href="http://www.cnn.com/">Browsers</a>
<a href="http://www.msnbc.com">MSNBC</a>
<a href="http://news.bbc.co.uk">BBC News</a>
</div>

<!--3rd drop down menu -->                                                   
<div id="dropmenu3" class="dropmenudiv" style="width: 150px;">
<a href="http://www.google.com/">Google</a>
<a href="http://www.yahoo.com">Yahoo</a>
<a href="http://www.msn.com">MSN</a>
</div>
<!--4rd drop down menu -->                                                   
<div id="dropmenu4" class="dropmenudiv" style="width: 150px;">
<a href="http://www.google.com/">Images</a>
<a href="http://www.yahoo.com">Information</a>
<a href="http://www.msn.com">Content</a>
</div>
<!--5rd drop down menu -->                                                   
<div id="dropmenu5" class="dropmenudiv" style="width: 150px;">
<a href="http://www.google.com/">Test</a>
<a href="http://www.yahoo.com">Test</a>
<a href="http://www.msn.com">Test</a>
</div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
<table border="0" cellspacing="0" class="wlctbl" align="center" width="700" >
<tr>
<td width="100%" bgcolor="#999999" class="wlc" style="background:url('images/bghead.gif');">Welcome to Synthetic Drive!</td>
<td bgcolor="#999999" class="topbutton" style="float: right; background:url('images/bghead.gif'); border-left: 1px solid #000; border-bottom: 1px solid 

#000;"><a href="#top">^</a></td>
</tr>
<tr>
<td>Welcome to Synthetic Drive!  Synthetic drive is a website that teaches computer maintence broken down into four different categories:
<ul>
<li>Hardware</li>
<li>Computer</li>
<li>Internet</li>
<li>Software</li>
</ul>
Not only does Synthetic Drive teach those categories it also has interactivity to keep your brain pumping!
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="0" class="wlctbl" align="center" width="700" >
<tr>
<td width="100%" bgcolor="#999999" class="wlc" style="background:url('images/bghead.gif');">Member Preferences</td>
<td bgcolor="#999999" class="topbutton" style="float: right; background:url('images/bghead.gif'); border-left: 1px solid #000; border-bottom: 1px solid 

#000;"><a href="#top">^</a></td>
</tr>
</table>
<br />

</body>
</html>
Here is the pages css for the navigation.
Code:
.chromestyle{
font-weight: bold;

}

.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: "."; 
display: block; 
height: 0; 
clear: both; 
visibility: hidden;
}

.chromestyle ul{
border: 1px solid #BBB;
width: 100%;
background: url('chromebg.gif') center center repeat-x; /*THEME CHANGE HERE*/
padding: 4px 0;
margin: 0;
text-align: center; /*set value to "left", "center", or "right"*/
}

.chromestyle ul li{
display: inline;
}

.chromestyle ul li a{
color: #000000;
padding: 4px 7px;
margin: 0;
text-decoration: none;
border-right: 1px solid #DADADA;
}

.chromestyle ul li a:hover{
background: url('chromebg-over.gif') center center repeat-x; /*THEME CHANGE HERE*/
color: #000;
}

.chromestyle ul li a[rel]:after{ /*HTML to indicate drop down link*/
content: " v";
/*content: " " url('downimage.gif'); /*uncomment this line to use an image instead*/
}


/* ######### Style for Drop Down Menu ######### */

.dropmenudiv{
position: absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: #FFF;
width: 200px;
visibility: hidden;
}


.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: #000;
}

* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}

.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
and here is the css for just the page
Code:
body {
margin : auto;
background-color : #f4f1f1;
font-family : Times New Roman, Verdana, Arial, Sans-Serif;
border-bottom : 1px solid #000000;
}
.topbanner {
display : block;
float : left;
}
.wlctbl {
border-right : 1px solid #000;
border-left : 1px solid #000;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
}
.wlc {
font-size : 16px;
font-weight : bold;
border-bottom : 1px solid #000;
color : #000;
}
.topbutton a {
color : #000;
text-decoration : none;
}
.topbutton a:visited {
color : #000;
text-decoration : none;
}
.topbutton a:hover {
color : #000;
text-decoration : none;
}
.topbutton a:active {
color : #000;
text-decoration : none;
}
Please help me get this fixed. Thanks!
Hyroz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 28th, 2008, 10:29 PM   #2
Reputable Member
 

Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 30
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 delusion is on a distinguished road
Re: Browser Compatibility Problem (Major)

I see "content: ".";

what does that do?
delusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 06:55 AM   #3
Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 danny322 is on a distinguished road
Re: Browser Compatibility Problem (Major)

Have you got a link to the site? Quick tip......always test in firefox, not IE
danny322 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 29th, 2008, 08:27 AM   #4
Aso
Most Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 1,633
Blog Entries: 2
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0 Aso is on a distinguished road
Re: Browser Compatibility Problem (Major)

Quote:
Originally Posted by delusion View Post
I see "content: ".";

what does that do?
The :after pseudo element is a CSS function for adding (and styling) content after a selector.

The content is the actual content to be placed after the selector. In this case, a period. Usually this is a handy technique for clearing floats in FF, without the need for additional markup (which is not semantic).

@Hyroz - a link would be really useful. Since you've also got images in your layout, it will be hard for us to debug if we're not seeing the same thing as you. (Otherwise upload a zip of your files).
Aso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser compatibility issues Craigj1303 HTML, XHTML and CSS 3 February 4th, 2008 06:28 AM
PC browser compatibility aaronh Your Design and Layout 2 September 20th, 2007 10:10 PM
AOL Browser Compatibility hortondr HTML, XHTML and CSS 6 April 4th, 2007 07:25 PM
Browser compatibility Alsilver HTML, XHTML and CSS 11 October 19th, 2006 05:18 PM
Browser compatibility issue wombleUK HTML, XHTML and CSS 6 September 6th, 2006 10:58 AM


Search Engine Optimization by vBSEO 3.2.0 RC8