what I was talking about in regards to the table layout is
<td class="alt1" valign="top">
<center>
<ul id="copertine"> <li>
<a href="http://www.unprogged.com/showthread.php?t=2528" title="ANATROFOBIA - Brevi Momenti Di Presenza">
<img src="http://www.unprogged.com/geek/gars/images/2/anatrofobia_brevimomentidipresenza.jpg" alt="ANATROFOBIA - Brevi Momenti Di Presenza" class="whiteborder" border="0" />
<br />
<span class="copertine_titolo">ANATROFOBIA - Brevi Momenti Di Presenza</span>
</a>
</li>
</ul>
</center>
</td>
you have alot of extra code in there. its great that you are using css, and really you shouldn't be using tables at all... however by using the tables, you do not need to use the unordered list... what you have right there can very easily be wrote as
Code:
<td class="coppertine">
<a href="http://www.unprogged.com/showthread.php?t=2528" title="ANATROFOBIA - Brevi Momenti Di Presenza">
<img src="http://www.unprogged.com/geek/gars/images/2/anatrofobia_brevimomentidipresenza.jpg" alt="ANATROFOBIA - Brevi Momenti Di Presenza">
ANATROFOBIA - Brevi Momenti Di Presenza
</a>
</td>
and in your css file you can make these changes.
replace

Originally Posted by
you
.alt1, .alt1Active
{
background: #E2E9F4;
color: #272727;
}
.alt1 a:link, .alt1_alink, .alt1Active a:link, .alt1Active_alink
{
color: #516575;
text-decoration: none;
}
.alt1 a:visited, .alt1_avisited, .alt1Active a:visited, .alt1Active_avisited
{
color: #516575;
text-decoration: none;
}
.alt1 a:hover, .alt1 a:active, .alt1_ahover, .alt1Active a:hover, .alt1Active a:active, .alt1Active_ahover
{
background: #BAD3E8;
color: #516575;
text-decoration: none;
}
.alt2, .alt2Active
{
background: #E3EAF5;
color: #272727;
}
.alt2 a:link, .alt2_alink, .alt2Active a:link, .alt2Active_alink
{
color: #516575;
text-decoration: none;
}
.alt2 a:visited, .alt2_avisited, .alt2Active a:visited, .alt2Active_avisited
{
color: #516575;
text-decoration: none;
}
.alt2 a:hover, .alt2 a:active, .alt2_ahover, .alt2Active a:hover, .alt2Active a:active, .alt2Active_ahover
{
background: #BAD3E8;
color: #516575;
text-decoration: none;
}
#copertine { list-style-type: none; margin: 0; padding: 0; width: 100px; }
#copertine li { float: left; width: 100px; height: 100%; list-style-type: none; margin: 0; padding: 0; }
#copertine a { display: block; width: 100px; height: 100%; background: transparent; text-decoration: none; }
#copertine li a:hover {
background: url(images/freccia.gif) no-repeat top left;
text-decoration: none;
}
#copertine img { width: 60px; height: 60px; }
.copertine_titolo { font-family: Arial, Tahoma; color:#66737F; font-weight: bold; font-size:10px; }
with
Code:
td.copertine {
background: #E2E9F4;
color: #272727;
font-family: Arial, Tahoma;
font-weight: bold;
font-size: 10px;
}
td.copertine a:link, td.copertine a:visited, td.copertine a:hover, td.copertine a:active {
color: inherit;
text-decoration: none;
}
td.copertine a:hover {
background: #BAD3E8 url('images/freccia.gif') no-repeat top left;
}
td.copertine img {
display: block;
border: 0;
width: 60px;
height: 60px;
}

Originally Posted by
me
td.copertine {
background: #E2E9F4;
color: #272727;
font-family: Arial, Tahoma;
font-weight: bold;
font-size: 10px;
}
creates a default styling for each of table data cells, however I would actually recommend one step further and putting the font-family and font-size declarations in the body{} style. the font-weight style is probably appropriate to keep here as it is specific to this element. While this isnt wrong to keep it here, I am just trying to help you clean up your code as much as possible to help the page render more quickly.
This also gets rid of your improper use of the <element id="something">. ID's are meant to be used when an element appears once and ONLY once on a page, however for every label you have, you have put the td cell as an id.

Originally Posted by
me
td.copertine a:link, td.copertine a:visited, td.copertine a:hover, td.copertine a:active {
color: inherit;
text-decoration: none;
}
td.copertine a:hover {
background: #BAD3E8 url('/images/freccia.gif') no-repeat top left;
}
creates the default styling's for the hyperlinks of each label. Rather than declaring the text-decoration: and color: for each anchor psuedo selector separately, I combined them all and set the color to inherit to use the color of the td.copertine that we created in the last style.
if you you notice that td.copertine a:hover selector only has the 1 property, that is because it will default the rest to the style above. the only difference between the two is that we want that arrow image to show up when the label is hovered over.

Originally Posted by
me
td.copertine a img {
display: block;
border: 0;
width: 60px;
height: 60px;
}
this style is one that I combined from many others that you had previously. I set the cd label image to display on its own line, thus negating the need for the span tag, also deleted the border around the image, and set the width / height properties.
I hope you understood what I just did, the css only needs to be applied once in your stylesheet, however you can replace all of your table data cells with with the html that I provided, just changing the link / image / text as needed. This will greatly cut down on your storage / bandwidth / and render (display) time for your page. If you have any questions please feel free to ask.

Originally Posted by
you
If you see something like this, then it is not correct. I would like to set the arrow centered and forward in respect to the disc cover.
what do you mean centered and forward? are you talking about appearing "over" the label? like directly above?
Bookmarks