HighDots Forums  

CSS font and table problem

alt.html.writers alt.html.writers


Discuss CSS font and table problem in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Swan
 
Posts: n/a

Default CSS font and table problem - 05-14-2006 , 11:24 AM






Hello.

I recently developed a new website which I have uploaded to:
http://www.integrated-dev-sol.co.uk/Ainleys/index.html

The style sheet is called default.css
or:
http://www.integrated-dev-sol.co.uk/Ainleys/default.css

Ok, the problem is that inside the index file there is a table. The font
size of this table do not tally with the font size of the "main_content" or
anything else for that matter. I am also having the same difficulty with the
services page.
I have tested this in 2 browsers including IE and firefox with the same
result.

Could anyone please shed some light onto this.
I am fairly new to developing sites using CSS but find the whole thing
rewarding, so any help would be appreciated.

Sorry for cross posting.

--
www.integrated-dev-sol.co.uk
Remove 123 from email address to reply.
Anti spam and virus measure.



Reply With Quote
  #2  
Old   
Rik
 
Posts: n/a

Default Re: CSS font and table problem - 05-14-2006 , 04:24 PM






John Swan wrote:
Quote:
Hello.

I recently developed a new website which I have uploaded to:
http://www.integrated-dev-sol.co.uk/Ainleys/index.html
First: validate your HTML!
http://validator.w3.org

Quote:
The style sheet is called default.css
or:
http://www.integrated-dev-sol.co.uk/Ainleys/default.css
Validate your CSS:
http://jigsaw.w3.org/css-validator/v...%2Fdefault.css

Quote:
Ok, the problem is that inside the index file there is a table. The
font size of this table do not tally with the font size of the
"main_content" or anything else for that matter. I am also having the
same difficulty with the services page.
I have tested this in 2 browsers including IE and firefox with the
same result.
Your main problem seems to be:
#table.tab
should be
table.tab
or
..tab

And add font-size: 1em to this element.
(Browsers often have a default rendering of tables, which has to be
explicitly changed).

Grtz,
--
Rik Wasmus




Reply With Quote
  #3  
Old   
John Swan
 
Posts: n/a

Default Re: CSS font and table problem - 05-15-2006 , 05:54 PM



Thank you very much.
Not only did that resolve the issue but has identified some other issues.

Thanks again.
John

"Rik" <luiheidsgoeroe (AT) hotmail (DOT) com> wrote

Quote:
John Swan wrote:
Hello.

I recently developed a new website which I have uploaded to:
http://www.integrated-dev-sol.co.uk/Ainleys/index.html

First: validate your HTML!
http://validator.w3.org

The style sheet is called default.css
or:
http://www.integrated-dev-sol.co.uk/Ainleys/default.css

Validate your CSS:
http://jigsaw.w3.org/css-validator/v...%2Fdefault.css

Ok, the problem is that inside the index file there is a table. The
font size of this table do not tally with the font size of the
"main_content" or anything else for that matter. I am also having the
same difficulty with the services page.
I have tested this in 2 browsers including IE and firefox with the
same result.

Your main problem seems to be:
#table.tab
should be
table.tab
or
.tab

And add font-size: 1em to this element.
(Browsers often have a default rendering of tables, which has to be
explicitly changed).

Grtz,
--
Rik Wasmus





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.