You are here: Re: how to define properties of table border with css? « HTML « IT news, forums, messages
Re: how to define properties of table border with css?

Posted by Jeff on 01/13/08 17:40

Bernd Meier wrote:
> I defined table.propertiesfortables {color:green;
> background-color:#FFFF00; border="5" solid blue} as CSS.

for one thing that isn't correct CSS.

try: border: solid blue 5px

for another, do you want a border around the table or the cells?:

table.propertiesfortables td{border: solid blue 5px;}

Also look up border-collapse: collapse

Styling tables with CSS is a different animal than you think.

I'm sure there must be a tutorial around somewhere on this.



> I start my table with the tag: <table class=propertiesfortables>
>
> Font is green and background yellow but I didn't get border lines.
> But if I use table.propertiesfortables {color:green;
> background-color:#FFFF00}
> as CSS and then begin table tag with <table class=propertiesfortables
> border="5" solid blue>

Good html procedure is to use quotes
<table class="propertiesfortables"

Jeff



> I get blue border line.
>
> Why don't I get blue border lines for my table with first example with
> CSS and what have
> I to change to get them with CSS?

 

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

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