Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS]błąd, ale gdzie?
VeParadox
post 20.11.2016, 08:18:58
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 29.08.2012

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


Witam ponownie smile.gif

W poniższym css mam problem z usytuowaniem tła. jeśli daję komendę no-repeat to tło się nie wczytuje... czy jest tu jakiś błąd, czy może problem tkwi gdzieś indziej?

  1. body {
  2. margin: 0;
  3. padding: 0;
  4. line-height: 1.7em;
  5. font-family: Arial, Helvetica, sans-serif;
  6. font-size: 11px;
  7. color: #000000;
  8. background-image: url(images/tlo.jpg) no-repeat;
  9. }
Go to the top of the page
+Quote Post
viking
post 20.11.2016, 08:22:35
Post #2





Grupa: Zarejestrowani
Postów: 6 378
Pomógł: 1116
Dołączył: 30.08.2006

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


https://developer.mozilla.org/pl/docs/Web/C...ackground-image Na pewno nie ma no-repeat. Za to background ma.


--------------------
Go to the top of the page
+Quote Post
VeParadox
post 20.11.2016, 08:34:35
Post #3





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 29.08.2012

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


Idę po omacku, czytam ale nie dociera...:/
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. line-height: 1.7em;
  5. font-family: Arial, Helvetica, sans-serif;
  6. font-size: 11px;
  7. color: #000000;
  8. background-image: url(images/tlo.jpg) no-repeat;
  9. background-color: transparent;
  10. }

tak prościej poproszę... :?
Go to the top of the page
+Quote Post
viking
post 20.11.2016, 08:53:05
Post #4





Grupa: Zarejestrowani
Postów: 6 378
Pomógł: 1116
Dołączył: 30.08.2006

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


Cytat
background-image: uri | none | inherit

Masz użyć https://developer.mozilla.org/pl/docs/Web/CSS/background albo https://developer.mozilla.org/pl/docs/Web/C...ckground-repeat


--------------------
Go to the top of the page
+Quote Post
VeParadox
post 20.11.2016, 09:15:55
Post #5





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 29.08.2012

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


  1. background-image: url(images/tlo.jpg) none, inherit;

Tak czy może ma to rozłożyć na inne podklasy? Bo daje tak i tak i nie działa...
Sory ale jestem samoukiem i mogę nie posiadać jakiejś podstawowej wiedzy w tej materii, ale mam upór i chcę zrozumieć smile.gif oczywiście jeśli nauczycielowi nie zabraknie cierpliwości... facepalmxd.gif
Go to the top of the page
+Quote Post
viking
post 20.11.2016, 09:30:18
Post #6





Grupa: Zarejestrowani
Postów: 6 378
Pomógł: 1116
Dołączył: 30.08.2006

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


Jejku wink.gif
Możesz podać uri ALBO none ALBO inherit. Nie wszystkie na raz i na pewno nie oddzielone przecinkiem bo CSS w tym wypadku nie ma takiej sładni.

Cytat
background-image: url(images/tlo.jpg);
background-repeat: no-repeat;


Cytat
background: url(images/tlo.jpg) no-repeat;


--------------------
Go to the top of the page
+Quote Post
VeParadox
post 20.11.2016, 12:28:20
Post #7





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 29.08.2012

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


Jesteś Wielki!!! biggrin.gif
Dzięki bardzo, może mi jeszcze podpowiesz w temacie Temat: HTMLZastosowanie onmouseover bo tutaj nikt nie podjął tematu? smile.gif
Oczywiście jeśli nie to i tak THX. smile.gif
Go to the top of the page
+Quote Post

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: 18.07.2025 - 02:39