Netwars

Prosze o pomoc HTML + CSS

[#1]
12.01.2011 21:36

Witam, cale NW. Mam pewien problem, musze zrobic strone www na zaliczenie z infy, jestem na kierunku techniczym wiec z programowaniem stron mam malo wspolnego. Jest taki problem ze mam strone: http://www.pagedatabase.yoyo.pl/DNS/index.html
tiny: http://tiny.pl/hcc2n
Problem polega w tym ze po lewej stronie sa Tom I, Tom II itd, jak sie na nie nacisnie to sie rozwiaja, ale jak sie rozwinie wszystkie 6 to wyjezdzaja poza strone. Mam prosbe czy ktos moglby mi pomoc to naprawic zeby przy rozwijaniu tych Tomow strona sie automatycznie rozciagala w dol ?
Oczywiscie zasady znam, fota:
http://tiny.pl/hcc23

[#3]
12.01.2011 22:02

jak widzę <font> to pięści instant...

ps. super wcięcia w kodzie kurwo !

[#4]
12.01.2011 22:07

mowie ze to amatorszczyzna, i chce to tylko zaliczyc. A html znam tylko z ogolniaka. Jak ktos wie to prosze o pomoc.

[#6]
12.01.2011 22:15

Menu wyjezdza poza ekran, bo masz position: absolute; Layout robi sie na floatach.

[#7]
12.01.2011 22:15

body
{
background-color: #202020;
background-image: url(images/bg.gif);
font-family: Verdana, Helvetica, sans-serif;
font-size: 11px;
margin: 0px;
padding: 0px;
}

#nav
{
width: 800px;
height: 25px;
border-bottom: 1px solid white;
color: white;
background-color: #202020;
position: absolute;
top: 0px;
margin-left: -400px;
left: 50%;
margin-top: 0px;
padding: 0px;
z-index: 99;
}

#nav li
{
display: block;
float: left;
height: 25px;
width: auto;
text-align: center;
}

#nav li a
{
display: block;
padding-left: 10px;
padding-right: 12px;
line-height: 25px;
color: white;
text-decoration: none;
font-weight: bold;
}

#nav li a:hover
{
background-color: green;
}

#main
{
width: 800px;
margin-left: auto;
margin-right: auto;
border-right: 1px solid #666666;
border-left: 1px solid #666666;
}

#hero
{
border-bottom: 1px solid white;
width: 800px;
height: 150px;
background-repeat: no-repeat;
background-image: url(images/banner.JPG);
background-position: bottom;
}

#header
{
background-image: url(images/header_bg.gif);
height: 79px;
padding-top: 1px;
position: relative;
}

#header h1
{
position: absolute;
left: 82px;
top: 8px;
color: white;
font-size: 28px;
font-weight: bold;
margin: 0px;
}

#header h1.shad
{
left: 135px;
top: 20px;
color: black;
letter-spacing: 3px;
}

#header em
{
font-style: normal;
}

#body
{
padding-top: 1px;
background-color: white;
position: relative;
border-left: 150px solid #eeeeee;
}

#sidebar
{
width: 100px;
left: -135px;
position: absolute;
top: 0px;
padding: 10px;
}

#sidebar h3
{
font-size: 13px;
border-bottom: 1px solid black;
margin-bottom: 4px;
margin-top: 16px;
}

#sidebar ul
{
padding-left: 0px;
}

#sidebar p
{
margin-bottom: 8px;
}

#content
{
border-right: 1px solid #b0b0b0;
border-left: 1px solid #b0b0b0;
color: #333333;
}

#content h2
{
font-size: 18px;
margin: 0px;
}

#content p
{
text-align: justify;
text-indent: 3em;
line-height: 1.3em;
}

a
{
color: #666666;
}

#footer
{
width: 798px;
padding-top: 5px;
padding-bottom: 5px;
text-align: center;
margin-left: auto;
margin-right: auto;
border: 1px solid #b0b0b0;
background-color: #eeeeee;
color: #b0b0b0;
}

Jak dajesz position :abolute do sidebar'a toco sie dziwisz ze jest tak jak jest o_O

[#8]
12.01.2011 22:15

jak chcesz to Ci to porzadnie zrobie bo troche dziadostwo tam masz ;/

[#10]
12.01.2011 22:28

To bym musial miec dostep do serwera ;]
Zrob sobie takie cus:
<div id="container" style="clear:both;">
<div id="sidebar" style="float:right;\ text-align:center;">
</div>
<div id="content" style="float:left;">
</div>
</div>

[#11]
12.01.2011 22:32

Wisdom, CSS mozesz edytowac na zywca w Firebugu, a potem wkleic kod na GitHub czy gdzie tam wolisz :D

[#12]
12.01.2011 22:50

css moge ale diva nie dodam, a kody przeklejac mi sie nie chce ;]

Zaloguj się, żeby odpowiedzieć.