Autor Zpráva
Necromancker
Profil *
Mám problém:mám na jedné stránce dvě slova (to je jen příklad), a chtěl bych, aby jedno slovo bylo nahoře a druhé slovo dole.Připadá mi trapné napsat mezi ty dvě slova xxx kusů tagu <br>, takže se ptam:je na to nějaký html kod?
Marty
Profil
http://www.jakpsatweb.cz/css/css-vertikalni-centrovani.html

Mělo by se to dát použít nejen pro tabulky, jen tam změn nastavení align na bottom.
Necromancker
Profil *
css je pro mě španělská vesnice.HTML by nebylo?
Falcon16
Profil
http://www.jakpsatweb.cz/css/vertical-align.html
Alebo potom mozno este cez
http://www.jakpsatweb.cz/css/css-pozicovani.html#right
Necromancker
Profil *
No, asi bude nejlepší, když tady napíšu html kod.

<html>
<head>
<title>Zkušební web</title>
</head>
<body bgcolor=green>

<SCRIPT>
var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1.;
var dayNr = ((now.getDate()<10) ? "" : "")+ now.getDate();

if(dName==1) Day = "Neděle";
if(dName==2) Day = "Pondělí";
if(dName==3) Day = "Úterý";
if(dName==4) Day = "Středa";
if(dName==5) Day = "Čtvrtek";
if(dName==6) Day = "Pátek";
if(dName==7) Day = "Sobota";
if(mName==1) Month="1.";
if(mName==2) Month="2.";
if(mName==3) Month="3.";
if(mName==4) Month="4.";
if(mName==5) Month="5.";
if(mName==6) Month="6.";
if(mName==7) Month="7.";
if(mName==8) Month="8.";
if(mName==9) Month="9.";
if(mName==10) Month="10.";
if(mName==11) Month="11.";
if(mName==12) Month="12.";

// String to display current date.
var todaysDate =(" "
+ Day
+ " "
+ dayNr
+ ". "
+ Month
+ " "
+ yr);
// Write date to page.

document.open();
document.write("Dnes je <b> "+todaysDate+"</b> a svátek má <b>");

today = new Date();
den=today.getDate();
mesic=(today.getMonth()+1);
if (mesic==1) {
if (den==01) document.write("Nový rok");
if (den==02) document.write("Karina");
if (den==03) document.write("Radmila");
if (den==04) document.write("Diana");
if (den==05) document.write("Dalimil");
if (den==06) document.write("Tři králové");
if (den==07) document.write("Vilma");
if (den==08) document.write("Čestmír");
if (den==09) document.write("Vladan");
if (den==10) document.write("Břetislav");
if (den==11) document.write("Bohdana");
if (den==12) document.write("Pravoslav");
if (den==13) document.write("Edita");
if (den==14) document.write("Radovan");
if (den==15) document.write("Alice");
if (den==16) document.write("Ctirad");
if (den==17) document.write("Drahoslav");
if (den==18) document.write("Vladislav");
if (den==19) document.write("Doubravka");
if (den==20) document.write("Ilona");
if (den==21) document.write("Běla");
if (den==22) document.write("Slavomír");
if (den==23) document.write("Zdeněk");
if (den==24) document.write("Milena");
if (den==25) document.write("Miloš");
if (den==26) document.write("Zora");
if (den==27) document.write("Ingrid");
if (den==28) document.write("Otýlie");
if (den==29) document.write("Zdislava");
if (den==30) document.write("Robin");
if (den==31) document.write("Marika");
}
if (mesic==2) {
if (den==01) document.write("Hynek");
if (den==02) document.write("Nela");
if (den==03) document.write("Blažej");
if (den==04) document.write("Jarmila");
if (den==05) document.write("Dobromila");
if (den==06) document.write("Vanda");
if (den==07) document.write("Veronika");
if (den==08) document.write("Milada");
if (den==09) document.write("Apolena");
if (den==10) document.write("Mojmír");
if (den==11) document.write("Božena");
if (den==12) document.write("Slavěna");
if (den==13) document.write("Věnceslav");
if (den==14) document.write("Valentýn");
if (den==15) document.write("Jiřina");
if (den==16) document.write("Ljuba");
if (den==17) document.write("Miloslava");
if (den==18) document.write("Gizela");
if (den==19) document.write("Patrik");
if (den==20) document.write("Oldřich");
if (den==21) document.write("Lenka");
if (den==22) document.write("Petr");
if (den==23) document.write("Svatopluk");
if (den==24) document.write("Matěj");
if (den==25) document.write("Liliana");
if (den==26) document.write("Dorota");
if (den==27) document.write("Alexandr");
if (den==28) document.write("Lumír");
if (den==29) document.write(".....");
}
if (mesic==3) {
if (den==01) document.write("Bedřich");
if (den==02) document.write("Anežka");
if (den==03) document.write("Kamil");
if (den==04) document.write("Stela");
if (den==05) document.write("Kazimir");
if (den==06) document.write("Miroslav");
if (den==07) document.write("Tomáš");
if (den==08) document.write("Gabriela");
if (den==09) document.write("Františka");
if (den==10) document.write("Viktorie");
if (den==11) document.write("Anděla");
if (den==12) document.write("Řehoř");
if (den==13) document.write("Růžena");
if (den==14) document.write("Růt a Matylda");
if (den==15) document.write("Ida");
if (den==16) document.write("Elena a Herbert");
if (den==17) document.write("Vlastimil");
if (den==18) document.write("Eduard");
if (den==19) document.write("Josef");
if (den==20) document.write("Světlana");
if (den==21) document.write("Radek");
if (den==22) document.write("Leona");
if (den==23) document.write("Ivona");
if (den==24) document.write("Gabriel");
if (den==25) document.write("Marian");
if (den==26) document.write("Emanuel");
if (den==27) document.write("Dita");
if (den==28) document.write("Soňa");
if (den==29) document.write("Taťána");
if (den==30) document.write("Arnošt");
if (den==31) document.write("Kvido");
}
if (mesic==4) {
if (den==01) document.write("Hugo");
if (den==02) document.write("Erika");
if (den==03) document.write("Richard");
if (den==04) document.write("Ivana");
if (den==05) document.write("Miroslava");
if (den==06) document.write("Vendula");
if (den==07) document.write("Heřman a Hermína");
if (den==08) document.write("Ema");
if (den==09) document.write("Dušan");
if (den==10) document.write("Darja");
if (den==11) document.write("Izabela");
if (den==12) document.write("Julius");
if (den==13) document.write("Aleš");
if (den==14) document.write("Vincenc");
if (den==15) document.write("Anastázie");
if (den==16) document.write("Irena");
if (den==17) document.write("Rudolf");
if (den==18) document.write("Valérie");
if (den==19) document.write("Rostislav");
if (den==20) document.write("Marcela");
if (den==21) document.write("Alexandra");
if (den==22) document.write("Evženie");
if (den==23) document.write("Vojtěch");
if (den==24) document.write("Jiří");
if (den==25) document.write("Marek");
if (den==26) document.write("Oto");
if (den==27) document.write("Jaroslav");
if (den==28) document.write("Vlastislav");
if (den==29) document.write("Robert");
if (den==30) document.write("Blahoslav");
}
if (mesic==5) {
if (den==01) document.write(".....");
if (den==02) document.write("Zikmund");
if (den==03) document.write("Alexej");
if (den==04) document.write("Květoslav");
if (den==05) document.write("Klaudie");
if (den==06) document.write("Radoslav");
if (den==07) document.write("Stanislav");
if (den==08) document.write(".....");
if (den==09) document.write("Ctibor");
if (den==10) document.write("Blažena");
if (den==11) document.write("Svatava");
if (den==12) document.write("Pankrác");
if (den==13) document.write("Servác");
if (den==14) document.write("Bonifác");
if (den==15) document.write("Žofie");
if (den==16) document.write("Přemysl");
if (den==17) document.write("Aneta");
if (den==18) document.write("Nataša");
if (den==19) document.write("Ivo");
if (den==20) document.write("Zbyšek");
if (den==21) document.write("Monika");
if (den==22) document.write("Emil");
if (den==23) document.write("Vladimír");
if (den==24) document.write("Jana");
if (den==25) document.write("Viola");
if (den==26) document.write("Filip");
if (den==27) document.write("Valdemar");
if (den==28) document.write("Vilém");
if (den==29) document.write("Maxmilián");
if (den==30) document.write("Ferdinand");
if (den==31) document.write("Kamila");
}
if (mesic==6) {
if (den==01) document.write("Laura");
if (den==02) document.write("Jarmil");
if (den==03) document.write("Tamara");
if (den==04) document.write("Dalibor");
if (den==05) document.write("Dobroslav");
if (den==06) document.write("Norbert");
if (den==07) document.write("Iveta a Slavoj");
if (den==08) document.write("Medard");
if (den==09) document.write("Stanislava");
if (den==10) document.write("Gita");
if (den==11) document.write("Bruno");
if (den==12) document.write("Antonie");
if (den==13) document.write("Antonín");
if (den==14) document.write("Roland");
if (den==15) document.write("Vít");
if (den==16) document.write("Zbyněk");
if (den==17) document.write("Adolf");
if (den==18) document.write("Milan");
if (den==19) document.write("Leoš");
if (d
Necromancker
Profil *
aha!Není to tu celé.
Lukáš M
Profil *
no, tím kódem nám moc nepomůžeš, mě se to opravdu číst nechce :) ale máš tu odkazy na řešení v css, které je rozhodně čistší, ale pokud se ti do css zatím nechce (ale doporučuju, aby se chtělo! ;)) tak je tu ještě řešení pomocí tabulkového layoutu:

<table width="100%" height="100%" border="0">
<tr>
<td width="50%" valign="top">tohle bude nahoře</td>
<td width="50%" valign="bottom">tohle bude dole</td>
</tr>
</table>

snad to bude fungovat - a hlavně - snad odpovídám, na co ses ptal, ale číst tu 5 obrazovek javascriptu, který se zadáním v podstatě nesouvisí.. :( příště radši pošli link.
Necromancker
Profil *
Dobře.Podívejte se na http://mujweb.cz/www/Necromancker/ na pravou stranu.Potřebuju, aby můj email byl nahoře a to datum dole.
Necromancker
Profil *
Myslím, že bude lepší, když dám sem tenhleten link:

http://mujweb.cz/www/Necromancker/str4.html

Potřebuju, aby můj email byl nahoře a to datum dole.
Filips
Profil
Nauč se css a máš to. není to zas tak složité a navíc rámy jsou zastaralé.
Necromancker
Profil
Počkat, aby to fungovalo, tak tam nesmim mít rámy?
Filips
Profil
asi tak nějak
Chamurappi
Profil
Rámy na toto nemají vliv. Stránce je úplně jedno, jestli je v rámu.
Zkus to, co ti poradil Lukáš M.
Filips
Profil
Ale vysvetlete mi proč děláte všichy weby v rámech???
Chamurappi
Profil
Reaguji na Filipse:
Rámy mají své výhody a své nevýhody. Jednoznačně je odsoudit nelze. Co o nich říkají lidé z jiného světa není podstatné a ani to není jednoznačné. Některé nevýhody jdou obejít, s některými se lze smířit.

Pro Necromanckera je CSS španělská vesnice. Naučí-li se je, tím lépe pro něj. Lhát mu, že „zarovnání dolů“ s rámy dělat nejde, nehodlám.
Lukáš M
Profil
Filips sorry, ale že to nebude fungovat s framy je blbost. taky je nemám rád, ale nemystifikuj ;)

Necromancker aha, už jsem se podíval, jak zní zadání, zkus to takhe:

<table border="0">
<tr><td height="200" valign="top">Email</td></tr>
<tr><td valign="bottom">Datum</td></tr>
</table>

tím height="200" můžeš ovlivnit (zjednodušeně řečeno) vzdálenost těch dvou řádků. není to sice zrovna čisté řešení, ale pořád lepší než 50 <br> pod sebou. další řešení je, když umíš framy ten frame úplně v pravo rozdělit podélně na další 2. ale to je z deště pod okap. pokud to myslíš s webdesignem aspoň trochu vážně, raději přemýšlej o css a modernějších technikách ;)
Toto téma je uzamčeno. Odpověď nelze zaslat.

0