Thread View: pl.comp.lang.javascript
3 messages
3 total messages
Started by Roman Tyczka
Mon, 04 Feb 2019 13:24
CSSowe box model i pytania
Author: Roman Tyczka
Date: Mon, 04 Feb 2019 13:24
Date: Mon, 04 Feb 2019 13:24
15 lines
1130 bytes
1130 bytes
Witam, Mam taki oto klasyczny obrazek prezentujący model boxowy: https://pressupinc.com/wp-content/uploads/2014/01/box-model.png i teraz mam kilka pytań: - border może mieć ustalony kolor (border-color), ale jaki kolor dostaje padding i margin? - czy da się jakoś ustawić kolor paddinga i margina? - co to jest position na powyższym obrazku? -- pozdrawiam Roman Tyczka
Re: CSSowe box model i pytania
Author: Borys Pogoreło
Date: Mon, 04 Feb 2019 19:21
Date: Mon, 04 Feb 2019 19:21
19 lines
1216 bytes
1216 bytes
Dnia Mon, 4 Feb 2019 14:24:26 +0100, Roman Tyczka napisał(a): > i teraz mam kilka pytań: > - border może mieć ustalony kolor (border-color), ale jaki kolor dostaje > padding i margin? Żaden, to są odstępy > - czy da się jakoś ustawić kolor paddinga i margina? Nie > - co to jest position na powyższym obrazku? absolute / relative / fixed / static / itd. -- Borys Pogoreło borys(#)leszno,edu,pl
Re: CSSowe box model i pytania
Author: Borys Pogoreło
Date: Tue, 05 Feb 2019 10:55
Date: Tue, 05 Feb 2019 10:55
12 lines
1276 bytes
1276 bytes
Dnia Tue, 5 Feb 2019 08:40:01 +0100, Roman Tyczka napisał(a): > To logiczne, ale nie do końca wyjaśnione. Żaden czyli ma kolor tła, tylko > teraz pytanie którego? Zgaduje po układzie tych stref, że padding będzie > miał kolor contenta, a margin tego co jest na zewnątrz? Czy może oba kolor > contenta? Tak jak piszesz, o ile kontener ma kolor tła. -- Borys Pogoreło borys(#)leszno,edu,pl
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads