waplet Posted August 27, 2008 Report Share Posted August 27, 2008 html kods: <html> <body> <table> <th height="100%" valign="bottom"><form method="post" > <img src="11_03.gif" height="25" /> <input style="background:url(11_04.gif); border:solid 0px; max-width:15 px; font-family:Tahoma 11px" type="text" name="vards" height="25" maxlenght="15" /> <img src="11_05.gif" height="25" align="bottom"/> </form></th> </table> </body> </html> Izskatās šādi : http://waplet.oo.lv/ok/1.php Es gribētu lai viss būtu vienā līnījā kā to panākt? Link to comment Share on other sites More sharing options...
mefisto Posted August 27, 2008 Report Share Posted August 27, 2008 Ko tur atkal dara tabula ? Kāpēc nav doctype ? Un tu vispār zini kas it <th> ?? http://innonesen.se/example/css/please-learn/no-tables-1/ Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 28, 2008 Report Share Posted August 28, 2008 Kāpēc nav doctype ? Un kapec gan vinjam buutu jaabuut? It ipashi ja tas ir piemers ... + Dod Linku parliecinies vai vinsh stradaa ... --- waplet --> tik tiesam kam tur tabbula ? piedevam galiigi paskjiiba... bildem velams noradiit ne tikai augstumu, bet arii platumu ..... Link to comment Share on other sites More sharing options...
bubu Posted August 28, 2008 Report Share Posted August 28, 2008 http://extjs.com/learn/Tutorial:Applicatio...#applayout.html UPDATE: It has shown up that doctype, if present, triggers various bugs in Internet Explorer (all versions) resulting in unpredictable weird rendering problems. Therefore, specifying a doctype is not recommended anymore. Link to comment Share on other sites More sharing options...
Aleksejs Posted August 28, 2008 Report Share Posted August 28, 2008 Bubu, a kādā veidā teiksim Firefoxis nosaka bez doctype, kas par doctype ir? Link to comment Share on other sites More sharing options...
bubu Posted August 28, 2008 Report Share Posted August 28, 2008 Es nezinu. Gan jau, ka min kautkā. Es jau tikai iepostēju linku, ko kāds pasvieda php irc kanāliņā. Link to comment Share on other sites More sharing options...
Paulinjsh Posted August 28, 2008 Report Share Posted August 28, 2008 mef uz ie6 tur ir 3 px bugs starp text un image. Link to comment Share on other sites More sharing options...
waplet Posted August 28, 2008 Author Report Share Posted August 28, 2008 Mjā vēlviens prikols : http://waplet.oo.lv ir izmētāts , bet kad parasti 1.php atver ir normāli? index.php <html> <head> <title>Mans pirmo kodu webs!</title> <!-- right click end --> <style type="text/css"> body {color: #FFFFFF; font-family: Tahoma; font-size: 11px;background-image:url('images/bgnew.png');background-repeat: repeat; } <!-- img { border: 0; } --> a { color: #FFFFFF; } a:visited { color: #FFFFFF; } table.bordered { border:dotted #FFFFFF;border-width: 1px} </style> <body> <?php include('header.php'); ?> </body> header.php <style> font {font-family: Verdana;font-size: 11px; font-weight: bold;color: #FFFFFF} a {color: #FFFFFF} a.visited {color: #FFFFFF} a.hover {color #CCCCCC} </style> <table class="bordered" width="450" border="0" align="center" valign="center" cellpadding="5" cellspacing="1 px"> <tr> <th background="images/back.gif" valign="middle" align="center" width="85" height="40"><font><a href="?kods=1">Pirmais kods</a></font></th> <th background="images/back.gif" valign="middle" align="center" width="85" height="40"><font><a href="?kods=2">Otrais kods</a></font></th> <th background="images/back.gif" valign="middle" align="center" width="85" height="40"><font><a href="?kods=3">Tresais kods</a></font></th> <th background="images/back.gif" valign="middle" align="center" width="85" height="40"><font><a href="?kods=4">Ceturtais kods</a></font></th> <th background="images/back.gif" valign="middle" align="center" width="85" height="40"><font><a href="?kods=5">Piektais kods</a></font></th> </tr> </table> <center> <?php switch($_GET['kods']){ case '1': include('1.php'); break; case '2': include('2.php'); break; case '3': include('3.php'); break; case '4': include('4.php'); break; case '5': include('5.php'); break; default: include('1.php'); break; } ?> </center> 1.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> /** * (c) mefisto */ /* css reset */ html, form, fieldset, input{ margin: 0; padding: 0; } fieldset, input{ border: 0; } /* reset done */ body{ margin: 0 10em; padding: 5em 0; } form.search fieldset{ padding-left: 26px; background: url(./11_03.gif) no-repeat; } form.search input.query{ background: url(./11_04.gif) repeat-x; height: 18px; padding: 4px 10px 3px; float: left; color: #444; font: normal 0.75em Verdana, sans-serif; } </style> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Searchs</title> <!--<link rel="stylesheet" href="layout.css" type="text/css" media="screen" charset="utf-8" /> --> </head> <body> <form class="search" method="post" action="?kods=1"> <fieldset> <input type="text" class="query" name="vards" /> <input type="image" alt="ok" src="11_05.gif" /> </fieldset> </form> </body> </html> Link to comment Share on other sites More sharing options...
cucumber Posted August 28, 2008 Report Share Posted August 28, 2008 Css kluda, a.hover {color #CCCCCC} trukst : Un tu includo lapu, lapaa, kur jau ir ieprieksh html un head tags , marazms Link to comment Share on other sites More sharing options...
cucumber Posted August 28, 2008 Report Share Posted August 28, 2008 (edited) mef uz ie6 tur ir 3 px bugs starp text un image. Fast fix form.search input.query{ background: url(/example/css/please-learn/no-tables-1/res/form1-fill.png) repeat-x; height: 18px; padding: 4px 10px 3px 0px; margin: 0px -3px 0px 0px; // pievenoju shito liniju float: left; color: #444; font: normal 0.75em Verdana, sans-serif; } Edited August 28, 2008 by cucumber Link to comment Share on other sites More sharing options...
Maris-S Posted August 28, 2008 Report Share Posted August 28, 2008 Par doctype nenorādīšanu nepiekrītu, to vajadzētu norādīt. Man pavisam nesen tādēļ radās problēma un tieši IE (7. versija) bez viņa nestrādāja pareizi. Problēma radās ar modālā lodziņa veidošanu (pa visu lapu puscaurspīdīgs div virsū pilnīgi visam un lodziņš virs puscaurspīdīgā div). Sanāca tā ka vecai lapai uzliku to lodziņu, sākumā pat nepaskatījos kas sanāk IE, pēc laika atklājās ka puscaurspīdīgais div pilnīgi uz leju aiz visa lapas satura, Sīki to lietu nepētīju, bet aizdomas ka nepareizi strādāja position:fixed css vērrtība. Tāpēc domāju ka šajā gadījumā doctype norādīšana darīja to ko tam būtu jādara. Ja tagad sāksies brīnumi ka dažreiz IE būs jānorāda tas doctype dažreiz nē, lūk tā gan būs problēma! Link to comment Share on other sites More sharing options...
mefisto Posted August 28, 2008 Report Share Posted August 28, 2008 to bubu: to linku iemetu es, un tas bija domāts kā extJS veidotāju debīlisma pierādījums. to cucumber: tnx, neapskatījos uz IE6 .. damn it to waplet: WTF is šitas http://waplet.oo.lv ??? Ej uz http://www.htmldog.com/guides/ un sāc mācīties. Link to comment Share on other sites More sharing options...
waplet Posted August 28, 2008 Author Report Share Posted August 28, 2008 Jā bet tā arī neviens nepateia kāpēc izmētā, bet prasti 1.php nekas tāds nava! Link to comment Share on other sites More sharing options...
Maris-S Posted August 29, 2008 Report Share Posted August 29, 2008 Starp img un inputu Tev būs atstarpes tāpēc ka Tu viņus saraksti jaunā rindā, htmlā jaunas rindas šajā gadījumā attēlojās ar atstarpi, vai nu mēģini visus trīs elementus koda rakstīt vienā čupā vai arī izmanto css 'float: left', nu un tur tad visu pārējo pēc vajadzības, pozicionēšanu, marginus un tml. Link to comment Share on other sites More sharing options...
waplet Posted August 29, 2008 Author Report Share Posted August 29, 2008 Jā,bet kāpēc inklūdojot ir izmētāts pa visām pusēm , bet parasti atverot nekas tāds nav? Link to comment Share on other sites More sharing options...
Recommended Posts