Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][PHP][HTML] Jak zlikwidować ten odstęp?
unster
post
Post #1





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 20.12.2006

Ostrzeżenie: (0%)
-----


Witam,
znów mam problem z odstępem który nie wiem skąd się wziął (IMG:style_emoticons/default/sad.gif)

Próbowałem już wszystkiego a oto efekt:
(IMG:http://iv.pl/images/qhvn6jszfwy10al09n2.jpg)

Kod:
  1. <!-- ramka -->
  2. <div class="featurepost" id="post-<?php the_ID(); ?>">
  3.  
  4. <!-- miniaturka -->
  5. <div style="clear: both;">
  6. <?php if ( get_post_meta($post->ID,'miniatura', true) ) { ?>
  7. <a href="<?php the_permalink() ?>">
  8. <img class="alignright" style="border: 2px solid #e6e6e6; margin: 5px;" width="150" height="150" src="<?php bloginfo('template_url'); ?>/miniatury/phpThumb.php?src=<?php echo get_post_meta ($post->ID, "miniatura", $single = true); ?>&amp;w=150&amp;h=150&amp;zc=B"></a>
  9. <?php } ?>
  10. </div>
  11.  
  12. <!-- tytul -->
  13. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  14. <p class="postinfo">Autor: <?php the_author_posts_link(); ?>, wysłany <?php echo pl_date('j F, Y'); ?> w <?php the_category(', ') ?> | <?php comments_popup_link('0 komentarzy ť', '1 komentarz ť', '% komentarzy ť'); ?><?php edit_post_link('<b>Edycja</b> ť', ' | ', ''); ?></p>
  15.  
  16. <!-- tresc -->
  17. <div class="entry">
  18. <?php the_content('Czytaj dalej ť'); ?>
  19. </div>
  20. </div>


Z góry dzięki za pomoc!
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
vokiel
post
Post #2





Grupa: Zarejestrowani
Postów: 2 592
Pomógł: 445
Dołączył: 12.03.2007

Ostrzeżenie: (0%)
-----


Dodaj
  1. float: right;
dla obrazka
Go to the top of the page
+Quote Post
unster
post
Post #3





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 20.12.2006

Ostrzeżenie: (0%)
-----


mam teraz taki kod:
  1. <img class="alignright" style="border: 2px solid #e6e6e6; margin: 5px; float: right;" width="150" height="150" src="<?php bloginfo('template_url'); ?>/miniatury/phpThumb.php?src=<?php echo get_post_meta ($post->ID, "miniatura", $single = true); ?>&w=150&h=150&zc=B">


efekt niestety ciągle ten sam.

Jakiś inny pomysł?

Ten post edytował unster 9.09.2009, 19:05:44
Go to the top of the page
+Quote Post
vokiel
post
Post #4





Grupa: Zarejestrowani
Postów: 2 592
Pomógł: 445
Dołączył: 12.03.2007

Ostrzeżenie: (0%)
-----


Sorry, miało być div, a nie img:

Zastąp:
  1. <div style="clear: both;">
  2. <div style="float: right;">


ewentualnie zostaw clear, tyle, że tylko right
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 20:01