Reply to Re: Column width in a CSS table

Your name:

Reply:


Posted by Cogito on 11/15/08 11:17

Good news. After some trial and error I solved my problem.

Now, my last two questions are:

1
In my .css file I have:

body#homepage table.archivetable
{
margin-bottom:30px;
width:100%;
border-collapse:collapse;
}

…as well as many other attribute definitions for table.archivetable

in my source .html file I have:

<table class="archivetable">

My question is: If I want to change the width attribute, say to 50%,
do I have to hard code the change in the .css file
or can I leave the .css file with 100% and override it on the <table
class="archivetable"> tag?
If the second option is possible could you please show me the syntax
for it?


2

It seems that there are two ways to include the .css file into the
source

<link rel="StyleSheet" href="table.css" type="text/css" />
and
<style type="text/css" media="all">@import
'table.css';</style>

They both work well. What is the difference between them and which is
the better one to use?

[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

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