Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > ok i give up, set font size for table

Reply
Thread Tools

ok i give up, set font size for table

 
 
bbxrider
Guest
Posts: n/a
 
      04-04-2007
trying to set specific font for a table and while we at it, how about rows
too?
i've tried with css
< table id=font15px> .font15px{font-size: 15px}
<table class="font15px"> #font15px{font-size: 15px}
without css
< table font-size: 15px>

but the font size still is the one set in my css body attributes?

maybe its not possible??
bbxrider



 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      04-04-2007
On Wed, 04 Apr 2007 05:54:27 GMT bbxrider scribed:

> trying to set specific font for a table and while we at it, how about
> rows too?
> i've tried with css
> < table id=font15px> .font15px{font-size: 15px}
> <table class="font15px"> #font15px{font-size: 15px}
> without css
> < table font-size: 15px>
>
> but the font size still is the one set in my css body attributes?
>
> maybe its not possible??
> bbxrider


Seems like you have the class and id prefixes reversed.

--
Neredbojias
He who laughs last sounds like an idiot.
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      04-04-2007
In article <(E-Mail Removed)>,
"bbxrider" <(E-Mail Removed)> wrote:

> trying to set specific font for a table and while we at it, how about rows
> too?
> i've tried with css
> < table id=font15px> .font15px{font-size: 15px}
> <table class="font15px"> #font15px{font-size: 15px}
> without css
> < table font-size: 15px>
>
> but the font size still is the one set in my css body attributes?
>
> maybe its not possible??
> bbxrider


Please go to

<http://www.htmldog.com/>

and read up.

--
dorayme
 
Reply With Quote
 
Bernhard Sturm
Guest
Posts: n/a
 
      04-04-2007
bbxrider wrote:
> trying to set specific font for a table and while we at it, how about rows
> too?
> i've tried with css
> < table id=font15px> .font15px{font-size: 15px}
> <table class="font15px"> #font15px{font-size: 15px}
> without css
> < table font-size: 15px>
>
> but the font size still is the one set in my css body attributes?
>


I suggest you read a bit about basic CSS-handling. It seems that you
don't know how to use IDs and classes. The correct above examples should
read:

your first try
---------------
HTML:
<table id="first">

CSS:
table#first {
font-size:1.2em; /* don't use px as units! */
}

your second try
---------------
HTML:
<table class="second">

CSS:
table.second {
font-size:1.2em; /* don't use px as units! */
}

your third try
--------------
HTML:
<table style="font-size:1.2em;"> <!-- but don't mix structure with
layout -->

that gives you a starting point. But it might not work as you expected,
it's just correct CSS...

HTH
bernhard


> maybe its not possible??
> bbxrider
>
>
>



--
www.daszeichen.ch
remove nixspam to reply
 
Reply With Quote
 
bbxrider
Guest
Posts: n/a
 
      04-04-2007
thanks for the replies, especially bernhard for your details
one thing i had to do was remove another css statement
hr, hd {font-size: 11px;}
for the class and/or id to work
i thought i could 'override' a tag statement with class and/or id


"Bernhard Sturm" <(E-Mail Removed)> wrote in message
news:euvokn$ca9$(E-Mail Removed)...
> bbxrider wrote:
>> trying to set specific font for a table and while we at it, how about
>> rows too?
>> i've tried with css
>> < table id=font15px> .font15px{font-size: 15px}
>> <table class="font15px"> #font15px{font-size: 15px}
>> without css
>> < table font-size: 15px>
>>
>> but the font size still is the one set in my css body attributes?
>>

>
> I suggest you read a bit about basic CSS-handling. It seems that you don't
> know how to use IDs and classes. The correct above examples should read:
>
> your first try
> ---------------
> HTML:
> <table id="first">
>
> CSS:
> table#first {
> font-size:1.2em; /* don't use px as units! */
> }
>
> your second try
> ---------------
> HTML:
> <table class="second">
>
> CSS:
> table.second {
> font-size:1.2em; /* don't use px as units! */
> }
>
> your third try
> --------------
> HTML:
> <table style="font-size:1.2em;"> <!-- but don't mix structure with
> layout -->
>
> that gives you a starting point. But it might not work as you expected,
> it's just correct CSS...
>
> HTH
> bernhard
>
>
>> maybe its not possible??
>> bbxrider
>>
>>
>>

>
>
> --
> www.daszeichen.ch
> remove nixspam to reply



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating font with fixed font size andreasbell Software 1 08-30-2010 09:39 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Printing with specific font-type and font-size wial Java 2 11-27-2008 05:30 PM
Windows XP explorer font and font size Lookout Computer Support 0 06-04-2006 02:58 AM
Selecting font size based on available font dave richards HTML 2 02-19-2004 02:47 PM



Advertisments