|
|
| Author |
Message |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
 Posted: 10:35 - 30 Jul 2010 Post subject: CSS + Firefox issue.. |
 |
|
Does CSS not display correctly in firefox or am I doing something wrong?
I've made a website which has CSS table border properties, this displays fine in my HTML code editor (not a drag and drop one) and displays fine in internet explorer but when I open in firefox the border does not display as colour, its invisible! Other than that all nothing changes, just the border colour dissapears.
Any ideas?? ____________________ Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Phil. |
This post is not being displayed .
|
 Phil. World Chat Champion

Joined: 02 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
 Posted: 11:08 - 30 Jul 2010 Post subject: |
 |
|
Attached a test file which has the exact problem, shows fine in IE but the table border dissapears in firefox...
p.s as you can tell, I've only just started using CSS and I still suck  ____________________ Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
 Posted: 13:00 - 30 Jul 2010 Post subject: |
 |
|
CSS File
| Code: |
p
{
font-family:"tahoma";
font-size:0.9em;
text-decoration:bold;
color:white;
padding:0px 40px;
text-align:justify;
}
p.second
{
font-family:"tahoma";
font-size:0.9em;
text-decoration:bold;
color:#000000;
padding:0px 40px;
text-align:justify;
}
table.first
{
border-color:#dc9541;
border-style: solid;
}
A:link {font-family: arial; text-decoration: none; color: red }
A:visited {font-family: arial; text-decoration: none; color: red }
A:active {font-family: arial; text-decoration: none; color: red }
A:hover {font-family: arial; text-decoration: underline; color: red }
|
A test html file
| Code: | <html>
<head>
<title>supercooks</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body bgcolor="#5a0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table class="first" width="500" height="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
testtesttesttest
</td>
</tr>
</table>
</body>
</html> |
Shows a thick orange border in IE but not in firefox... ____________________ Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Frost |
This post is not being displayed .
|
 Frost World Chat Champion

Joined: 26 May 2004 Karma :  
|
 Posted: 13:33 - 30 Jul 2010 Post subject: |
 |
|
| Code: |
<!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" lang="en" dir="ltr">
<head>
<title>supercooks</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<table id="first">
<tr>
<td colspan="5">
testtesttesttest
</td>
</tr>
</table>
</body>
</html> |
That's hot your HTML should look, all the stuff you have in there is style info and should be in the css file. Putting it int he HTML file you will eventually find yourself trying to over ride something with css and failing. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
 Posted: 13:44 - 30 Jul 2010 Post subject: |
 |
|
| DaFrostyOne wrote: | | Code: |
<!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" lang="en" dir="ltr">
<head>
<title>supercooks</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<table id="first">
<tr>
<td colspan="5">
testtesttesttest
</td>
</tr>
</table>
</body>
</html> |
That's hot your HTML should look, all the stuff you have in there is style info and should be in the css file. Putting it int he HTML file you will eventually find yourself trying to over ride something with css and failing. |
Nice one thank you, I'll go through the actual website and improve on the HTML as per your advice. ____________________ Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Sparks! |
This post is not being displayed .
|
 Sparks! Sir Tart-a-lot

Joined: 30 Aug 2003 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Frost |
This post is not being displayed .
|
 Frost World Chat Champion

Joined: 26 May 2004 Karma :  
|
 Posted: 16:23 - 30 Jul 2010 Post subject: |
 |
|
Also note the difference between an element 'class' and an element 'id'. ID's are unique and won't be repeated e.g major formatting areas. Classes are things that are be be repeated.
https://www.tizag.com/cssT/cssid.php
Messing them up is a very common cause of problems.
Paddings and margins are the bulk of what goes into css and can be a right pain to get sorted sometimes, especially when IE displays them different to firefox & chrome.
Do yourself a favour and develop it for firefox, and forget about trying to make it work for IE6! If your using something like dreamweaver you can set what display engine it uses to show the page you are editing.
If you are using dreamweaver it has features to check of code is valid css & xhtml. If not then there are some online validators:
https://validator.w3.org/
They will tell you rather cryptically where the error is. At first they will be a pain and slow you down, but you will learn how to do things properly which will save you time in the long run. good luck  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 16 years, 39 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|