Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

2 Stron V   1 2 >  
Reply to this topicStart new topic
> [HTML]Powtarzanie obrazka poziomo
Skr3czu
post 21.05.2008, 15:02:21
Post #1





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Witam,

Mam np. taki kod:
  1. <img src="img/lol.png" />


I jak zrobić, aby obrazek się powtarzał cały czas poziomo, nie zależnie od rozdzielczości...
Go to the top of the page
+Quote Post
marcio
post 21.05.2008, 15:05:21
Post #2





Grupa: Zarejestrowani
Postów: 2 291
Pomógł: 156
Dołączył: 23.09.2007
Skąd: ITALY-MILAN

Ostrzeżenie: (10%)
X----


Cytat
I jak zrobić, aby obrazek się powtarzał cały czas poziomo, nie zależnie od rozdzielczości...

Nie rozumiem co chcesz osiagnac moze chodzi ci o petle z <Br>??


--------------------
Zainteresowania: XML | PHP | MY(SQL)| C# for .NET | PYTHON
http://code.google.com/p/form-builider/
Moj blog
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 15:08:56
Post #3





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Mam obrazek i chce, aby był na całej stronie, aby się powtarzał i nie zależnie od rozdzielczości...

ale tylko poziomo.

Np. jak jest tło to jest obrazek który kilkanaście razy się powtarza...
Go to the top of the page
+Quote Post
Shili
post 21.05.2008, 15:09:50
Post #4





Grupa: Zarejestrowani
Postów: 1 085
Pomógł: 231
Dołączył: 12.05.2008

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


szukanie nie boli winksmiley.jpg
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 15:12:01
Post #5





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Cytat(Shili @ 21.05.2008, 16:09:50 ) *

Ale ja chcę tylko poziomo...
Go to the top of the page
+Quote Post
Shili
post 21.05.2008, 15:13:37
Post #6





Grupa: Zarejestrowani
Postów: 1 085
Pomógł: 231
Dołączył: 12.05.2008

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


Czytałeś chociaż co tam jest?
Jak nie to przeczytaj, dokładnie.
Go to the top of the page
+Quote Post
marcio
post 21.05.2008, 15:18:58
Post #7





Grupa: Zarejestrowani
Postów: 2 291
Pomógł: 156
Dołączył: 23.09.2007
Skąd: ITALY-MILAN

Ostrzeżenie: (10%)
X----


Styl css z background-repeat:repeat-y


--------------------
Zainteresowania: XML | PHP | MY(SQL)| C# for .NET | PYTHON
http://code.google.com/p/form-builider/
Moj blog
Go to the top of the page
+Quote Post
Shili
post 21.05.2008, 15:21:07
Post #8





Grupa: Zarejestrowani
Postów: 1 085
Pomógł: 231
Dołączył: 12.05.2008

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


@up
repeat-x a nie repeat-y, jeśli już podtykać gotowe rozwiązania.

@drogi autorze
Jest to jak byk w przytoczonym przeze mnie linku, razem z graficznym przykładem
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 19:27:16
Post #9





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Kombinuje już tyle czasu i coś mi nie wychodzi ;/

Mam taki kod:
  1. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  2. <tr>
  3. <td>
  4. <img src="images/3_01.png" width="153" height="37" alt=""></td>
  5. <td>
  6. <img src="images/3_02.png" width="35" height="37" alt=""></td>
  7.  
  8. </tr>
  9.  


I chce, aby grafika images/3_02.png się powtarzała, ale jak dodać to w style CSS ?
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 19:28:19
Post #10


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




ale gdzie sie ma powtarzać?? w komórce czy jako tło strony?


--------------------
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 19:32:09
Post #11





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Tak, aby powtarzało się przez cała stronę

czyli np. jest tak:

--------------------------------
- -




--------------------------------

A chce, aby było tak:

--------------------------------
--------------------------------




--------------------------------

Mam nadzieje, że dobrze to wytłumaczyłem winksmiley.jpg
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 19:35:43
Post #12


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




no to może tak:

w .css
Kod
body
{
background-image: url("obrazek");
background-repeat: repeat;
}


a powtarzanie w pionie jest:
background-repeat: repeat-y;

a poziomie
background-repeat: repeat-x;

Ten post edytował piotrooo89 21.05.2008, 19:36:31


--------------------
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 19:37:56
Post #13





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


No tak, ale co mam wstawić w tym kodzie ?

  1. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  2. <tr>
  3. <td>
  4. <img src="images/3_01.png" width="153" height="37" alt=""></td>
  5. <td>
  6. <img src="images/3_02.png" width="35" height="37" alt=""></td>
  7.  
  8. </tr>
  9.  
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 19:40:31
Post #14


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




  1. <title>Tytuł strony</title>
  2. <style type="text/css">
  3.  
  4. body
  5. {
  6. background-image: url("obrazek");
  7. background-repeat: repeat;
  8. }
  9. </head>
  10. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  11. <tr>
  12. <td>
  13. <img src="images/3_01.png" width="153" height="37" alt=""></td>
  14. <td>
  15. <img src="images/3_02.png" width="35" height="37" alt=""></td>
  16.  
  17. </tr>
  18.  
  19. </body>
  20. </html>


to Ci zrobi obrazki na tle strony...

btw. poczytaj o css


--------------------
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 19:42:10
Post #15





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Nie rozumiesz mnie smile.gif, mi chodzi o to, aby to się powtarzało:
<img src="images/3_02.png" width="35" height="37" alt=""></td>

w tym miejscu co jest smile.gif, już wiesz ?
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 19:45:43
Post #16


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




Cytat(piotrooo89 @ 21.05.2008, 20:28:19 ) *
ale gdzie sie ma powtarzać?? w komórce czy jako tło strony?


przecierz pytałem...

to może tak:

  1. td
  2. {
  3. background-image: url("images/3_02.png");
  4. background-repeat: repeat;
  5. }


tak:

  1. <title>Tytuł strony</title>
  2. <style type="text/css">
  3. td
  4. {
  5. background-image: url("images/3_01.png");
  6. background-repeat: repeat;
  7. }
  8. </head>
  9. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  10. <tr>
  11. <td>
  12. <img src="images/3_01.png" width="153" height="37" alt=""></td>
  13. <td>
  14. <img src="images/3_02.png" width="35" height="37" alt=""></td>
  15.  
  16. </tr>
  17.  
  18. </body>
  19. </html>


Ten post edytował piotrooo89 21.05.2008, 19:48:33


--------------------
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 19:48:29
Post #17





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


Nie działa...

a co tutaj mam wpisać ?

  1. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  2. <tr>
  3. <td>
  4. <img src="images/3_01.png" width="153" height="37" alt=""></td>
  5. <td>
  6. <img src="images/3_02.png" width="35" height="37" alt=""></td>
  7.  
  8. </tr>
  9.  


I dalej nie działa...

Ten post edytował Skr3czu 21.05.2008, 19:51:10
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 19:52:02
Post #18


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




teraz widzę że ty masz 2 różne obrazki.

  1. <title>Tytuł strony</title>
  2. <style type="text/css">
  3. td
  4. {
  5. background-repeat: repeat;
  6. }
  7. td.one
  8. {
  9. background-image: url("images/3_01.png");
  10. }
  11. td.two
  12. {
  13. background-image: url("images/3_02.png");
  14. }
  15. </head>
  16. <table id="Table_01" width="188" height="37" border="0" cellpadding="0" cellspacing="0">
  17. <tr>
  18. <td class="one"></td>
  19.  
  20. <td class="two"></td>
  21. </tr>
  22.  
  23. </body>
  24. </html>

bez tych obrazków... tak jak Ci napisałem


--------------------
Go to the top of the page
+Quote Post
Skr3czu
post 21.05.2008, 20:08:05
Post #19





Grupa: Zarejestrowani
Postów: 215
Pomógł: 0
Dołączył: 12.03.2007

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


A jak zrobić tak, aby tylko obrazek images/3_02.png się powtarzał, a images/3_01.png żeby sie nie powtarzał ?
Go to the top of the page
+Quote Post
piotrooo89
post 21.05.2008, 20:11:22
Post #20


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




usun to

  1. td.one
  2. {
  3. background-image: url("images/3_01.png");
  4. }


i to:

  1. class="one"


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:40