You are here: Re: ok i give up, set font size for table « HTML « IT news, forums, messages
Re: ok i give up, set font size for table

Posted by bbxrider on 04/04/07 22:33

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" <sturmnixspam@datacomm.ch> wrote in message
news:euvokn$ca9$1@aioe.org...
> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация