Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> CSS i DIV, usunać odstep miedzy divami...
-Gość_azpr_*-
post 27.05.2006, 11:35:52
Post #1





Goście







co nalezy poprawic aby niebylo tgo odstepu miedzy czerwony a czarnym obiektem? chodzi mi o to aby czarny DIV nakaldal sie w 100% na rogi i nie bylo widac czerwonego tongue.gif

http://www.fotosik.pl/pokaz_obrazek/303d162eca4be8f7.html

  1. <div class="monika">
  2. <div class="madzia2" id="madzia2">
  3. <table class="mgielka" >
  4. <tr>
  5. <td class="navigator"></td>
  6. <td></td>
  7. </tr>
  8.  
  9. </div>
  10. </div>


i czy mozna div'y rozmiescic tak bez pomocy tabeli?

  1. body {
  2. background-image:url(obrazy/tapeta.jpg);
  3. font-size: 10px;
  4. font-family: Verdana, Helvetica, sans-serif;
  5. MARGIN: 10px;
  6. padding-top: 5px;
  7. padding-bottom: 5px;
  8. padding-left: 5px;
  9. padding-right: 5px;
  10.  
  11.  
  12. }
  13.  
  14.            
  15. .monika {
  16.  /* Mozilla ignores crazy MS image filters, so it will skip the following */
  17.    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='system/img/mgli1.png');
  18. }
  19. /* IE ignores styles with [attributes], so it will skip the following. */
  20. .monika[class] {
  21.  background-image:url(system/img/mgli1.png);
  22.  margin: 10px;
  23.  border: 1px solid #000000;
  24. }
  25.  
  26. .madzia2 {
  27. overflow: auto;
  28. height: 480px;
  29. margin: 10px;
  30. background: #FFFFFF;
  31. border: 1px solid #000000;
  32. }
  33.  
  34. .mgielka {
  35. height: 100%;
  36. width: 100%;
  37. background: #FF0000;
  38. }
  39.  
  40. .navigator {
  41. height: 100%;
  42. width: 35%;
  43. background: #000000;
  44. }
Go to the top of the page
+Quote Post
ens0re
post 27.05.2006, 16:27:41
Post #2





Grupa: Zarejestrowani
Postów: 143
Pomógł: 0
Dołączył: 23.08.2005
Skąd: Warszawa

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


  1. * {
  2. margin: 0;
  3. padding: 0;
  4. border: 0;
  5. }

Dodaj to i ewentualnie pobaw sie padding/margin


--------------------
"Oprócz tabel istnieje jeszcze jedna dalece ograniczająca struktura, składająca się z rzędów i komórek - więzienie. Dla projektantów nadszedł czas, aby sie uwolnić..." - Eric A. Meyer
Go to the top of the page
+Quote Post
-Gość_azpr_*-
post 28.05.2006, 11:05:16
Post #3





Goście







dodałem to i sprawdzielm wszedzie gdzie jest to mozliwe... i nic ;/
Go to the top of the page
+Quote Post
shpyo
post 28.05.2006, 13:17:20
Post #4





Grupa: Zarejestrowani
Postów: 574
Pomógł: 2
Dołączył: 13.04.2004
Skąd: Lublin

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


  1. <table class="mgielka" cellspacing="0">


Sprawdź teraz.


--------------------
Go to the top of the page
+Quote Post
macza
post 28.05.2006, 13:32:13
Post #5





Grupa: Zarejestrowani
Postów: 236
Pomógł: 4
Dołączył: 1.05.2006
Skąd: Lublin

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


Spróbuj dać ujemne wartości margin:
  1. margin:-3px;


--------------------
_tworzenie stron www tanio Lublin - tworzenie stron www, tanio, szybko, solidnie, własny CMS.
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: 25.07.2025 - 08:08