Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS][bootstrap] Responsywny margines ?
luis2luis
post 30.06.2020, 14:33:04
Post #1





Grupa: Zarejestrowani
Postów: 190
Pomógł: 0
Dołączył: 25.11.2015

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


Witam.

Czy jest możliwość w bootstrapie, żeby dla wielkości np md ustawić margines inny niż dla innych rozdzielczości ?

Natrafiłem w google na taki zapis. np "mb-md-5". Zapis taki jednak nie funkcjonuje.


Proszę o podpowiedź.
Go to the top of the page
+Quote Post
trueblue
post 30.06.2020, 14:47:02
Post #2





Grupa: Zarejestrowani
Postów: 6 761
Pomógł: 1822
Dołączył: 11.03.2014

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


Pokaż jakie inne klasy są przypisane do tego elementu.


--------------------
Go to the top of the page
+Quote Post
luis2luis
post 30.06.2020, 14:49:44
Post #3





Grupa: Zarejestrowani
Postów: 190
Pomógł: 0
Dołączył: 25.11.2015

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


Cytat(trueblue @ 30.06.2020, 15:47:02 ) *
Pokaż jakie inne klasy są przypisane do tego elementu.



  1. <div class="row">
  2. <div class="col-lg-3 col-md-6">...</div>
  3. <div class="col-lg-3 col-md-6">...</div>
  4.  
  5. <div class="col-lg-3 col-md-6">...</div>
  6. <div class="col-lg-3 col-md-6">...</div>
  7. </div>


Dla dużego monitora są 4 kolumny dla mniejszych 2 kolumny, ale potrzebuje dla dwóch ostatnich nadać margines bo są za blisko tych dwóch pierwszych.

Ten post edytował luis2luis 30.06.2020, 14:54:07
Go to the top of the page
+Quote Post
trueblue
post 30.06.2020, 15:00:57
Post #4





Grupa: Zarejestrowani
Postów: 6 761
Pomógł: 1822
Dołączył: 11.03.2014

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


https://jsfiddle.net/g2bh8x3j/

Działa.


--------------------
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: 19.03.2024 - 04:31