Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xhtml] Problem z przyleganiem div 'ów ie 6, Inne przeglądarki ok.
DonJeday
post
Post #1





Grupa: Zarejestrowani
Postów: 113
Pomógł: 0
Dołączył: 24.10.2008
Skąd: Częstochowa

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


Witam,

Mój problem polega na przyleganiu div, do div.



Problem wygląda tak:

OK (Opera, FF, IE7):



Źle (IE6):





kod:

  1. <div class="div_spacer_title"><h1>Lorem ipsum</h1></div>
  2. <div class="div_spacer">
  3. <h1>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</h1>
  4. </div>


Kod
div.div_spacer_title {
 background: #FFFFFF;
 border: 0px;
 width: 360px;
 height: 15px;
 margin-top: 25px;
 margin-left: auto;
 margin-right: auto;
 padding: 0px;
}

div.div_spacer_title h1 {
 font-family: verdana;
 font-size: 10px;
 color: #666465;
 font-weight: bold;
}

div.div_spacer {
 background: url(div_spacer.gif) repeat-y;
 border-top: 1px solid #ddd;
 border-bottom: 3px solid #ddd;
 border-left: 0px;
 border-right: 0px;
 width: 360px;
 margin: auto;
 padding: 5px 5px 0px 35px;
}

div.div_spacer h1 {
 font-family: verdana;
 font-size: 10px;
 color: #666465;
 font-weight: normal;
}


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

Posty w temacie


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 Aktualny czas: 21.08.2025 - 15:36