Topic: .CSS/Table Issues Pages that link to <a href="https://ozoneasylum.com/backlink?for=9622" title="Pages that link to Topic: .CSS/Table Issues" rel="nofollow" >Topic: .CSS/Table Issues\

 
Author Thread
Dr T E Ozone
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2003

IP logged posted posted 04-15-2003 01:30 Edit Quote

Kind of a stupid post I know and I'm sorry for not posting the code, I'd just like some opinions. I create a .css file (I KNOW it is correctly written) and I create a site using tables. Well inside the tables, the .CSS font I choose doesn't work. For example I use Arial/Verdana at 8PT and it works on everything except when I add text INSIDE a table. Opinions please.. I'll go ahead and quickly create an example of what I am talking about and post it back here!

<edit>: The HTML and .CSS are below

[b]The .CSS Code[/B}

BODY { font-family: Arial, Verdana; font-size: 8pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #FF9900; text-decoration: none; background-color: #666666; background-repeat: no-repeat; letter-spacing: normal; text-align: center; word-spacing: normal; cursor: crosshair}

The HTML Code

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" href="style.css" type="text/css">
</head>


<p>&nbsp;</p>
<p>For Example, This is where the .CSS Style Sheet is WORKING CORRECTLY!</p>
<p>&nbsp;</p>
<table width="655" border="1">
<tr>
<td>And for example, It doesn't here! WHY!</td>
</tr>
</table>
<p>Please Explain this sad logic to me, I'm confused!</p>
</body>
</html>


[This message has been edited by Dr T E Ozone (edited 04-15-2003).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 04-15-2003 02:03 Edit Quote

Dr T E Ozone: What browser is showing up the problem?

It seems likey that this is one of the nagging browser issues that occurs occasionally 9although without a link or some code I can't tell).

These problems are usually fixed by doing something like:

code:
body, p, td {
font-family ETC

}



___________________
Emps

FAQs: Emperor

Dr T E Ozone
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2003

IP logged posted posted 04-15-2003 02:11 Edit Quote

Thanks man, That handled the problem..

<slaps self in head for not even think of that>

----------------
So what if I am clinicly insane, Does that mean I am a danger to what is known as socieity? Wait it does...

Regards,
Thaadeous Edward Ozone

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 04-15-2003 02:43 Edit Quote

Even if you have stuff in table cells like:

quote:
<td>And for example, It doesn't here! WHY!</td>



You should pop them in P tags - they are paragraphs after all

___________________
Emps

FAQs: Emperor

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

IP logged posted posted 04-15-2003 04:00 Edit Quote

From what I understand, tables don't always reliably inherit (depending on the browser), so you might need to be explicit (as emps pointed out).

Before Slime gets to you first, you REALLY should have a doctype declaration.

And - points are appropriate for print style sheets but not screen. Units like px and em are more suited for screen.

[This message has been edited by Steve (edited 04-15-2003).]

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 04-15-2003 11:33 Edit Quote

Hi, how are ya? I have jsut had a can of beer. So I am not sure if I will be able to help you.
Well, in my guess, you can format table using CSS2.

something like:
tr { font-family: Arial, Verdana; font-size: 8pt}

See here: http://www.w3.org/TR/REC-CSS2/tables.html

hope it will help you.

Cheers.

Hiroki Kozai

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

IP logged posted posted 04-15-2003 14:36 Edit Quote

I am so coming across the greatest quotes today.

In fact, I think I'll make a T-shirt.

Hi, how are you?
I have just had a can of beer.
So I am not sure if I will be able to help you.




[This message has been edited by Wes (edited 04-15-2003).]

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 04-15-2003 20:16 Edit Quote

hehe...yes, hiroki often makes me laugh =)

On this -

quote:
I KNOW it is correctly written



It's actually somewhat of an amusing statement. "correct" is a very relative term. If it's not working, chances are that *something* about isn't correct, or what the browser considers correct is different than what the specs say (or how you interpret the specs ) is correct.




Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

IP logged posted posted 04-15-2003 20:21 Edit Quote

Every time I'm positive something's correct, it's invariably missing a semicolon.


Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

IP logged posted posted 04-16-2003 04:12 Edit Quote

Well, always validate. Many HTML editors have built-in validation; I use HomeSite and TopStyle, for instance, which validate things as I type. In Topstyle, in fact, the color-coding changes to reflect correct syntax, so if something's off I know immediately. But at any rate, you can use the W3's CSS validator and it'll point out anything screwy.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu