EdgarsK Posted August 12, 2009 Report Share Posted August 12, 2009 Sveiki, nēesmu īsti css programmētājs, bet šo to piekopju. Beidzot gribētos arī iemācīties kā pareizi centrēt lapas galveno rāmi. <html> <head> <style type="text/css"> #main-container { width:1000px; text-align:left; } </style> </head> <body> <div align="center"> <div id="main-container"> ... </div> </div> </body> </html> Šis ir variants kā es esmu darījis līdz šim. Ticu ka ir jābūt kaut kādam labākam variantam "margin: 20% 0" vai kautkā tā. Būsu pateicīgs par atbildēm. Paldies. Quote Link to comment Share on other sites More sharing options...
mefisto Posted August 12, 2009 Report Share Posted August 12, 2009 http://innonesen.se/test/l-1/ Quote Link to comment Share on other sites More sharing options...
werd Posted August 12, 2009 Report Share Posted August 12, 2009 Varbūt ne no manas puses, bet liels paldies mefisto par piemēriem CSS jomā! Autoram uzreiz ir konkrēts vizuālais un skripta piemērs. Visu cieņu! Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted August 13, 2009 Author Report Share Posted August 13, 2009 (edited) phpjānis - paldies par atbalstu :) Centrēt lapu #wrap { margin:0 auto; width:1000px; } Noturēt scrollbar lai lapa nelēkātu brīžos kad ir/nav scrollbar html { height: 100%; margin-bottom: 0.01em; overflow-y:scroll; /* firefox */ } Edited August 13, 2009 by EdgarsA Quote Link to comment Share on other sites More sharing options...
KarlisBa Posted August 17, 2009 Report Share Posted August 17, 2009 (edited) Rekur "Defektologam" bija tīri labs raksts par šo. Edited August 17, 2009 by KarlisBa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.