Kezdőoldal » Számítástechnika » Programozás » Miért nem érzékeli a kód ha a...

Miért nem érzékeli a kód ha a #pilota divre akármilyen beállítást teszek?

Figyelt kérdés
kódok az első 2 válaszban pls hlp

2012. szept. 22. 09:35
 1/5 A kérdező kommentje:

<html>

<head>

<link rel="stylesheet" href="style.css" type="text/css">

</head>

<body>

<div id="header">

<img src="header.bmp">

</div>

<ul id="menu">

<li><a href="index.php">Főoldal</a></li>

<li><a href="index.php">WSR</a></li>

<li><a href="index.php">Bajnokság</a></li>

<li><a href="index.php">Kapcsolat</a></li>

</ul>

<div class="clear"></div>

<div id="tartalom">

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

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.

There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

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.

There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.

</div>

<div id="pilota">

lsaéjdsklsdajhsdlksd

</div>

</body>

</html>

2012. szept. 22. 09:36
 2/5 A kérdező kommentje:

body{

background:#800080;

color:#fff;

padding:0 0 0 30%;

}

div#header{

}

ul#menu{

list-style:none;

padding:0;

margin:0;

float:left;

margin-top:10px;

}

ul#menu li{

float:left;

border:1px solid #000;

margin-right:20px;

background:#8a2be2;

text-align:center;

-webkit-border-top-right-radius: 8px;

-webkit-border-top-left-radius: 8px;

-moz-border-radius-topright: 8px;

-moz-border-radius-topleft: 8px;

border-top-right-radius: 8px;

border-top-left-radius: 8px;

}

ul#menu li a{

padding:10px;

display:block;

text-decoration:none;

color:#fff;

}

ul#menu li a:hover{

background:#4B0082;

color:#fff;

}

div.clear{

clear:both;

}

div#tartalom{

background:#fff;

color:#000;

width:560px;

min-height:600px;

padding:20px;

-webkit-border-top-right-radius: 8px;

-webkit-border-bottom-left-radius: 8px;

-webkit-border-bottom-right-radius: 8px;

-moz-border-radius-topright: 8px;

-moz-border-radius-bottomleft: 8px;

-moz-border-radius-bottomright: 8px;

border-top-right-radius: 8px;

border-bottom-left-radius: 8px;

border-bottom-right-radius: 8px;

float:left;

margin-bottom:10px;

text-align:center;

-moz-box-shadow: 3px 3px 5px #000;

-webkit-box-shadow: 3px 3px 5px #000;

box-shadow: 3px 3px 5px #000;

}

div#pilota{

width:50px;

height:50px;

background:#abc;

}

2012. szept. 22. 09:36
 3/5 anonim ***** válasza:

A <div id="pilota">

lsaéjdsklsdajhsdlksd

</div> előtt kimaradt a <div class="clear"></div> .

2012. szept. 22. 10:01
Hasznos számodra ez a válasz?
 4/5 Drone007 ***** válasza:

A #3-nak igaza lehet, esetleg a #pilota div styl-ához is hozááadhatod a clear: both értéket.

Bár nem derül ki, hogy azt pontosan hova is akarod helyezni.


Ilyen esetben célszerű Chrome böngészővel tesztelni a kódot, és Ctrl+Shift+I -vel előhozni a fejlesztői eszköz panelt, ahol a kód stílusát módosíthatod is, így működés közben tesztelheted mi hiányzik, vagy hogy a "láthatatlan" elem pontosan hol is helyezkedik el, mit csinál.

2012. szept. 23. 10:30
Hasznos számodra ez a válasz?
 5/5 A kérdező kommentje:
műxik....
2012. szept. 23. 13:02

Kapcsolódó kérdések:





Minden jog fenntartva © 2024, www.gyakorikerdesek.hu
GYIK | Szabályzat | Jogi nyilatkozat | Adatvédelem | Cookie beállítások | WebMinute Kft. | Facebook | Kapcsolat: info(kukac)gyakorikerdesek.hu

A weboldalon megjelenő anyagok nem minősülnek szerkesztői tartalomnak, előzetes ellenőrzésen nem esnek át, az üzemeltető véleményét nem tükrözik.
Ha kifogással szeretne élni valamely tartalommal kapcsolatban, kérjük jelezze e-mailes elérhetőségünkön!