View Full Version : Why is the border not showing up in Firefox?


Raina004
08-04-2009, 01:59 PM
Hello! First post!

Anyway, I have been working on this layout for a while (I am NOT a web design expert by any means, I have to admit), and when I uploaded it to my webhost, I noticed that the borders dont show up in Firefox, which is my main browser, but it shows up in Internet Explorer, which I don't use.

Is there anyway I can change the code so that the borders show up in Firefix as well?

Many thanks!


The url is http://florezfans.net/index1.html

Check it out in both browsers.

Girl
08-04-2009, 02:25 PM
I'm not very good with this stuff, but I think I know why it's not working in Firefox.

I viewed your page in Chrome and IE, and the border worked in both. The border style tag is not a valid tag, so Firefox doesn't recognize it. I think you need to style the table borders in the style sheet, not the html.

There's a site here that shows you how to do that:

http://www.somacon.com/p141.php

Try it out :)

b3ns
08-04-2009, 05:09 PM
<body bgcolor="#c0c0c0" text="#000000" link="#ffffff" vlink="#ffffff" alink="#000000" bgproperties="fixed">
<center>
<font size="2" face="tahoma,verdana">

<div align="center">

<TABLE WIDTH="90%" HEIGHT="100%" CELLSPACING="4" CELLPADDING="4" BORDER="0" SYTLE="border: 1 dashed #000000">
<TR>
<TD Height="30%" Colspan="3" Align="center" style="border: 1 dotted #000000"><img src="http://florezfans.net/florezfans.jpg"></TD>
</TR>
<TR>

The part bolded is most probably your problem. The style attribute is an inline CSS style sheet. border: 1 isn't referencing to a "width size" - and I guess IE has a default size type such as pixels when you don't specify it. For instance, in a Microsoft Word document you can specify different text sizes, such as 12pt, and "pt" is a type of size. and the number references to those different sizes. The same is when applying border sizes. Most commonly we use px which stands for pixels, so change border: 1 dashed #000000 with border: 1px dashed #000000 - if you want a thicker border, add something like 6px, and so on.

Raina004
08-05-2009, 03:51 AM
Thank you!