473,505 Members | 16,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS file does not apply to border types (font/links work though)

I have a td element in my html file:
<td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top">
If I put inside the HTML file it works fine but I want a central CSS
file.
<Style.tableborder{border-style: groove;border: 2;border-color:
#FF0000;}</style>


my CSS file which is linked in the html file:
<link href="churchCSS.css" rel="stylesheet" type="text/css">

in churchCSS.css I have:
..tableborder{border-style: groove;border: 2;border-color: #FF0000;}

Unfortunately the style is not picked up, while link styles and other
font styles DO work! I don't understand, please help i've looked
around a good bit.

Jan 19 '07 #1
1 2020
Vi*********@gmail.com wrote:
I have a td element in my html file:
<td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top">

If I put inside the HTML file it works fine but I want a central CSS
file.
<Style>
Needs to be: <style type="text/css">
>.tableborder{border-style: groove;border: 2;border-color:
#FF0000;}</style>

my CSS file which is linked in the html file:
<link href="churchCSS.css" rel="stylesheet" type="text/css">

in churchCSS.css I have:
.tableborder{border-style: groove;border: 2; ...
2 what? Hobnobs? Slices of pizza? Meters?

You need a unit, such as 2px.
Unfortunately the style is not picked up, while link styles and other
font styles DO work! I don't understand, please help i've looked
around a good bit.
When errors are encountered, browsers are free to either try to
interpret, or ignore.

Suggest you check your work here:
http://jigsaw.w3.org/css-validator/validator.html

...and here for your HTML:
http://validator.w3.org/

--
-bts
-Motorcycles defy gravity; cars just suck
Jan 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1709
by: Eugene Borukhovich | last post by:
Hello, I just got a client that is running their PHP site on Apache 1.3 with PHP 4.x. The server is very weak and during peak times hangs. I am not a programmer, so having a little dificulty...
5
5433
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
0
1234
by: AwanJohnie | last post by:
I want to display results of a search in XML on a browser. I have created a search form using HTML to accept parameters for the field "author". I want to be able to accept this parameter in the...
15
2127
by: greenflame | last post by:
First of all I only have IE for testing. Ok. I have a script that is supposed to show, not evaluate, the indefinite integral of something. When I run the script it just craches IE. I have tried...
10
3064
by: Brian Henry | last post by:
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page...
19
2512
by: Noozer | last post by:
I need to keep my application settings in a file that users can copy/backup/etc. Before I start using the old INI file standard, is there any easy way to use XML files to hold application...
9
4827
by: Tristán White | last post by:
Hi I am very new to PHP - actually, this is my second day at it, as I've only recently started a new job last week. We're a charity. I have a "No input file selected" problem. A Google search...
1
6441
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
4
2913
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7307
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
7370
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
7021
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
5614
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
4701
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
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.