Jump to content
php.lv forumi

pioners

Reģistrētie lietotāji
  • Posts

    2
  • Joined

  • Last visited

Posts posted by pioners

  1. Atradu risinājumu savai problēmai:

    <html>
    <body style="margin:0; padding:0;">
    <div style="width:100%; margin:0; padding:0;">
      <div style="width:194px; margin:0px; padding:0; background-color:red; float:left;">
        <div style="height:200px;"></div>
      </div>
      <div style="width:auto; margin:0px; padding:0;  background-color:green;">
        <div style="height:200px;"></div>
      </div>
    </div>
    </body>
    </html>

     

    Galvenais ir nenorādīt heigh div blokā, kuram vajag, lai background saplūst ar otra div bloka background. Tādēļ izmantoju vēl tukšus div blokus heigh norādīšanai.

  2. Man ir līdzīga problēma - uz Mozilla un Opera strādā, bet uz IE ne šāds kods:

    <html>
    <body style="margin:0; padding:0;">
    <div style="width:100%; height:168px; margin:0; padding:0; ">
      <div style="width:194px; height:168px; margin:0px; padding:0; background-color:red; float:left;"></div>
      <div style="width:auto; height:168px; margin-left:194px; padding:0; background-color:blue"></div>
    </div>
    </body>
    </html>

     

    Starp div blokiem parādās 3px plata balta josla uz IE, bet citos pārlūkos nav. Skatījos pods.lv css failu tur itkaa tas pats, bet strādā.

×
×
  • Create New...