Reply to Re: ok i give up, set font size for table

Your name:

Reply:


Posted by Bernhard Sturm on 04/04/07 08:42

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

[Back to original 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

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