hi,
look at my site please,
i have 2 problems:
1) want to add margin-top to separate commenti from Ultime Notizie
2) how to align the single line better and ake off all that space between the lines?
thanks
| SitePoint Sponsor |

hi,
look at my site please,
i have 2 problems:
1) want to add margin-top to separate commenti from Ultime Notizie
2) how to align the single line better and ake off all that space between the lines?
thanks

Hello,
You can't use li tags without a parent ol or ul tag and you don't need divs separating each list item - Remember to validate
Code:<ul class="archivio"> <li><a href="/page.php?subaction=showfull&id=1190963212&archive=&start_from=&ucat=&"> <strong>28-Sep-2007</strong> - Calendario <b>UISP ICE LEAGUE</b></a></li> <li><a href="/page.php?subaction=showfull&id=1190876946&archive=&start_from=&ucat=&"> <strong>27-Sep-2007</strong> - In attesa del <b>calendario UISP</b></a></li> <li><a href="/page.php?subaction=showfull&id=1190382179&archive=&start_from=&ucat=&"> <strong>21-Sep-2007</strong> - Allenamenti e prima amichevole!</a></li> <li><a href="/page.php?subaction=showfull&id=1189781883&archive=&start_from=&ucat=&"> <strong>14-Sep-2007</strong> - Si torna alla Palestra Breda!</a></li> <li><a href="/page.php?subaction=showfull&id=1189676631&archive=&start_from=&ucat=&"> <strong>13-Sep-2007</strong> - Preparazione e ... pallone!</a></li> </ul>

why with Ie7 i see
list-style-image: url(/images/bull.gif);
and with FF i dont?

Why haven't you listened to my above post - Now you have li ul and div's all over the place - your code isn't valid so browsers are having to guess what you are wanting to do.

now i have
<div class="archivio">
<ul class="archivio">
<li><strong>{date}</strong> - [link]{title}[/link] </li>
</ul>
</div>

For each list item, it needs to look like my post above... Not
Code:<div id="ultime"> <ul> <li> <a href="/page.php?subaction=showfull&id=1190963212&archive=&start_from=&ucat=&"> <strong>28-Sep-2007</strong> - Calendario <b>UISP ICE LEAGUE</b></a></li> </ul> </div><div id="ultime"> <ul> <li> <a href="/page.php?subaction=showfull&id=1190876946&archive=&start_from=&ucat=&"> <strong>27-Sep-2007</strong> - In attesa del <b>calendario UISP</b></a></li> </ul> </div><div id="ultime"> <ul> <li> <a href="/page.php?subaction=showfull&id=1190382179&archive=&start_from=&ucat=&"> <strong>21-Sep-2007</strong> - Allenamenti e prima amichevole!</a></li> </ul> </div><div id="ultime"> <ul> <li> <a href="/page.php?subaction=showfull&id=1189781883&archive=&start_from=&ucat=&"> <strong>14-Sep-2007</strong> - Si torna alla Palestra Breda!</a></li> </ul> </div><div id="ultime"> <ul> <li> <a href="/page.php?subaction=showfull&id=1189676631&archive=&start_from=&ucat=&"> <strong>13-Sep-2007</strong> - Preparazione e ... pallone!</a></li> </ul> </div><!-- News Powered by CuteNews: http://cutephp.com/ -->

but the code i have from the news script is this:
Code:<div style="margin-top: 30px;"> <h2><strong>Ultime Notizie</strong></h2> <?php $PHP_SELF = '/page.php'; $static = true; $template = 'ultimenotizie'; $number = 5; include('/home/sancarlo/public_html/news/show_news.php'); ?> </div>
and then:
Code:<div class="archivio"> <ul class="archivio"> <li><strong>{date}</strong> - [link]{title}[/link] </li> </ul> </div>

This isn't the PHP forum but my guess is you are wanting it to be this:
Code:<div style="margin-top: 30px;"> <h2><strong>Ultime Notizie</strong></h2> <div class="archivio"> <ul class="archivio"> <?php $PHP_SELF = '/page.php'; $static = true; $template = 'ultimenotizie'; $number = 5; include('/home/sancarlo/public_html/news/show_news.php'); ?> </ul> </div> </div>In a list only the li items are repeated - not the ul each time.Code:<li><strong>{date}</strong> - [link]{title}[/link] </li>
Hope it helps![]()

done but still problem![]()

Make it valid! - find out what's generating the markup - you still have div's either side of the li items.

Bookmarks