Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][PHP]Przesunięcie buttona
Forum PHP.pl > Forum > Przedszkole
baycell
Witam. Jestem tu nowy i jest to mój pierwszy post więc proszę o wyrozumiałość smile.gif
mam problem z przesunięciem przycisku (chciałbym go przesunąć do góry i w prawo)
to mój kod:

<?php if ( get_option('inkthemes_slidebuttontext3') !='' ) {?>
<a class="btn" href="<?php echo get_option('inkthemes_slidelink3'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext3'); ?></span></a>
<?php } else { ?>
<a class="btn" href="#"><span>Buy Now</span></a>
<?php } ?>

pracuję w wordpress i przerabiam na własne potrzeby szablon.
Gdybym czegoś nie podał to piszcie. Z góry dziękuję i pozdrawiam.

[EDIT]
Chciałbym dodać, że teraz ten przycisk jest całkiem niewidoczny ( schowany pod dwoma innymi).
Ruch Radzionków
a może podasz też kod css
baycell
to jest caly plik z tym kodem
  1. <?php
  2. /*
  3. /**
  4.  * The main front page file.
  5.  *
  6.  * This is the most generic template file in a WordPress theme
  7.  * and one of the two required files for a theme (the other being style.css).
  8.  * It is used to display a page when nothing more specific matches a query.
  9.  * E.g., it puts together the home page when no home.php file exists.
  10.  *
  11.  */
  12. ?>
  13. <?php get_header(); ?>
  14. <!--Start slider wrapper-->
  15. <div class="slider_wrapper">
  16. <div id="slides">
  17. <div id="slide-box">
  18. <div class="slides_container col-full" >
  19. <!--Start Slide-->
  20. <div class="slide" >
  21. <!-- // End $type IF Statement -->
  22. <div class="entry">
  23. <?php if ( get_option('inkthemes_slideheading1') !='' ) { ?>
  24. <h2><?php echo get_option('inkthemes_slideheading1'); ?></h2>
  25. <?php } else { ?>
  26. <h2>Top Section Heading</h2>
  27. <?php } ?>
  28. <?php if ( get_option('inkthemes_slidedescription1') !='' ) { ?>
  29. <p><?php echo get_option('inkthemes_slidedescription1'); ?></p>
  30. <?php } else { ?>
  31. <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
  32. <?php } ?>
  33. <?php if ( get_option('inkthemes_slidebuttontext1') !='' ) {?>
  34. <a class="btn" href="<?php echo get_option('inkthemes_slidelink1'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext1'); ?></span></a>
  35. <?php } else { ?>
  36. <a class="btn" href="#"><span>Buy Now</span></a>
  37. <?php } ?>
  38. <?php if ( get_option('inkthemes_slidebuttontext2') !='' ) {?>
  39. <a class="btn" href="<?php echo get_option('inkthemes_slidelink2'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext2'); ?></span></a>
  40. <?php } else { ?>
  41. <a class="btn" href="#"><span>Buy Now</span></a>
  42. <?php } ?>
  43. <?php if ( get_option('inkthemes_slidebuttontext3') !='' ) {?>
  44. <a class="btn" href="<?php echo get_option('inkthemes_slidelink3'); ?>"><span><?php echo get_option('inkthemes_slidebuttontext3'); ?></span></a>
  45. <?php } else { ?>
  46. <a class="btn" href="#"><span>Buy Now</span></a>
  47. <?php } ?>
  48. </div>
  49. <?php if ( get_option('inkthemes_slideimage1') !='' ) { ?>
  50. <div class="images"><img title="slideimage1" src="<?php echo get_option('inkthemes_slideimage1'); ?>" alt="" /></div>
  51. <?php } else { ?>
  52. <div class="images"><img title="Top Section" src="<?php echo get_template_directory_uri(); ?>/images/iphone-slide.png" alt="" /></div>
  53. <?php } ?>
  54. </div>
  55. <!--End slide -->
  56. </div>
  57. <!-- /.slides_container -->
  58. </div>
  59. <!-- /#slide-box -->
  60. <div class="clear"></div>
  61. </div>
  62. </div>
  63. <!--End slider wrapper-->
  64. <?php get_footer(); ?>


do tego mam dodać plik styli css ?
Ruch Radzionków
po pierwsze używaj np.
[code] albo [php] masz nad trescia postu. a po 2 to daj też kod css
baycell
Mam nadzieję, że op to wam chodziło smile.gif
style.css

plik był za długi więc wstawiłem go na chomikuj.pl

Już mam, poradziłem sobie.
Dzięki Ruch Radzionków za podpowiedź z plikiem css.
Ruch Radzionków
użyj np.
padding
albo
margin
powinno pomóc
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.