Jump to content
php.lv forumi

Background-repeat no videja div?


Sephy

Recommended Posts

kods te

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>  
 <head>  
   <meta http-equiv="content-type" content="text/html; charset=windows-1250">  
   <meta name="generator" content="PSPad editor, www.pspad.com">  
   <link rel="stylesheet" type="text/css" href="./main.css">  
   <title>
   </title>  
 </head>  
 <body>   
   <div id="main">    
     <div id="first">
       <div id="left1"></div><div id="centerrepeat1"></div><div id="right1"></div>
     </div>      
   </div>  
 </body>
</html>

 

un css

/* CSS Document */

html{
height:100%;
width:100%;
}

body{
height:100%;
width:100%;
margin:0px;
padding:0px;
}

#main{
height:100%;
width:100%;
background-color:blue;
}

#first{
position:absolute;
height:475px;
width:100%;
background-color:red;
}

#left1{
float:left;
z-index:10;
overflow:vissible;
position:absolute;
height:100%;
width:496px;
background-color:black;
}

#centerrepeat1{
position:absolute;
height:100%;
width:100%;
background:url('./imagemap/repeatfirst.jpg') right top repeat-x;
}

#right1{
display:block;
float:right;
position:absolute;
height:100%;
width:28px;
background-color:white;
}

 

vajag izdarit taa lai right1 divs ir labajaa pusee(float right laikam ipashi labi nestradaa) un lai repeatu nevajag likt 100%(es gribu lai vinsh aipilda tikai tuksho vidu nevis velreiz parbrauc pa apakshu maniem left un right diviem)

Link to comment
Share on other sites

×
×
  • Create New...