p4F Posted December 8, 2007 Report Share Posted December 8, 2007 kr4 man ir tāds html kods <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta name="description" content="description"/> <meta name="keywords" content="keywords"/> <meta name="author" content="author"/> <meta http-equiv="Content-Language" content="ru"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link rel="stylesheet" type="text/css" href="default.css"/> <title>HIPSHOP.LV - МАГАЗИН ХИП ХОП ОДЕЖДЫ</title> </head> <body> <div class="content"> <div class="logo_header"></div> <table class="menuwka" width="700" height="45" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <a href="#"><a href=""><img src="images/gl.png" width="119" height="45" alt=""></a></td> <td> <a href="#"><img src="images/nov.png" width="83" height="45" alt=""></a></td> <td> <a href="#"><img src="images/kat.png" width="117" height="45" alt=""></a></td> <td> <a href="#"><img src="images/onas.png" width="133" height="45" alt=""></a></td> <td> <a href="#"><img src="images/info.png" width="84" height="45" alt=""></a></td> <td> <a href="#"><img src="images/dost.png" width="164" height="45" alt=""></a></td> </tr> </table> <div class="mn"></div> </div> </body> </html> un tāds .css *{ font-family: Arial,Tahoma,Verdana; font-size: 12px; color: #444444; } BODY{ BACKGROUND-COLOR: #FFFFFF; padding : 0px 0px 0px 0px; margin : 0px 0px 0px 0px; } .content{ width:700; } .menuwka { border: 0; } .mn { background: url('glavnaja.jpg') no-repeat; width: 700px; height: 456px; } .logo_header{ width: 700px; height: 269px; background: url('logo.jpg') no-repeat; } nu vot es gribu lai tas content būtu centrā tikai nesakiet lai izmantotu <center></center> kā ar css var to visu centrēt? css esmu nulle Link to comment Share on other sites More sharing options...
andrisp Posted December 8, 2007 Report Share Posted December 8, 2007 .content { margin: auto; } Link to comment Share on other sites More sharing options...
p4F Posted December 8, 2007 Author Report Share Posted December 8, 2007 kas tas dot? man vajaga piem float: center; kautkaadu tādu problemu lai būtu centrā! Link to comment Share on other sites More sharing options...
andrisp Posted December 8, 2007 Report Share Posted December 8, 2007 kas tas dot? Neko nosapratu. Bet vispār šis piemērs centrēs .content elementu. Link to comment Share on other sites More sharing options...
mefisto Posted December 8, 2007 Report Share Posted December 8, 2007 kas tas dot? man vajaga piemfloat: center; kautkaadu tādu problemu lai būtu centrā! A varbūt pamēģini MĀCĪTIES !! http://www.htmldog.com/guides/cssbeginner/ Horizontālā centrēšana ir patši pamati. http://innonesen.se/test/l-1/ Link to comment Share on other sites More sharing options...
p4F Posted December 10, 2007 Author Report Share Posted December 10, 2007 mefisto paldies par linkiem domāju ka man nebūs jautaajumu vairs Link to comment Share on other sites More sharing options...
Recommended Posts