Jump to content
php.lv forumi

Izvelne (float)


Recommended Posts

Sveiki!

 

Lieta tāda, ka taisot webu man vajadzēja sadalīt tākā divās dalās, teksta zonu un labas malas izvelni, bet, kad izmantoju float right man labās malas izvelne noslīd zem teksta daļas, bet ir vinā līmenī ar footer daļu. Ceru , kad sapratāt ko ar to gribēju pateikt, esmu iesācējs šajā jomā.

 

x2.jpg

Link to post
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
 <div id="linki">
 	<ul>
       <li><a href="#">Uefa</a></li> |
       <li><a href="#">Fifa</a></li> |
       <li><a href="#">Lff</a></li> |
       <li><a href="#">Nike</a></li>
   	</ul>
 </div>
 <div id="banneris"></div>
 <div id="izvelne">
 	    <ul>
           <li><a href="#" title="About us">About us</a></li>
           <li><a href="#" title="Portfolio">Portfolio</a></li>
           <li><a href="#" title="Gallery">Gallery</a></li>
           <li><a href="#" title="Exhibitions">Exhibitions</a></li>
           <li><a href="#" title="Contact us">Contact us</a></li>
       </ul> 
 </div>
 <div id="video">
 	<div id="videoramis">Video</div>
 </div>
 <div id="teksts">
   <p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

     The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.  </p>
 </div>
 <div id="labaizvelne">
 	Laba
 </div>
 <div id="footer">footer</div>
</div>
</body>
</html>

 

body {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #003;
text-align: justify;
}

a {
text-decoration: none;
border: none;
list-style: none;
color: #900;
}

img {
border: none;
}

h2 {
text-align: center;
color: #09F;
}

a {
text-decoration: none;
border: none;
list-style: none;
color: #900;
}

img {
border: none;
width: 600px;
}
#teksts {
width: 595px;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 5px;
float: left;
margin-right: 200px;
}
#labaizvelne {
float: right;
width: 200px;
margin-left: 8px;
padding: 0px;
}
..............parejais ko nekopeeju

Edited by Colderon
Link to post
Share on other sites

Man tagat tā labās malas izvelne spiež uz leju teksta zonu un teksta zona atrodas zem footera kad samainiju vietaam, bet peec diviem teksts ir augstaak nekaa footeris. Pievienoju jums visus failus pastaties, kas tur īsti nav kārtībā, gribas iemācīties to lietu kārtīgi lai atkal nebūtu jāprasa forumā šādas lietas...

x2.zip

Link to post
Share on other sites

labās izvēlnes divu liec zem teksta diva

#teksts {
       margin-right: 200px; /*šis nav vajadzīgs*/
}

un zem labās izvēlnes diva pieliec

<div style="height:1px;overflow:hidden;margin-top:-1px;clear:both;"></div>

Edited by fish
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...