Posted by Cogito on 10/06/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?
Navigation:
[Reply to this message]
|