astere Posted January 5, 2008 Report Share Posted January 5, 2008 (edited) nu ja uz ātru roku .. :P - bez smacīgiem driimveiveriem ar parasto geditu :P ... (smacīgs jo jāmaksā) <html> <head> <title>linki</title> <meta http-equiv="Content-Type"content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css"href="linki.css" /> </head> <body> <div class="linki"> <ul> <li><a href=adrese>teksts</a></li> <li><a href=adrese>teksts</a></li> <li><a href=adrese>teksts</a></li> <li><a href=adrese>teksts</a></li> </ul> </div> </body> </html> ieksh css: .linki ul{margin: 0 0 0 2;height:30px;} .linki ul li{display: inline;} .linki ul li a{float: left;color: red;padding: 5px 11px;text-decoration: none;border: 1px solid #564c66;} .linki ul li a:visited{color: red;} .linki ul li a:hover, .indentmenu ul li .current{color: black; padding-top: 6px; padding-bottom: 4px;} Edited January 5, 2008 by astere Link to comment Share on other sites More sharing options...
marcis Posted January 5, 2008 Report Share Posted January 5, 2008 Iekš html, ne php. es labāk vēl vienkāršāk (parādot css un izvelni) <style type="text/css"> .menu a { display:block; width:80px; height:20px; float:left; } </style> <div id="menu"> <a href="#">saite</a> <a href="#">saite</a> <a href="#">saite</a> </div> Nu domu ganjau saprati Link to comment Share on other sites More sharing options...
mefisto Posted January 5, 2008 Report Share Posted January 5, 2008 marcis. tavs risiājums ir nepareizs jo : a) tas nav semantiski pareizs b) un kas notiek ja man ir garš teksts ? piemēram 100px ? Link to comment Share on other sites More sharing options...
marcis Posted January 5, 2008 Report Share Posted January 5, 2008 mefisto, kas vispār tas tāds "semantisks"? Un ja godīgi man pie kājas kas tad notiks :D, nenorādi fiksētu platumu Link to comment Share on other sites More sharing options...
Recommended Posts