SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question padding margin problem

    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

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,122
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    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&amp;id=1190963212&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>28-Sep-2007</strong> - Calendario <b>UISP ICE LEAGUE</b></a></li>
      <li><a href="/page.php?subaction=showfull&amp;id=1190876946&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>27-Sep-2007</strong> - In attesa del <b>calendario UISP</b></a></li>
      <li><a href="/page.php?subaction=showfull&amp;id=1190382179&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>21-Sep-2007</strong> - Allenamenti e prima amichevole!</a></li>
      <li><a href="/page.php?subaction=showfull&amp;id=1189781883&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>14-Sep-2007</strong> - Si torna alla Palestra Breda!</a></li>
      <li><a href="/page.php?subaction=showfull&amp;id=1189676631&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>13-Sep-2007</strong> - Preparazione e ... pallone!</a></li>
    </ul>

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why with Ie7 i see
    list-style-image: url(/images/bull.gif);
    and with FF i dont?

  4. #4
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,122
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    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.

  5. #5
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now i have

    <div class="archivio">
    <ul class="archivio">

    <li><strong>{date}</strong> - [link]{title}[/link] </li>
    </ul>
    </div>

  6. #6
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,122
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    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&amp;id=1190963212&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <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&amp;id=1190876946&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <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&amp;id=1190382179&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>21-Sep-2007</strong>  - Allenamenti e prima amichevole!</a></li>
    
    </ul>
    </div><div id="ultime">
      <ul>
     <li>  <a href="/page.php?subaction=showfull&amp;id=1189781883&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <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&amp;id=1189676631&amp;archive=&amp;start_from=&amp;ucat=&amp;"> <strong>13-Sep-2007</strong>  - Preparazione e ... pallone!</a></li>
    
    </ul>
    </div><!-- News Powered by CuteNews: http://cutephp.com/ -->

  7. #7
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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>

  8. #8
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,122
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    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>
    Code:
    <li><strong>{date}</strong> - [link]{title}[/link] </li>
    In a list only the li items are repeated - not the ul each time.

    Hope it helps

  9. #9
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    done but still problem

  10. #10
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,122
    Mentioned
    29 Post(s)
    Tagged
    2 Thread(s)
    Make it valid! - find out what's generating the markup - you still have div's either side of the li items.

  11. #11
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by markbrown4 View Post
    Make it valid! - find out what's generating the markup - you still have div's either side of the li items.


    i cnat change that


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •